aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2023-01-17 21:51:37 +0800
committerShawn Guo <shawnguo@kernel.org>2023-01-26 16:37:57 +0800
commit5d11fe56a6e826f2687f32848f8a8df8222cadc9 (patch)
tree1f2740acecbc834ab2df3e9c3694b16e391d66a3
parentarm64: dts: imx8mp: Reorder clock to match fsl,imx6q-pcie.yaml (diff)
downloadwireguard-linux-5d11fe56a6e826f2687f32848f8a8df8222cadc9.tar.xz
wireguard-linux-5d11fe56a6e826f2687f32848f8a8df8222cadc9.zip
arm64: dts: imx93: add ADC support
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>
-rw-r--r--arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts12
-rw-r--r--arch/arm64/boot/dts/freescale/imx93.dtsi13
2 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
index 69786c326db0..cab5f4d66bf9 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
@@ -15,6 +15,13 @@
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";
@@ -27,6 +34,11 @@
};
};
+&adc1 {
+ vref-supply = <&reg_vref_1v8>;
+ status = "okay";
+};
+
&mu1 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 6808321ed809..abb3fbe4ba22 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -280,6 +280,19 @@
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 {