Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sun7i: Remove gpio-keys warnings

Some gpio-keys definitions in our DTs were having buttons defined with a
unit-address and that would generate a DTC warning.

Change the buttons node names to remove the warnings.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>

+7 -6
+7 -6
arch/arm/boot/dts/sun7i-a20-pcduino3.dts
··· 75 75 }; 76 76 }; 77 77 78 - gpio_keys { 78 + gpio-keys { 79 79 compatible = "gpio-keys"; 80 - #address-cells = <1>; 81 - #size-cells = <0>; 82 - button@0 { 80 + 81 + back { 83 82 label = "Key Back"; 84 83 linux,code = <KEY_BACK>; 85 84 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; 86 85 }; 87 - button@1 { 86 + 87 + home { 88 88 label = "Key Home"; 89 89 linux,code = <KEY_HOME>; 90 90 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; 91 91 }; 92 - button@2 { 92 + 93 + menu { 93 94 label = "Key Menu"; 94 95 linux,code = <KEY_MENU>; 95 96 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>;