Commit f2a5e425 authored by Maxime Ripard's avatar Maxime Ripard

ARM: dts: sun8i: a23/a33: 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>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
parent ec6b944c
...@@ -80,21 +80,21 @@ &lradc { ...@@ -80,21 +80,21 @@ &lradc {
vref-supply = <&reg_vcc3v0>; vref-supply = <&reg_vcc3v0>;
status = "okay"; status = "okay";
button@190 { button-190 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <190000>; voltage = <190000>;
}; };
button@390 { button-390 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <390000>; voltage = <390000>;
}; };
button@600 { button-600 {
label = "Home"; label = "Home";
linux,code = <KEY_HOME>; linux,code = <KEY_HOME>;
channel = <0>; channel = <0>;
......
...@@ -63,7 +63,7 @@ &touchscreen { ...@@ -63,7 +63,7 @@ &touchscreen {
}; };
&lradc { &lradc {
button@600 { button-600 {
label = "Back"; label = "Back";
linux,code = <KEY_BACK>; linux,code = <KEY_BACK>;
channel = <0>; channel = <0>;
......
...@@ -69,7 +69,7 @@ &touchscreen { ...@@ -69,7 +69,7 @@ &touchscreen {
}; };
&lradc { &lradc {
button@600 { button-600 {
label = "Back"; label = "Back";
linux,code = <KEY_BACK>; linux,code = <KEY_BACK>;
channel = <0>; channel = <0>;
......
...@@ -117,21 +117,21 @@ &lradc { ...@@ -117,21 +117,21 @@ &lradc {
vref-supply = <&reg_dcdc1>; vref-supply = <&reg_dcdc1>;
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 = <191011>; voltage = <191011>;
}; };
button@400 { button-400 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <391304>; voltage = <391304>;
}; };
button@600 { button-600 {
label = "Home"; label = "Home";
linux,code = <KEY_HOME>; linux,code = <KEY_HOME>;
channel = <0>; channel = <0>;
......
...@@ -109,14 +109,14 @@ &lradc { ...@@ -109,14 +109,14 @@ &lradc {
vref-supply = <&reg_aldo3>; vref-supply = <&reg_aldo3>;
status = "okay"; status = "okay";
button@0 { button-190 {
label = "V+"; label = "V+";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <190000>; voltage = <190000>;
}; };
button@1 { button-390 {
label = "V-"; label = "V-";
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