aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Li <[email protected]>2024-02-27 14:30:46 -0500
committerShawn Guo <[email protected]>2024-03-29 11:10:47 +0800
commitac931ade1c7d9bc55c418aaa293448da9a5f725e (patch)
tree06a89d76da801fc32eb6ca50b721282be47e1cc3
parent4202fa93328d2d73218130cc4a4ccf9faa0efad3 (diff)
arm64: dts: imx8qm-mek: add adc0 support
Add adc0 for imx8qm-mek board. Signed-off-by: Frank Li <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
-rw-r--r--arch/arm64/boot/dts/freescale/imx8qm-mek.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
index 77ac0efdfaad..0c4972724b04 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
@@ -39,6 +39,20 @@
gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
+
+ reg_vref_1v8: regulator-adc-vref {
+ compatible = "regulator-fixed";
+ regulator-name = "vref_1v8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+};
+
+&adc0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_adc0>;
+ vref-supply = <&reg_vref_1v8>;
+ status = "okay";
};
&i2c1 {
@@ -130,6 +144,12 @@
>;
};
+ pinctrl_adc0: adc0grp {
+ fsl,pins = <
+ IMX8QM_ADC_IN0_DMA_ADC0_IN0 0xc0000060
+ >;
+ };
+
pinctrl_fec1: fec1grp {
fsl,pins = <
IMX8QM_ENET0_MDC_CONN_ENET0_MDC 0x06000020