arm64: dts: colibri-imx8x: Add analog inputs

Add adc nodes for analog inputs support for all Colibri-iMX8X carrier
boards.

Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
João Paulo Gonçalves
2024-09-01 17:57:13 +02:00
committed by Shawn Guo
parent 53f7fe5070
commit 7f6b48a663
4 changed files with 28 additions and 1 deletions

View File

@@ -3,6 +3,11 @@
* Copyright 2018-2021 Toradex
*/
/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};
&colibri_gpio_keys {
status = "okay";
};

View File

@@ -19,6 +19,11 @@ clk16m: clock-16mhz {
};
};
/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};
&colibri_gpio_keys {
status = "okay";
};

View File

@@ -17,6 +17,11 @@ reg_3v3: regulator-3v3 {
};
};
/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};
&colibri_gpio_keys {
status = "okay";
};

View File

@@ -38,6 +38,13 @@ reg_module_3v3: regulator-module-3v3 {
regulator-max-microvolt = <3300000>;
};
reg_module_vref_1v8: regulator-module-vref-1v8 {
compatible = "regulator-fixed";
regulator-max-microvolt = <1800000>;
regulator-min-microvolt = <1800000>;
regulator-name = "vref-1v8";
};
reg_usbh_vbus: regulator-usbh-vbus {
compatible = "regulator-fixed";
pinctrl-names = "default";
@@ -50,7 +57,12 @@ reg_usbh_vbus: regulator-usbh-vbus {
};
};
/* TODO Analogue Inputs */
/* Colibri Analogue Inputs */
&adc0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_adc0>;
vref-supply = <&reg_module_vref_1v8>;
};
/* TODO Cooling maps for DX */