Skip to content

boards: nordic: devicetree file cleanup #89017

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 6 commits into from
Apr 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
30 changes: 0 additions & 30 deletions boards/ezurio/bl5340_dvk/Kconfig

This file was deleted.

3 changes: 2 additions & 1 deletion boards/nordic/nrf21540dk/nrf21540dk_nrf52840-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
psels = <NRF_PSEL(UART_TX, 0, 6)>,
<NRF_PSEL(UART_RTS, 0, 5)>;
};

group2 {
psels = <NRF_PSEL(UART_RX, 0, 8)>,
<NRF_PSEL(UART_CTS, 0, 7)>;
Expand All @@ -31,6 +32,7 @@
psels = <NRF_PSEL(UART_RX, 1, 1)>;
bias-pull-up;
};

group2 {
psels = <NRF_PSEL(UART_TX, 1, 2)>;
};
Expand Down Expand Up @@ -155,5 +157,4 @@
low-power-enable;
};
};

};
14 changes: 12 additions & 2 deletions boards/nordic/nrf21540dk/nrf21540dk_nrf52840.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,22 @@

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
label = "Green LED 0";
};

led1: led_1 {
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
label = "Green LED 1";
};

led2: led_2 {
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
label = "Green LED 2";
};

led3: led_3 {
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
label = "Green LED 3";
Expand All @@ -48,28 +52,33 @@

pwmleds {
compatible = "pwm-leds";

pwm_led0: pwm_led_0 {
pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
};
};

buttons {
compatible = "gpio-keys";

button0: button_0 {
gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 0";
zephyr,code = <INPUT_KEY_0>;
};

button1: button_1 {
gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_1>;
};

button2: button_2 {
gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 2";
zephyr,code = <INPUT_KEY_2>;
};

button3: button_3 {
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 3";
Expand Down Expand Up @@ -238,10 +247,10 @@ arduino_i2c: &i2c0 {
fem_spi: &spi3 {
status = "okay";
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;

pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";

nrf_radio_fem_spi: nrf21540_fem_spi@0 {
compatible = "nordic,nrf21540-fem-spi";
status = "okay";
Expand All @@ -259,7 +268,6 @@ fem_spi: &spi3 {
};

&flash0 {

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand All @@ -269,10 +277,12 @@ fem_spi: &spi3 {
label = "mcuboot";
reg = <0x00000000 0x0000C000>;
};

slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000C000 0x00076000>;
};

slot1_partition: partition@82000 {
label = "image-1";
reg = <0x00082000 0x00076000>;
Expand Down
1 change: 0 additions & 1 deletion boards/nordic/nrf51dk/nrf51dk_nrf51822-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@
low-power-enable;
};
};

};
13 changes: 12 additions & 1 deletion boards/nordic/nrf51dk/nrf51dk_nrf51822.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
label = "Green LED 0";
};

led1: led_1 {
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
label = "Green LED 1";
};

led2: led_2 {
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
label = "Green LED 2";
};

led3: led_3 {
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
label = "Green LED 3";
Expand All @@ -46,28 +50,33 @@

pwmleds {
compatible = "pwm-leds";

pwm_led0: pwm_led_0 {
pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
};
};

buttons {
compatible = "gpio-keys";

button0: button_0 {
gpios = <&gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 0";
zephyr,code = <INPUT_KEY_0>;
};

button1: button_1 {
gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_1>;
};

button2: button_2 {
gpios = <&gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 2";
zephyr,code = <INPUT_KEY_2>;
};

button3: button_3 {
gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 3";
Expand Down Expand Up @@ -151,7 +160,6 @@
};

&flash0 {

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand All @@ -161,14 +169,17 @@
label = "mcuboot";
reg = <0x00000000 0x8000>;
};

slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 0x1b000>;
};

slot1_partition: partition@23000 {
label = "image-1";
reg = <0x00023000 0x1b000>;
};

storage_partition: partition@3e000 {
label = "storage";
reg = <0x0003e000 0x00002000>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@
low-power-enable;
};
};

};
8 changes: 7 additions & 1 deletion boards/nordic/nrf51dongle/nrf51dongle_nrf51822.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@

leds {
compatible = "gpio-leds";

led0_red: led_0 {
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
label = "Red LED 0";
};

led0_green: led_1 {
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
label = "Green LED 0";
};

led0_blue: led_2 {
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
label = "Blue LED 0";
Expand All @@ -41,6 +44,7 @@

pwmleds {
compatible = "pwm-leds";

pwm_led0: pwm_led_0 {
pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
};
Expand Down Expand Up @@ -83,7 +87,6 @@
};

&flash0 {

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand All @@ -93,14 +96,17 @@
label = "mcuboot";
reg = <0x00000000 0x8000>;
};

slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 0x1b000>;
};

slot1_partition: partition@23000 {
label = "image-1";
reg = <0x00023000 0x1b000>;
};

storage_partition: partition@3e000 {
label = "storage";
reg = <0x0003e000 0x00002000>;
Expand Down
2 changes: 1 addition & 1 deletion boards/nordic/nrf52833dk/nrf52833dk_nrf52820-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
psels = <NRF_PSEL(UART_TX, 0, 6)>,
<NRF_PSEL(UART_RTS, 0, 5)>;
};

group2 {
psels = <NRF_PSEL(UART_RX, 0, 8)>,
<NRF_PSEL(UART_CTS, 0, 7)>;
Expand Down Expand Up @@ -57,5 +58,4 @@
low-power-enable;
};
};

};
13 changes: 12 additions & 1 deletion boards/nordic/nrf52833dk/nrf52833dk_nrf52820.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@

leds {
compatible = "gpio-leds";

led0: led_0 {
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
label = "Green LED 0";
};

led1: led_1 {
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
label = "Green LED 1";
};

led2: led_2 {
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
label = "Green LED 2";
};

led3: led_3 {
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
label = "Green LED 3";
Expand All @@ -46,28 +50,33 @@

pwmleds {
compatible = "pwm-leds";

pwm_led0: pwm_led_0 {
pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
};
};

buttons {
compatible = "gpio-keys";

button0: button_0 {
gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 0";
zephyr,code = <INPUT_KEY_0>;
};

button1: button_1 {
gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_1>;
};

button2: button_2 {
gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 2";
zephyr,code = <INPUT_KEY_2>;
};

button3: button_3 {
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 3";
Expand Down Expand Up @@ -152,7 +161,6 @@
};

&flash0 {

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand All @@ -162,14 +170,17 @@
label = "mcuboot";
reg = <0x00000000 0xC000>;
};

slot0_partition: partition@C000 {
label = "image-0";
reg = <0x0000C000 0x17000>;
};

slot1_partition: partition@23000 {
label = "image-1";
reg = <0x00023000 0x17000>;
};

storage_partition: partition@3a000 {
label = "storage";
reg = <0x0003a000 0x00006000>;
Expand Down
Loading