]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun4i: Change LRADC node names to avoid warnings
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 5 Oct 2017 10:49:43 +0000 (12:49 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 9 Oct 2017 08:52:12 +0000 (10:52 +0200)
One of the usage of the LRADC is to implement buttons. The bindings define
that we should have one subnode per button, with their associated voltage
as a property.

However, there was no reg property but we still used the voltage associated
to the button as the unit-address, which eventually generated warnings in
DTC.

Rename the node names to avoid those warnings.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
arch/arm/boot/dts/sun4i-a10-inet1.dts
arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
arch/arm/boot/dts/sun4i-a10-inet9f-rev03.dts
arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts

index a7d61994b8fd272d2d4531fe15d1e4e8653622d3..68f68e74910ff1e7e700ea410125b19b696d5494 100644 (file)
@@ -104,21 +104,21 @@ &lradc {
        vref-supply = <&reg_vcc3v0>;
        status = "okay";
 
-       button@800 {
+       button-800 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <800000>;
        };
 
-       button@1000 {
+       button-1000 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <1000000>;
        };
 
-       button@1200 {
+       button-1200 {
                label = "Back";
                linux,code = <KEY_BACK>;
                channel = <0>;
index a69bd560ceb750338a3af788590fd510832f539d..f3d0435fa7d1c3aee2e94a87faf6951436c4676b 100644 (file)
@@ -138,14 +138,14 @@ &lradc {
        vref-supply = <&reg_ldo2>;
        status = "okay";
 
-       button@400 {
+       button-400 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <400000>;
        };
 
-       button@800 {
+       button-800 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
index d347eaf6dfccf3ab6995b8aa80dd1679fe924d91..d97085c47001b48503d6bb0a4b89481b13ab2913 100644 (file)
@@ -120,21 +120,21 @@ &lradc {
 
        status = "okay";
 
-       button@158 {
+       button-158 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <158730>;
        };
 
-       button@349 {
+       button-349 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <349206>;
        };
 
-       button@1142 {
+       button-1142 {
                label = "Esc";
                linux,code = <KEY_ESC>;
                channel = <0>;
index f6673745cc90337ce01ce3a0dd1ac1d221a78eb1..7b3ebc354ac3118de6e01083eda0873bffd37678 100644 (file)
@@ -133,21 +133,21 @@ &lradc {
        vref-supply = <&reg_ldo2>;
        status = "okay";
 
-       button@200 {
+       button-200 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <200000>;
        };
 
-       button@1000 {
+       button-1000 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <1000000>;
        };
 
-       button@1200 {
+       button-1200 {
                label = "Home";
                linux,code = <KEY_HOMEPAGE>;
                channel = <0>;
index a8e479fe43ca83acf8df79a637b0db864ddb74dc..f1b79a5ecb272ed707997a838b08f6233affa58a 100644 (file)
@@ -109,35 +109,35 @@ &lradc {
        vref-supply = <&reg_ldo2>;
        status = "okay";
 
-       button@200 {
+       button-200 {
                label = "Menu";
                linux,code = <KEY_MENU>;
                channel = <0>;
                voltage = <200000>;
        };
 
-       button@600 {
+       button-600 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <600000>;
        };
 
-       button@800 {
+       button-800 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <800000>;
        };
 
-       button@1000 {
+       button-1000 {
                label = "Home";
                linux,code = <KEY_HOMEPAGE>;
                channel = <0>;
                voltage = <1000000>;
        };
 
-       button@1200 {
+       button-1200 {
                label = "Esc";
                linux,code = <KEY_ESC>;
                channel = <0>;
index fda6db5f00119b812c75d3d7ae4fdc893c33cf98..4fa5de28eddea5872c4de02e0f9a1d0b91bbbd00 100644 (file)
@@ -267,35 +267,35 @@ &lradc {
        vref-supply = <&reg_ldo2>;
        status = "okay";
 
-       button@200 {
+       button-200 {
                label = "Menu";
                linux,code = <KEY_MENU>;
                channel = <0>;
                voltage = <200000>;
        };
 
-       button@600 {
+       button-600 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <600000>;
        };
 
-       button@800 {
+       button-800 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <800000>;
        };
 
-       button@1000 {
+       button-1000 {
                label = "Home";
                linux,code = <KEY_HOMEPAGE>;
                channel = <0>;
                voltage = <1000000>;
        };
 
-       button@1200 {
+       button-1200 {
                label = "Esc";
                linux,code = <KEY_ESC>;
                channel = <0>;
index d9195118cf5ec9bcae99adcb3b9d7f0a7082fcd4..1385a20f23296d79b04b16a09c1b73bab746561e 100644 (file)
@@ -126,14 +126,14 @@ &lradc {
        vref-supply = <&reg_ldo2>;
        status = "okay";
 
-       button@400 {
+       button-400 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <400000>;
        };
 
-       button@800 {
+       button-800 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;