summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTrent Piepho <trent.piepho@synapse.com>2020-09-25 16:43:15 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 09:04:34 +0200
commit8974923296b8938741c8b1161771547b8d11ce56 (patch)
treebc1386368c012dce41deee5df16a6f8faef397a9 /arch
parentc6347aed39e3305198d919b15fe8887154b4ebbf (diff)
downloadbarebox-8974923296b8938741c8b1161771547b8d11ce56.tar.gz
barebox-8974923296b8938741c8b1161771547b8d11ce56.tar.xz
ARM: beaglebone: Enable ADC
On the BeagleBone Black, enable the dts node for the TSC/ADC. Add a simple configuration that maps all eight channels in order. AIN[0:6] are exposed on connector P9, while AIN7 measures the 3.3V rail divided by 2. Signed-off-by: Trent Piepho <trent.piepho@synapse.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/am335x-boneblack.dts10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/dts/am335x-boneblack.dts b/arch/arm/dts/am335x-boneblack.dts
index 80d710b924..c06a532e48 100644
--- a/arch/arm/dts/am335x-boneblack.dts
+++ b/arch/arm/dts/am335x-boneblack.dts
@@ -85,3 +85,13 @@
status = "okay";
};
};
+
+&tscadc {
+ status = "okay";
+ adc {
+ /* Ch 0-6 are on connector P9. Ch 7 measures the 3.3V rail
+ * divided by 2 (e.g., it should read 1650).
+ */
+ ti,adc-channels = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>;
+ };
+};