From: Trent Piepho <trent.piepho@synapse.com>
To: barebox@lists.infradead.org
Cc: Trent Piepho <trent.piepho@synapse.com>
Subject: [PATCH v2 4/4] ARM: beaglebone: Enable ADC
Date: Fri, 25 Sep 2020 16:43:15 -0700 [thread overview]
Message-ID: <20200925234315.453448-4-trent.piepho@synapse.com> (raw)
In-Reply-To: <20200925234315.453448-1-trent.piepho@synapse.com>
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>
---
arch/arm/dts/am335x-boneblack.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/dts/am335x-boneblack.dts b/arch/arm/dts/am335x-boneblack.dts
index 80d710b92..c06a532e4 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>;
+ };
+};
--
2.26.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-09-25 23:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 23:43 [PATCH v2 1/4] aiodev: Name channels with device instance name Trent Piepho
2020-09-25 23:43 ` [PATCH v2 2/4] aiodev: am335x_adc: Driver for ADC on TI AM335x SoCs Trent Piepho
2020-09-25 23:43 ` [PATCH v2 3/4] ARM: am335x: Enable TSC/ADC clock Trent Piepho
2020-09-25 23:43 ` Trent Piepho [this message]
2020-09-29 7:04 ` [PATCH v2 1/4] aiodev: Name channels with device instance name Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200925234315.453448-4-trent.piepho@synapse.com \
--to=trent.piepho@synapse.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox