Skip to content

Commit

Permalink
ARM: dts: stm32: fix gpio-keys node on STM32 MCU boards
Browse files Browse the repository at this point in the history
[ Upstream commit bf24b91 ]

Fix following warning observed with "make dtbs_check W=1" command.
It concerns f429 eval and disco boards, f769 disco board.

Warning (unit_address_vs_reg): /gpio_keys/button@0: node has a unit name,
but no reg or ranges property

Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Alexandre Torgue authored and gregkh committed Jul 25, 2021
1 parent 34ec670 commit bfbc4b4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 21 deletions.
8 changes: 3 additions & 5 deletions arch/arm/boot/dts/stm32429i-eval.dts
Expand Up @@ -119,17 +119,15 @@
};
};

gpio_keys {
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
button-0 {
label = "Wake up";
linux,code = <KEY_WAKEUP>;
gpios = <&gpioa 0 0>;
};
button@1 {
button-1 {
label = "Tamper";
linux,code = <KEY_RESTART>;
gpios = <&gpioc 13 0>;
Expand Down
6 changes: 2 additions & 4 deletions arch/arm/boot/dts/stm32746g-eval.dts
Expand Up @@ -81,12 +81,10 @@
};
};

gpio_keys {
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
button-0 {
label = "Wake up";
linux,code = <KEY_WAKEUP>;
gpios = <&gpioc 13 0>;
Expand Down
6 changes: 2 additions & 4 deletions arch/arm/boot/dts/stm32f429-disco.dts
Expand Up @@ -81,12 +81,10 @@
};
};

gpio_keys {
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
button-0 {
label = "User";
linux,code = <KEY_HOME>;
gpios = <&gpioa 0 0>;
Expand Down
6 changes: 2 additions & 4 deletions arch/arm/boot/dts/stm32f469-disco.dts
Expand Up @@ -104,12 +104,10 @@
};
};

gpio_keys {
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
button-0 {
label = "User";
linux,code = <KEY_WAKEUP>;
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
Expand Down
6 changes: 2 additions & 4 deletions arch/arm/boot/dts/stm32f769-disco.dts
Expand Up @@ -75,12 +75,10 @@
};
};

gpio_keys {
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
button-0 {
label = "User";
linux,code = <KEY_HOME>;
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
Expand Down

0 comments on commit bfbc4b4

Please sign in to comment.