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:
Sebastian Bøe 2018-10-03 09:12:09 +02:00 committed by Kumar Gala
commit 25e7316ea7
12 changed files with 24 additions and 24 deletions

View file

@ -39,7 +39,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button@0 {
user_button: button_0 {
label = "User";
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -31,7 +31,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button@0 {
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -63,11 +63,11 @@
gpio_keys {
compatible = "gpio-keys";
user_button_2: button@0 {
user_button_2: button_0 {
label = "User SW2";
gpios = <&gpioc 6 GPIO_INT_ACTIVE_LOW>;
};
user_button_3: button@1 {
user_button_3: button_1 {
label = "User SW3";
gpios = <&gpioa 4 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -47,11 +47,11 @@
gpio_keys {
compatible = "gpio-keys";
user_button_0: button@0 {
user_button_0: button_0 {
label = "User SW0";
gpios = <&gpioa 16 GPIO_INT_ACTIVE_LOW>;
};
user_button_1: button@1 {
user_button_1: button_1 {
label = "User SW1";
gpios = <&gpioa 17 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -49,11 +49,11 @@
gpio_keys {
compatible = "gpio-keys";
user_button_3: button@0 {
user_button_3: button_0 {
label = "User SW3";
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
};
user_button_4: button@1 {
user_button_4: button_1 {
label = "User SW4";
gpios = <&gpioc 5 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -56,7 +56,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button@0 {
user_button: button_0 {
label = "User SW8";
gpios = <&gpio5 0 GPIO_INT_ACTIVE_LOW>;
};

View file

@ -43,19 +43,19 @@
buttons {
compatible = "gpio-keys";
button0: button@0 {
button0: button_0 {
gpios = <&gpio0 17 GPIO_PUD_PULL_UP>;
label = "Push button switch 0";
};
button1: button@1 {
button1: button_1 {
gpios = <&gpio0 18 GPIO_PUD_PULL_UP>;
label = "Push button switch 1";
};
button2: button@2 {
button2: button_2 {
gpios = <&gpio0 19 GPIO_PUD_PULL_UP>;
label = "Push button switch 2";
};
button3: button@3 {
button3: button_3 {
gpios = <&gpio0 20 GPIO_PUD_PULL_UP>;
label = "Push button switch 3";
};

View file

@ -45,19 +45,19 @@
gpio_keys {
compatible = "gpio-keys";
button0: button@0 {
button0: button_0 {
label = "Push button switch 0";
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
};
button1: button@1 {
button1: button_1 {
label = "Push button switch 1";
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
};
button2: button@2 {
button2: button_2 {
label = "Push button switch 2";
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
};
button3: button@3 {
button3: button_3 {
label = "Push button switch 3";
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
};

View file

@ -44,7 +44,7 @@
buttons {
compatible = "gpio-keys";
button0: button@0 {
button0: button_0 {
gpios = <&gpio1 6 GPIO_PUD_PULL_UP>;
label = "Push button switch 0";
};

View file

@ -44,19 +44,19 @@
buttons {
compatible = "gpio-keys";
button0: button@0 {
button0: button_0 {
gpios = <&gpio0 13 GPIO_PUD_PULL_UP>;
label = "Push button switch 0";
};
button1: button@1 {
button1: button_1 {
gpios = <&gpio0 14 GPIO_PUD_PULL_UP>;
label = "Push button switch 1";
};
button2: button@2 {
button2: button_2 {
gpios = <&gpio0 15 GPIO_PUD_PULL_UP>;
label = "Push button switch 2";
};
button3: button@3 {
button3: button_3 {
gpios = <&gpio0 16 GPIO_PUD_PULL_UP>;
label = "Push button switch 3";
};

View file

@ -44,7 +44,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button@0 {
user_button: button_0 {
gpios = <&gpio0 7 GPIO_PUD_PULL_UP>;
label = "User Button";
};

View file

@ -45,7 +45,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button_1: button@0 {
user_button_1: button_0 {
label = "User SW1";
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
};