add support to imx6q-evi for the 3 ADS1118 temperature/adc units,
 now that is has has a kernel driver

Signed-off-by: Joshua Clayton <stillcompil...@gmail.com>
---
 arch/arm/boot/dts/imx6q-evi.dts | 90 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)

diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts
index 4fa5601..7e175bf 100644
--- a/arch/arm/boot/dts/imx6q-evi.dts
+++ b/arch/arm/boot/dts/imx6q-evi.dts
@@ -105,6 +105,66 @@
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3cs>;
        status = "okay";
+
+       temp1: adc@0 {
+               compatible = "ti,ads1118";
+               spi-max-frequency = <500000>;
+               spi-cpha;
+               reg = <0>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               ti,tempsensor;
+               cpu-v@0 {
+                       reg = <0>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               cpld@1 {
+                       reg = <1>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               vocm@2 {
+                       reg = <2>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               fpga@3 {
+                       reg = <3>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+       };
+
+       adc2: adc@1 {
+               compatible = "ti,ads1118";
+               spi-max-frequency = <500000>;
+               spi-cpha;
+               reg = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               ti,tempsensor;
+               signal@0 {
+                       reg = <0>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               signal@1 {
+                       reg = <1>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               probedrive@2 {
+                       reg = <2>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               probedrive@3 {
+                       reg = <3>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+       };
 };
 
 &ecspi5 {
@@ -126,6 +186,36 @@
                reg = <1>;
        };
 
+       temp0: temp@2 {
+               compatible = "ti,ads1118";
+               spi-max-frequency = <500000>;
+               spi-cpha;
+               reg = <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               ti,tempsensor;
+               analog-x@0 {
+                       reg = <0>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               analog-y@1 {
+                       reg = <1>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               main-12v@2 {
+                       reg = <2>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+               battbox@3 {
+                       reg = <3>;
+                       ti,fullscale = <6144000>;
+                       ti,datarate = <860>;
+               };
+       };
+
        pb_rtc: rtc@3 {
                compatible = "nxp,rtc-pcf2123";
                spi-max-frequency = <2450000>;
-- 
2.7.4

Reply via email to