Commit 0b92b823 authored by Maxime Ripard's avatar Maxime Ripard

ARM: dts: sun7i: 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@bootlin.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 8860687a
...@@ -158,49 +158,49 @@ &lradc { ...@@ -158,49 +158,49 @@ &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 = "Menu"; label = "Menu";
linux,code = <KEY_MENU>; linux,code = <KEY_MENU>;
channel = <0>; channel = <0>;
voltage = <600000>; voltage = <600000>;
}; };
button@800 { button-800 {
label = "Search"; label = "Search";
linux,code = <KEY_SEARCH>; linux,code = <KEY_SEARCH>;
channel = <0>; channel = <0>;
voltage = <800000>; voltage = <800000>;
}; };
button@980 { button-980 {
label = "Home"; label = "Home";
linux,code = <KEY_HOMEPAGE>; linux,code = <KEY_HOMEPAGE>;
channel = <0>; channel = <0>;
voltage = <980000>; voltage = <980000>;
}; };
button@1180 { button-1180 {
label = "Esc"; label = "Esc";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
channel = <0>; channel = <0>;
voltage = <1180000>; voltage = <1180000>;
}; };
button@1400 { button-1400 {
label = "Enter"; label = "Enter";
linux,code = <KEY_ENTER>; linux,code = <KEY_ENTER>;
channel = <0>; channel = <0>;
......
...@@ -171,49 +171,49 @@ &lradc { ...@@ -171,49 +171,49 @@ &lradc {
vref-supply = <&reg_vcc3v0>; vref-supply = <&reg_vcc3v0>;
status = "okay"; status = "okay";
button@191 { button-191 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <191274>; voltage = <191274>;
}; };
button@392 { button-392 {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
channel = <0>; channel = <0>;
voltage = <392644>; voltage = <392644>;
}; };
button@601 { button-601 {
label = "Menu"; label = "Menu";
linux,code = <KEY_MENU>; linux,code = <KEY_MENU>;
channel = <0>; channel = <0>;
voltage = <601151>; voltage = <601151>;
}; };
button@795 { button-795 {
label = "Search"; label = "Search";
linux,code = <KEY_SEARCH>; linux,code = <KEY_SEARCH>;
channel = <0>; channel = <0>;
voltage = <795090>; voltage = <795090>;
}; };
button@987 { button-987 {
label = "Home"; label = "Home";
linux,code = <KEY_HOMEPAGE>; linux,code = <KEY_HOMEPAGE>;
channel = <0>; channel = <0>;
voltage = <987387>; voltage = <987387>;
}; };
button@1184 { button-1184 {
label = "Esc"; label = "Esc";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
channel = <0>; channel = <0>;
voltage = <1184678>; voltage = <1184678>;
}; };
button@1398 { button-1398 {
label = "Enter"; label = "Enter";
linux,code = <KEY_ENTER>; linux,code = <KEY_ENTER>;
channel = <0>; channel = <0>;
......
...@@ -128,14 +128,14 @@ &lradc { ...@@ -128,14 +128,14 @@ &lradc {
vref-supply = <&reg_vcc3v0>; vref-supply = <&reg_vcc3v0>;
status = "okay"; status = "okay";
button@571 { button-571 {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
channel = <0>; channel = <0>;
voltage = <571428>; voltage = <571428>;
}; };
button@761 { button-761 {
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