mirror of https://gitee.com/openkylin/linux.git
ARM: dts: sun6i: 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: Maxime Ripard <maxime.ripard@bootlin.com> Acked-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
parent
1b7e882d30
commit
97b3d91204
|
@ -53,7 +53,7 @@ &lradc {
|
|||
vref-supply = <®_aldo3>;
|
||||
status = "okay";
|
||||
|
||||
button@1000 {
|
||||
button-1000 {
|
||||
label = "Home";
|
||||
linux,code = <KEY_HOMEPAGE>;
|
||||
channel = <0>;
|
||||
|
|
|
@ -73,21 +73,21 @@ &lradc {
|
|||
vref-supply = <®_aldo3>;
|
||||
status = "okay";
|
||||
|
||||
button@200 {
|
||||
button-200 {
|
||||
label = "Volume Down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
channel = <0>;
|
||||
voltage = <200000>;
|
||||
};
|
||||
|
||||
button@900 {
|
||||
button-900 {
|
||||
label = "Volume Up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
channel = <0>;
|
||||
voltage = <900000>;
|
||||
};
|
||||
|
||||
button@1200 {
|
||||
button-1200 {
|
||||
label = "Back";
|
||||
linux,code = <KEY_BACK>;
|
||||
channel = <0>;
|
||||
|
|
|
@ -131,14 +131,14 @@ &lradc {
|
|||
vref-supply = <®_aldo3>;
|
||||
status = "okay";
|
||||
|
||||
button@158 {
|
||||
button-158 {
|
||||
label = "Volume Up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
channel = <0>;
|
||||
voltage = <158730>;
|
||||
};
|
||||
|
||||
button@349 {
|
||||
button-349 {
|
||||
label = "Volume Down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
channel = <0>;
|
||||
|
|
|
@ -147,14 +147,14 @@ &lradc {
|
|||
vref-supply = <®_aldo3>;
|
||||
status = "okay";
|
||||
|
||||
button@158 {
|
||||
button-158 {
|
||||
label = "Volume Up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
channel = <0>;
|
||||
voltage = <158730>;
|
||||
};
|
||||
|
||||
button@349 {
|
||||
button-349 {
|
||||
label = "Volume Down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
channel = <0>;
|
||||
|
|
Loading…
Reference in New Issue