MLK-11475 ARM: dts: i.mx6sx: Add ADC device tree support on i.MX6SX-SDB
authorFugang Duan <b38611@freescale.com>
Tue, 1 Sep 2015 05:38:58 +0000 (13:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:19 +0000 (14:48 -0500)
Add ADC dts support on i.MX6SX-SDB platform.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
arch/arm/boot/dts/imx6sx-sdb.dtsi
arch/arm/boot/dts/imx6sx.dtsi

index 4a59a84..34fc82c 100644 (file)
                        regulator-max-microvolt = <3300000>;
                        gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
                };
+
+               reg_vref_3v3: regulator@7 {
+                       compatible = "regulator-fixed";
+                       reg = <7>;
+                       regulator-name = "vref-3v3";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+               };
        };
 
        sound {
        };
 };
 
+&adc1 {
+       vref-supply = <&reg_vref_3v3>;
+       status = "okay";
+};
+
+&adc2 {
+       vref-supply = <&reg_vref_3v3>;
+       status = "okay";
+};
+
 &audmux {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_audmux>;
index 2220d0d..6965eb8 100644 (file)
                                reg = <0x02280000 0x4000>;
                                interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
                                clocks = <&clks IMX6SX_CLK_IPG>;
+                               num-channels = <4>;
                                clock-names = "adc";
                                fsl,adck-max-frequency = <30000000>, <40000000>,
                                                         <20000000>;
                                reg = <0x02284000 0x4000>;
                                interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
                                clocks = <&clks IMX6SX_CLK_IPG>;
+                               num-channels = <4>;
                                clock-names = "adc";
                                fsl,adck-max-frequency = <30000000>, <40000000>,
                                                         <20000000>;