]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 09:13:43 +0000 (11:13 +0200)
[ Upstream commit bf24b91f4baf7e421c770a1d9c7d381b10206ac9 ]

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>
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 7eb786a2d624763627e40e87673f7f0e5c79790d..f5429e49502424cdea791341894a7f11ae8976f5 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 8c081eaf20fea20e69282215d24b8d7d88912748..f99b5df4c12f483ecb19ee82229d1e70f77200ca 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 5ceb2cf3777ff425a41a59da6dc90fe08adc257e..bcf2a5cfd6b24a522701fe038fb95329e7aac5b5 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 eea979ef5512fb91f6c42fff1d7f0bc1d73ccbae..881210d820bb7b142f48255954a86fc1812216d9 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 677276ba4dbe8f5c07f67ed493c839ed4f94f96b..80516f44bb19bdcaacc1e6d2354e3b37a50e0f9f 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>;