arm64: dts: imx93: add ADC support
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 17 Jan 2023 13:51:37 +0000 (21:51 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 26 Jan 2023 08:37:57 +0000 (16:37 +0800)
Add ADC support for imx93-11x11-evk board.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
arch/arm64/boot/dts/freescale/imx93.dtsi

index 69786c326db000c64590e2bd3af55f6e3afe9bf7..cab5f4d66bf926e396f33eff494b7bec963fe38f 100644 (file)
                stdout-path = &lpuart1;
        };
 
+       reg_vref_1v8: regulator-adc-vref {
+               compatible = "regulator-fixed";
+               regulator-name = "vref_1v8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+       };
+
        reg_usdhc2_vmmc: regulator-usdhc2 {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
        };
 };
 
+&adc1 {
+       vref-supply = <&reg_vref_1v8>;
+       status = "okay";
+};
+
 &mu1 {
        status = "okay";
 };
index 6808321ed809992c73a8c63f1ec4702d03df96b0..abb3fbe4ba22e5622a8c24d4d6974cfdd1b84ba4 100644 (file)
                                compatible = "fsl,imx93-anatop", "syscon";
                                reg = <0x44480000 0x10000>;
                        };
+
+                       adc1: adc@44530000 {
+                               compatible = "nxp,imx93-adc";
+                               reg = <0x44530000 0x10000>;
+                               interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX93_CLK_ADC1_GATE>;
+                               clock-names = "ipg";
+                               #io-channel-cells = <1>;
+                               status = "disabled";
+                       };
                };
 
                aips2: bus@42000000 {