Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sun8i: v3s: 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@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>

+4 -4
+4 -4
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts
··· 66 66 vref-supply = <&reg_vcc3v0>; 67 67 status = "okay"; 68 68 69 - button@200 { 69 + button-200 { 70 70 label = "Volume Up"; 71 71 linux,code = <KEY_VOLUMEUP>; 72 72 channel = <0>; 73 73 voltage = <200000>; 74 74 }; 75 75 76 - button@400 { 76 + button-400 { 77 77 label = "Volume Down"; 78 78 linux,code = <KEY_VOLUMEDOWN>; 79 79 channel = <0>; 80 80 voltage = <400000>; 81 81 }; 82 82 83 - button@600 { 83 + button-600 { 84 84 label = "Select"; 85 85 linux,code = <KEY_SELECT>; 86 86 channel = <0>; 87 87 voltage = <600000>; 88 88 }; 89 89 90 - button@800 { 90 + button-800 { 91 91 label = "Start"; 92 92 linux,code = <KEY_OK>; 93 93 channel = <0>;