]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: am335x-sl50: enable tsadc on SL50 board
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 6 Jun 2018 15:54:13 +0000 (17:54 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Jul 2018 07:14:31 +0000 (00:14 -0700)
The tsadc is used to read various voltages on the board, so enable it
to be able to read these voltages from userspace.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-sl50.dts

index 442eccc3b46673cf2abbf5027be04f3fc36c8827..38d57b89f7d39a504644714735b46080ef990daf 100644 (file)
@@ -732,3 +732,11 @@ &ehrpwm1 {
 &lcdc {
        status = "okay";
 };
+
+&tscadc {
+       status = "okay";
+};
+
+&am335x_adc {
+       ti,adc-channels = <0 1 2 3 4 5 6 7>;
+};