Skip to content

boards: silabs: fix boards DTS files coding style issues #90607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions boards/gardena/sgrm/sgrm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
chosen {
zephyr,console = &usart1;
zephyr,flash = &flash0;
zephyr,ppp-uart = &usart0;
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,ppp-uart = &usart0;
};
};

Expand All @@ -41,9 +41,9 @@

&usart0 {
current-speed = <500000>;
hw-flow-control;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
hw-flow-control;
status = "okay";
};

Expand Down Expand Up @@ -80,13 +80,13 @@
#size-cells = <1>;

slot0_partition: partition@0 {
label = "image-0";
reg = <0x00000000 DT_SIZE_K(192)>;
label = "image-0";
};

storage_partition: partition@30000 {
label = "storage";
reg = <0x00030000 DT_SIZE_K(64)>;
label = "storage";
};
};
};
37 changes: 18 additions & 19 deletions boards/seeed/xiao_mg24/xiao_mg24.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
compatible = "seeed,xiao_mg24", "silabs,efr32mg24";

chosen {
zephyr,bt-hci = &bt_hci_silabs;
zephyr,code-partition = &slot0_partition;
zephyr,console = &usart0;
zephyr,flash = &flash0;
zephyr,shell-uart = &usart0;
zephyr,uart-pipe = &usart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,bt-hci = &bt_hci_silabs;
zephyr,uart-pipe = &usart0;
};

/* These aliases are provided for compatibility with samples */
Expand Down Expand Up @@ -48,25 +48,25 @@
};

&hfxo {
status = "okay";
ctune = <95>;
precision = <50>;
status = "okay";
};

&lfxo {
status = "okay";
ctune = <44>;
precision = <50>;
status = "okay";
};

&hfrcodpll {
clock-frequency = <DT_FREQ_M(78)>;
clocks = <&hfxo>;
dpll-n = <3839>;
dpll-m = <1919>;
dpll-autorecover;
dpll-edge = "fall";
dpll-lock = "phase";
dpll-autorecover;
dpll-m = <1919>;
dpll-n = <3839>;
};

&em23grpaclk {
Expand Down Expand Up @@ -98,19 +98,19 @@

&eusart0 {
compatible = "silabs,eusart-uart";
current-speed = <115200>;
pinctrl-0 = <&eusart0_default>;
pinctrl-names = "default";
current-speed = <115200>;
};

&eusart1 {
compatible = "silabs,eusart-spi";
pinctrl-0 = <&eusart1_default>;
pinctrl-names = "default";
cs-gpios = <&gpioc 7 GPIO_ACTIVE_LOW>;
clock-frequency = <4000000>;
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <4000000>;
cs-gpios = <&gpioc 7 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&eusart1_default>;
pinctrl-names = "default";
};

&i2c0 {
Expand Down Expand Up @@ -145,7 +145,6 @@

&gpioc {
status = "okay";

};

&gpiod {
Expand All @@ -172,27 +171,27 @@

/* Reserve 48 kB for the bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 DT_SIZE_K(48)>;
label = "mcuboot";
read-only;
};

/* Reserve 720 kB for the application in slot 0 */
slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000c000 0x000B8000>;
label = "image-0";
};

/* Reserve 720 kB for the application in slot 1 */
slot1_partition: partition@C4000 {
label = "image-1";
reg = <0x000C0000 0x000B8000>;
label = "image-1";
};

/* Set 16 kB of storage at the end of the 1536 kB of flash */
storage_partition: partition@17c000 {
label = "storage";
reg = <0x0017c000 DT_SIZE_K(16)>;
label = "storage";
};
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<SI32_MUX(USART0_RTS, 1, 14)>;
output-enable;
};

group2 {
pinmux = <SI32_MUX(USART0_RX, 1, 13)>,
<SI32_MUX(USART0_CTS, 1, 15)>;
Expand Down
20 changes: 11 additions & 9 deletions boards/silabs/dev_kits/sim3u1xx_dk/sim3u1xx_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,36 @@
zephyr,console = &usart0;
zephyr,flash = &flash0;
zephyr,shell-uart = &usart0;
zephyr,uart-pipe = &usart0;
zephyr,sram = &sram0;
zephyr,uart-pipe = &usart0;
};

leds {
compatible = "gpio-leds";

led_red: led_2_10 {
label = "Red LED (DS3)";
gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
label = "Red LED (DS3)";
};

led_yellow: led_2_11 {
label = "Yellow LED (DS4)";
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
label = "Yellow LED (DS4)";
};
};

gpio_keys {
compatible = "gpio-keys";

user_button_sw2: button_0 {
label = "Push button switch (SW2)";
gpios = <&gpio2 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch (SW2)";
zephyr,code = <INPUT_KEY_0>;
};

user_button_sw3: button_1 {
label = "Push button switch (SW3)";
gpios = <&gpio2 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch (SW3)";
zephyr,code = <INPUT_KEY_1>;
};
};
Expand All @@ -77,9 +79,9 @@

&usart0 {
current-speed = <115200>;
hw-flow-control;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
hw-flow-control;
status = "okay";
};

Expand All @@ -100,20 +102,20 @@
#size-cells = <1>;

slot0_partition: partition@0 {
label = "image-0";
reg = <0x00000000 DT_SIZE_K(192)>;
label = "image-0";
};

storage_partition: partition@30000 {
label = "storage";
reg = <0x00030000 DT_SIZE_K(64)>;
label = "storage";
};
};
};

&dma {
status = "okay";
dma-channels = <8>; /* Crypto DMA channels have ID 5, 6, and 7 */
status = "okay";
};

&crypto {
Expand Down
1 change: 1 addition & 0 deletions boards/silabs/dev_kits/sltb004a/sltb004a-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
psels = <GECKO_PSEL(UART_RX, A, 1)>,
<GECKO_LOC(UART_RX, 0)>;
};

group2 {
/* configure PA.0 as UART_TX */
psels = <GECKO_PSEL(UART_TX, A, 0)>,
Expand Down
27 changes: 15 additions & 12 deletions boards/silabs/dev_kits/sltb004a/sltb004a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@

chosen {
zephyr,console = &usart0;
zephyr,flash = &flash0;
zephyr,shell-uart = &usart0;
zephyr,uart-pipe = &usart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,uart-pipe = &usart0;
};

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpiod 8 0>;
label = "LED 0";
};

led1: led_1 {
gpios = <&gpiod 9 0>;
label = "LED 1";
Expand All @@ -46,12 +48,14 @@

buttons {
compatible = "gpio-keys";

button0: button_0 {
/* gpio flags need validation */
gpios = <&gpiod 14 GPIO_ACTIVE_LOW>;
label = "User Push Button 0";
zephyr,code = <INPUT_KEY_0>;
};

button1: button_1 {
/* gpio flags need validation */
gpios = <&gpiod 15 GPIO_ACTIVE_LOW>;
Expand All @@ -62,7 +66,7 @@

pwmleds {
compatible = "pwm-leds";
status = "okay";

pwm_led0: pwm_led0 {
pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
Expand All @@ -86,9 +90,9 @@
#address-cells = <1>;
#size-cells = <0>;

location-clk = <GECKO_LOCATION(18) GECKO_PORT_F GECKO_PIN(7)>;
location-rx = <GECKO_LOCATION(30) GECKO_PORT_K GECKO_PIN(2)>;
location-tx = <GECKO_LOCATION(29) GECKO_PORT_K GECKO_PIN(0)>;
location-clk = <GECKO_LOCATION(18) GECKO_PORT_F GECKO_PIN(7)>;

cs-gpios = <&gpiok 1 GPIO_ACTIVE_LOW>;

Expand All @@ -97,15 +101,15 @@
mx25r80: mx25r8035f@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <80000000>;
size = <0x800000>;
jedec-id = [c2 28 14];
sfdp-bfp = [
e5 20 f1 ff ff ff 7f 00 44 eb 08 6b 08 3b 04 bb
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
10 d8 00 ff 23 72 f5 00 82 ed 04 b7 44 83 38 44
30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
];
size = <0x800000>;
spi-max-frequency = <80000000>;
};
};

Expand Down Expand Up @@ -158,14 +162,14 @@

/* This set selects for ENV_I2C supporting Si7021, Si11330, BMP280 */
/*
location-sda = <GECKO_LOCATION(17) GECKO_PORT_C GECKO_PIN(4)>;
location-scl = <GECKO_LOCATION(17) GECKO_PORT_C GECKO_PIN(5)>;
location-sda = <GECKO_LOCATION(17) GECKO_PORT_C GECKO_PIN(4)>;
*/

/* This set selects for HALL_I2C supporting Si7210 */
/*
location-sda = <GECKO_LOCATION(8) GECKO_PORT_B GECKO_PIN(8)>;
location-scl = <GECKO_LOCATION(8) GECKO_PORT_B GECKO_PIN(9)>;
location-sda = <GECKO_LOCATION(8) GECKO_PORT_B GECKO_PIN(8)>;
*/
};

Expand All @@ -178,9 +182,9 @@
status = "okay";

pwm0: pwm {
status = "okay";
pin-location = <GECKO_LOCATION(17) GECKO_PORT_D GECKO_PIN(9)>;
prescaler = <1024>;
status = "okay";
};
};

Expand Down Expand Up @@ -214,21 +218,20 @@
};

&flash0 {

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 6Kb of storage at the end of the 1024Kb of flash */
storage_partition: partition@fe800 {
label = "storage";
reg = <0x000fe800 0x00001800>;
label = "storage";
};

};
};

&trng0 {
status = "okay";
status = "okay";
};
Loading
Loading