boards: dts: Fix dtc warning in board dts files
This patch is equivalent to 7b0ce85242
,
but applied to buttons. As stated in the previous commit message:
This change aims at fixing 'unit_address_vs_reg' warning in arm based
boards. This warning pops up when a node name is made up with an
address (node_name@xx) but does not contain a reg property. This case
was encountered for led nodes for instance, where a reg property has
no meaning. Fix this by changing node_name@xx to node_name_xx which
removes the guilty '@XX' syntax but preserves node_name uniqueness.
Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
3f5a4f1df5
commit
25e7316ea7
12 changed files with 24 additions and 24 deletions
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button: button@0 {
|
user_button: button_0 {
|
||||||
label = "User";
|
label = "User";
|
||||||
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button: button@0 {
|
user_button: button_0 {
|
||||||
label = "User";
|
label = "User";
|
||||||
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -63,11 +63,11 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button_2: button@0 {
|
user_button_2: button_0 {
|
||||||
label = "User SW2";
|
label = "User SW2";
|
||||||
gpios = <&gpioc 6 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioc 6 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
user_button_3: button@1 {
|
user_button_3: button_1 {
|
||||||
label = "User SW3";
|
label = "User SW3";
|
||||||
gpios = <&gpioa 4 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioa 4 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,11 +47,11 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button_0: button@0 {
|
user_button_0: button_0 {
|
||||||
label = "User SW0";
|
label = "User SW0";
|
||||||
gpios = <&gpioa 16 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioa 16 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
user_button_1: button@1 {
|
user_button_1: button_1 {
|
||||||
label = "User SW1";
|
label = "User SW1";
|
||||||
gpios = <&gpioa 17 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioa 17 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -49,11 +49,11 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button_3: button@0 {
|
user_button_3: button_0 {
|
||||||
label = "User SW3";
|
label = "User SW3";
|
||||||
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
user_button_4: button@1 {
|
user_button_4: button_1 {
|
||||||
label = "User SW4";
|
label = "User SW4";
|
||||||
gpios = <&gpioc 5 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioc 5 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button: button@0 {
|
user_button: button_0 {
|
||||||
label = "User SW8";
|
label = "User SW8";
|
||||||
gpios = <&gpio5 0 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpio5 0 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,19 +43,19 @@
|
||||||
|
|
||||||
buttons {
|
buttons {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
button0: button@0 {
|
button0: button_0 {
|
||||||
gpios = <&gpio0 17 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 17 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 0";
|
label = "Push button switch 0";
|
||||||
};
|
};
|
||||||
button1: button@1 {
|
button1: button_1 {
|
||||||
gpios = <&gpio0 18 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 18 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 1";
|
label = "Push button switch 1";
|
||||||
};
|
};
|
||||||
button2: button@2 {
|
button2: button_2 {
|
||||||
gpios = <&gpio0 19 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 19 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 2";
|
label = "Push button switch 2";
|
||||||
};
|
};
|
||||||
button3: button@3 {
|
button3: button_3 {
|
||||||
gpios = <&gpio0 20 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 20 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 3";
|
label = "Push button switch 3";
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,19 +45,19 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
button0: button@0 {
|
button0: button_0 {
|
||||||
label = "Push button switch 0";
|
label = "Push button switch 0";
|
||||||
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
|
||||||
};
|
};
|
||||||
button1: button@1 {
|
button1: button_1 {
|
||||||
label = "Push button switch 1";
|
label = "Push button switch 1";
|
||||||
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
|
||||||
};
|
};
|
||||||
button2: button@2 {
|
button2: button_2 {
|
||||||
label = "Push button switch 2";
|
label = "Push button switch 2";
|
||||||
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
|
||||||
};
|
};
|
||||||
button3: button@3 {
|
button3: button_3 {
|
||||||
label = "Push button switch 3";
|
label = "Push button switch 3";
|
||||||
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
buttons {
|
buttons {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
button0: button@0 {
|
button0: button_0 {
|
||||||
gpios = <&gpio1 6 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio1 6 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 0";
|
label = "Push button switch 0";
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,19 +44,19 @@
|
||||||
|
|
||||||
buttons {
|
buttons {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
button0: button@0 {
|
button0: button_0 {
|
||||||
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 0";
|
label = "Push button switch 0";
|
||||||
};
|
};
|
||||||
button1: button@1 {
|
button1: button_1 {
|
||||||
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 1";
|
label = "Push button switch 1";
|
||||||
};
|
};
|
||||||
button2: button@2 {
|
button2: button_2 {
|
||||||
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 2";
|
label = "Push button switch 2";
|
||||||
};
|
};
|
||||||
button3: button@3 {
|
button3: button_3 {
|
||||||
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
|
||||||
label = "Push button switch 3";
|
label = "Push button switch 3";
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button: button@0 {
|
user_button: button_0 {
|
||||||
gpios = <&gpio0 7 GPIO_PUD_PULL_UP>;
|
gpios = <&gpio0 7 GPIO_PUD_PULL_UP>;
|
||||||
label = "User Button";
|
label = "User Button";
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
user_button_1: button@0 {
|
user_button_1: button_0 {
|
||||||
label = "User SW1";
|
label = "User SW1";
|
||||||
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
|
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue