summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/da850-lego-ev3.dts
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2017-02-07 13:22:07 -0600
committerSekhar Nori <nsekhar@ti.com>2017-03-07 15:34:08 +0530
commit8a81ff173c5c9a0ab1df84fab17971dbcce8490a (patch)
tree6742209aa23e46d93de2d57ef556947c7b71697e /arch/arm/boot/dts/da850-lego-ev3.dts
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
ARM: da850-lego-ev3: Add device tree node for A/DC
This adds a node for the TI ADS7957 analog/digital converter on LEGO MINDSTORMS EV3 as well as a regulator node that is used by the A/DC node. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/da850-lego-ev3.dts')
-rw-r--r--arch/arm/boot/dts/da850-lego-ev3.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts
index 112ec92064ce..03095372ce68 100644
--- a/arch/arm/boot/dts/da850-lego-ev3.dts
+++ b/arch/arm/boot/dts/da850-lego-ev3.dts
@@ -139,6 +139,19 @@
enable-active-high;
regulator-boot-on;
};
+
+ /*
+ * This is a simple voltage divider on VCC5V to provide a 2.5V
+ * reference signal to the ADC.
+ */
+ adc_ref: regulator2 {
+ compatible = "regulator-fixed";
+ regulator-name = "adc ref";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ regulator-boot-on;
+ vin-supply = <&vcc5v>;
+ };
};
&pmx_core {
@@ -293,6 +306,14 @@
};
};
};
+
+ adc: adc@3 {
+ compatible = "ti,ads7957";
+ reg = <3>;
+ #io-channel-cells = <1>;
+ spi-max-frequency = <10000000>;
+ vref-supply = <&adc_ref>;
+ };
};
&gpio {