Commit 8a81ff17 authored by David Lechner's avatar David Lechner Committed by Sekhar Nori

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: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent c1ae3cfa
...@@ -139,6 +139,19 @@ vcc5v: regulator1 { ...@@ -139,6 +139,19 @@ vcc5v: regulator1 {
enable-active-high; enable-active-high;
regulator-boot-on; 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 { &pmx_core {
...@@ -293,6 +306,14 @@ partition@cb0000 { ...@@ -293,6 +306,14 @@ partition@cb0000 {
}; };
}; };
}; };
adc: adc@3 {
compatible = "ti,ads7957";
reg = <3>;
#io-channel-cells = <1>;
spi-max-frequency = <10000000>;
vref-supply = <&adc_ref>;
};
}; };
&gpio { &gpio {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment