[RCF 3/3] ARM: imx6q-evi: ads ads1118 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 <stillcompiling@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux