Commit 86f8b2d3 authored by Maxime Ripard's avatar Maxime Ripard

ARM: dts: sun4i: Change LRADC node names to avoid warnings

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 6ab3cf04
...@@ -104,21 +104,21 @@ &lradc { ...@@ -104,21 +104,21 @@ &lradc {
vref-supply = <&reg_vcc3v0>; vref-supply = <&reg_vcc3v0>;
status = "okay"; status = "okay";
button@800 { button-800 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <800000>; voltage = <800000>;
}; };
button@1000 { button-1000 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <1000000>; voltage = <1000000>;
}; };
button@1200 { button-1200 {
label = "Back"; label = "Back";
linux,code = <KEY_BACK>; linux,code = <KEY_BACK>;
channel = <0>; channel = <0>;
......
...@@ -138,14 +138,14 @@ &lradc { ...@@ -138,14 +138,14 @@ &lradc {
vref-supply = <&reg_ldo2>; vref-supply = <&reg_ldo2>;
status = "okay"; status = "okay";
button@400 { button-400 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <400000>; voltage = <400000>;
}; };
button@800 { button-800 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
......
...@@ -120,21 +120,21 @@ &lradc { ...@@ -120,21 +120,21 @@ &lradc {
status = "okay"; status = "okay";
button@158 { button-158 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <158730>; voltage = <158730>;
}; };
button@349 { button-349 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <349206>; voltage = <349206>;
}; };
button@1142 { button-1142 {
label = "Esc"; label = "Esc";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
channel = <0>; channel = <0>;
......
...@@ -133,21 +133,21 @@ &lradc { ...@@ -133,21 +133,21 @@ &lradc {
vref-supply = <&reg_ldo2>; vref-supply = <&reg_ldo2>;
status = "okay"; status = "okay";
button@200 { button-200 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <200000>; voltage = <200000>;
}; };
button@1000 { button-1000 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <1000000>; voltage = <1000000>;
}; };
button@1200 { button-1200 {
label = "Home"; label = "Home";
linux,code = <KEY_HOMEPAGE>; linux,code = <KEY_HOMEPAGE>;
channel = <0>; channel = <0>;
......
...@@ -109,35 +109,35 @@ &lradc { ...@@ -109,35 +109,35 @@ &lradc {
vref-supply = <&reg_ldo2>; vref-supply = <&reg_ldo2>;
status = "okay"; status = "okay";
button@200 { button-200 {
label = "Menu"; label = "Menu";
linux,code = <KEY_MENU>; linux,code = <KEY_MENU>;
channel = <0>; channel = <0>;
voltage = <200000>; voltage = <200000>;
}; };
button@600 { button-600 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <600000>; voltage = <600000>;
}; };
button@800 { button-800 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <800000>; voltage = <800000>;
}; };
button@1000 { button-1000 {
label = "Home"; label = "Home";
linux,code = <KEY_HOMEPAGE>; linux,code = <KEY_HOMEPAGE>;
channel = <0>; channel = <0>;
voltage = <1000000>; voltage = <1000000>;
}; };
button@1200 { button-1200 {
label = "Esc"; label = "Esc";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
channel = <0>; channel = <0>;
......
...@@ -267,35 +267,35 @@ &lradc { ...@@ -267,35 +267,35 @@ &lradc {
vref-supply = <&reg_ldo2>; vref-supply = <&reg_ldo2>;
status = "okay"; status = "okay";
button@200 { button-200 {
label = "Menu"; label = "Menu";
linux,code = <KEY_MENU>; linux,code = <KEY_MENU>;
channel = <0>; channel = <0>;
voltage = <200000>; voltage = <200000>;
}; };
button@600 { button-600 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <600000>; voltage = <600000>;
}; };
button@800 { button-800 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <800000>; voltage = <800000>;
}; };
button@1000 { button-1000 {
label = "Home"; label = "Home";
linux,code = <KEY_HOMEPAGE>; linux,code = <KEY_HOMEPAGE>;
channel = <0>; channel = <0>;
voltage = <1000000>; voltage = <1000000>;
}; };
button@1200 { button-1200 {
label = "Esc"; label = "Esc";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
channel = <0>; channel = <0>;
......
...@@ -126,14 +126,14 @@ &lradc { ...@@ -126,14 +126,14 @@ &lradc {
vref-supply = <&reg_ldo2>; vref-supply = <&reg_ldo2>;
status = "okay"; status = "okay";
button@400 { button-400 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <400000>; voltage = <400000>;
}; };
button@800 { button-800 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment