From: martin.blumenstingl@googlemail.com (Martin Blumenstingl)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 3/4] ARM: dts: meson8b: odroidc1: enable the SAR ADC
Date: Thu, 13 Sep 2018 22:29:18 +0200 [thread overview]
Message-ID: <20180913202919.20927-4-martin.blumenstingl@googlemail.com> (raw)
In-Reply-To: <20180913202919.20927-1-martin.blumenstingl@googlemail.com>
Odroid-C1 exposes ADC channels 0 and 1 on the GPIO headers. NOTE: Due
to the SoC design these are limited to 1.8V (instead of 3.3V like all
other pins).
Enable the SAR ADC to enable voltage measurements on these pins.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
arch/arm/boot/dts/meson8b-odroidc1.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index a08dccccdb5e..7c1225658567 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -246,6 +246,11 @@
pinctrl-names = "default";
};
+&saradc {
+ status = "okay";
+ vref-supply = <&vcc_1v8>;
+};
+
&sdio {
status = "okay";
--
2.19.0
next prev parent reply other threads:[~2018-09-13 20:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 20:29 [PATCH 0/4] Meson8b: Odroid-C1 improvements Martin Blumenstingl
2018-09-13 20:29 ` [PATCH 1/4] ARM: dts: meson8b: odroidc1: add the CPU voltage regulator Martin Blumenstingl
2018-09-13 20:29 ` [PATCH 2/4] ARM: dts: meson8b: odroidc1: add the fixed voltage regulators Martin Blumenstingl
2018-09-13 20:29 ` Martin Blumenstingl [this message]
2018-09-13 20:29 ` [PATCH 4/4] ARM: dts: meson8b: odroidc1: add stdout-path property Martin Blumenstingl
2018-09-26 8:52 ` [PATCH 0/4] Meson8b: Odroid-C1 improvements Kevin Hilman
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=20180913202919.20927-4-martin.blumenstingl@googlemail.com \
--to=martin.blumenstingl@googlemail.com \
--cc=linus-amlogic@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
all inboxes | Powered by JetHome®