summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2017-01-22 19:17:14 +0100
committerKevin Hilman <khilman@baylibre.com>2017-01-30 10:44:04 -0800
commitbd80ef5ed46233d90f216805ff40aba326ff1bdd (patch)
tree980f6e5d81bd0a66bfc3c7434aa631cbba6a34f2 /arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
parent249a2243e97edcd2cb0bef01a934d4ba21fb167f (diff)
ARM64: dts: meson: meson-gx: add the SAR ADC
Add the SAR ADC to meson-gxbb.dtsi and meson-gxl.dtsi. GXBB provides a 10-bit ADC while GXL and GXM provide a 12-bit ADC. Some boards use resistor ladder buttons connected through one of the ADC channels. On newer devices (GXL and GXM) some boards use pull-ups/downs to change the resistance (and thus the ADC value) on one of the ADC channels to indicate the board revision. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Tested-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'arch/arm64/boot/dts/amlogic/meson-gxm.dtsi')
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxm.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
index 4c55665a253f..ddea7305c644 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
@@ -117,6 +117,10 @@
};
};
+&saradc {
+ compatible = "amlogic,meson-gxm-saradc", "amlogic,meson-saradc";
+};
+
&scpi_dvfs {
clock-indices = <0 1>;
clock-output-names = "vbig", "vlittle";