Skip to content

Commit

Permalink
arm64: dts: colibri-imx8x: Add analog inputs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
João Paulo Gonçalves authored and Shawn Guo committed Sep 4, 2024
1 parent 53f7fe5 commit 7f6b48a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* Copyright 2018-2021 Toradex
*/

/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};

&colibri_gpio_keys {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
};
};

/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};

&colibri_gpio_keys {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
};
};

/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};

&colibri_gpio_keys {
status = "okay";
};
Expand Down
14 changes: 13 additions & 1 deletion arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
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";
Expand All @@ -50,7 +57,12 @@
};
};

/* 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 */

Expand Down

0 comments on commit 7f6b48a

Please sign in to comment.