boards: silabs: efr32_radio: Add USART pinctrl configuration node
this commit introduces a usart pinctrl node to enable the spi functionality in the efr32_radio board. the location* properties have been deprecated so pinctrl support has been added in the device tree included file. Before this commit (using deprecated location properties): - usart@40010400 (DISABLED) After this commit (using pinctrl properties): - usart@40010400 (READY) Signed-off-by: Arunmani Alagarsamy <arunmani.a@capgemini.com>
This commit is contained in:
parent
6cecdb1e14
commit
d12044dec5
3 changed files with 34 additions and 3 deletions
|
|
@ -16,4 +16,26 @@
|
|||
<GECKO_LOC(UART_RX, 0)>;
|
||||
};
|
||||
};
|
||||
|
||||
usart1_default: usart1_default {
|
||||
group1 {
|
||||
psels = <GECKO_PSEL(SPIM_SCK, C, 8)>,
|
||||
<GECKO_PSEL(SPIM_MISO, C, 7)>,
|
||||
<GECKO_PSEL(SPIM_MOSI, C, 6)>,
|
||||
<GECKO_LOC(SPI_SCK, 11)>,
|
||||
<GECKO_LOC(SPI_MISO, 11)>,
|
||||
<GECKO_LOC(SPI_MOSI, 11)>;
|
||||
};
|
||||
};
|
||||
|
||||
usart2_default: usart2_default {
|
||||
group1 {
|
||||
psels = <GECKO_PSEL(SPIM_SCK, A, 8)>,
|
||||
<GECKO_PSEL(SPIM_MISO, A, 7)>,
|
||||
<GECKO_PSEL(SPIM_MOSI, A, 6)>,
|
||||
<GECKO_LOC(SPI_SCK, 1)>,
|
||||
<GECKO_LOC(SPI_MISO, 1)>,
|
||||
<GECKO_LOC(SPI_MOSI, 1)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,9 +68,8 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
location-rx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(7)>;
|
||||
location-tx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(6)>;
|
||||
location-clk = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(8)>;
|
||||
pinctrl-0 = <&usart1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
&usart2 {
|
||||
compatible = "silabs,gecko-spi-usart";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-0 = <&usart2_default>;
|
||||
pinctrl-names = "default";
|
||||
cs-gpios = <&gpioa 9 GPIO_ACTIVE_LOW>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
|
|
|
|||
Loading…
Reference in a new issue