OSDN Git Service

ARM: dts: stm32: fix gpio-keys node on STM32 MCU boards
authorAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 15 Apr 2021 10:10:25 +0000 (12:10 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 1 Jun 2021 10:09:20 +0000 (12:09 +0200)
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>
arch/arm/boot/dts/stm32429i-eval.dts
arch/arm/boot/dts/stm32746g-eval.dts
arch/arm/boot/dts/stm32f429-disco.dts
arch/arm/boot/dts/stm32f469-disco.dts
arch/arm/boot/dts/stm32f769-disco.dts

index 7e10ae7..9ac1ffe 100644 (file)
                };
        };
 
-       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>;
index ca8c192..327613f 100644 (file)
                };
        };
 
-       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>;
index 3dc068b..075ac57 100644 (file)
                };
        };
 
-       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>;
index 2e1b3bb..8c982ae 100644 (file)
                };
        };
 
-       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>;
index 0ce7fbc..be943b7 100644 (file)
                };
        };
 
-       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>;