arm64: dts: imx8dxl_evk: add adc0 support
authorFrank Li <Frank.Li@nxp.com>
Fri, 11 Nov 2022 15:47:38 +0000 (10:47 -0500)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Nov 2022 08:48:36 +0000 (16:48 +0800)
Enable adc0 at imx8dxl_evk boards dts.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts

index fc9647e..11b1ff9 100644 (file)
                off-on-delay-us = <3480>;
        };
 
+       reg_vref_1v8: regulator-adc-vref {
+               compatible = "regulator-fixed";
+               regulator-name = "vref_1v8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+       };
+
        mii_select: regulator-4 {
                compatible = "regulator-fixed";
                regulator-name = "mii-select";
        };
 };
 
+&adc0 {
+       vref-supply = <&reg_vref_1v8>;
+       status = "okay";
+};
+
 &eqos {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_eqos>;