Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx95-aquila-lotus: Add internal voltage monitoring
@ 2026-11-27 17:34 Leonardo Costa
  2026-12-01 18:05 ` Frank Li
  0 siblings, 1 reply; 2+ messages in thread
From: Leonardo Costa @ 2026-11-27 17:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: linux-bsp, devicetree, imx, linux-arm-kernel, linux-kernel,
	Leonardo Costa

From: Leonardo Costa <leonardo.costa@toradex.com>

The Lotus Carrier board routes its 5V, 3.3V and 1.8V internal voltages
through resistor dividers to ADC_[123]. Add the voltage dividers so that
the internal voltages can be monitored.

Signed-off-by: Leonardo Costa <leonardo.costa@toradex.com>
---
 .../boot/dts/freescale/imx95-aquila-lotus.dts      | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-aquila-lotus.dts b/arch/arm64/boot/dts/freescale/imx95-aquila-lotus.dts
index 4ae600636106b..7c20df249eb20 100644
--- a/arch/arm64/boot/dts/freescale/imx95-aquila-lotus.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-aquila-lotus.dts
@@ -34,6 +34,30 @@ dp_1_connector_in: endpoint {
 		};
 	};
 
+	lotus-1v8-voltage {
+		compatible = "voltage-divider";
+		full-ohms = <39000>; /* 12k + 27k */
+		/* Aquila ADC_3 */
+		io-channels = <&adc1 2>;
+		output-ohms = <27000>;
+	};
+
+	lotus-3v3-voltage {
+		compatible = "voltage-divider";
+		full-ohms = <54000>; /* 27k + 27k */
+		/* Aquila ADC_2 */
+		io-channels = <&adc1 1>;
+		output-ohms = <27000>;
+	};
+
+	lotus-5v-voltage {
+		compatible = "voltage-divider";
+		full-ohms = <39000>; /* 27k + 12k */
+		/* Aquila ADC_1 */
+		io-channels = <&adc1 0>;
+		output-ohms = <12000>;
+	};
+
 	reg_dp_3p3v: regulator-dp-3p3v {
 		compatible = "regulator-fixed";
 		pinctrl-names = "default";

---
base-commit: ebe46fb6c3c40292eb647d0bfd5d1beb05b923c4
change-id: 20261126-v1-aquila-imx95-lotus-add-missing-nodes-d06aa510fe04

Best regards,
-- 
Leonardo Costa <leonardo.costa@toradex.com>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 17:34 [PATCH] arm64: dts: imx95-aquila-lotus: Add internal voltage monitoring Leonardo Costa
2026-12-01 18:05 ` Frank Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox