Skip to content

Commit 6f09c90

Browse files
ananglioannisg
authored andcommitted
boards: nrf5340_dk_nrf5340: Move buttons node from leds to root node
For consistency with all other boards, make the `buttons` node a child of the root node, not the `leds` one. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent a071957 commit 6f09c90

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

boards/arm/nrf5340_dk_nrf5340/nrf5340_dk_nrf5340_cpunet.dts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@
4040
gpios = <&gpio0 31 GPIO_INT_ACTIVE_LOW>;
4141
label = "Green LED 3";
4242
};
43+
};
4344

44-
buttons {
45-
compatible = "gpio-keys";
46-
button0: button_0 {
47-
gpios = <&gpio0 23 GPIO_PUD_PULL_UP>;
48-
label = "Push button 1";
49-
};
50-
button1: button_1 {
51-
gpios = <&gpio0 24 GPIO_PUD_PULL_UP>;
52-
label = "Push button 2";
53-
};
54-
button2: button_2 {
55-
gpios = <&gpio0 8 GPIO_PUD_PULL_UP>;
56-
label = "Push button 3";
57-
};
58-
button3: button_3 {
59-
gpios = <&gpio0 9 GPIO_PUD_PULL_UP>;
60-
label = "Push button 4";
61-
};
45+
buttons {
46+
compatible = "gpio-keys";
47+
button0: button_0 {
48+
gpios = <&gpio0 23 GPIO_PUD_PULL_UP>;
49+
label = "Push button 1";
50+
};
51+
button1: button_1 {
52+
gpios = <&gpio0 24 GPIO_PUD_PULL_UP>;
53+
label = "Push button 2";
54+
};
55+
button2: button_2 {
56+
gpios = <&gpio0 8 GPIO_PUD_PULL_UP>;
57+
label = "Push button 3";
58+
};
59+
button3: button_3 {
60+
gpios = <&gpio0 9 GPIO_PUD_PULL_UP>;
61+
label = "Push button 4";
6262
};
6363
};
6464

0 commit comments

Comments
 (0)