* [PATCH] arm64: dts: freescale: imx93-phyboard-nash: Add current sense amplifier
@ 2025-07-14 10:36 Primoz Fiser
2025-08-20 3:37 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Primoz Fiser @ 2025-07-14 10:36 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, upstream
There is a current sensing circuitry on the phyBOARD-Nash-i.MX93 capable
of measuring input current consumption of the phyCORE-i.MX93 SoM @ 3.3V.
Circuity consists of MAX4372 current-sense amplifier (50V/V) with two 70
mOhm shunts resistors in parallel configuration (effective R = 35 mOhm)
connected to the SoC internal 12-bit ADC channel #1 (Vref = 1.8V) via
voltage divider with ratio of 1/2. This results in a current scaling
factor of 0.502232142 mA/LSB.
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
index 00143f201876..8de7e174976f 100644
--- a/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
@@ -28,6 +28,14 @@ chosen {
stdout-path = &lpuart1;
};
+ current-sense {
+ compatible = "current-sense-amplifier";
+ io-channels = <&adc1 1>;
+ sense-gain-div = <2>;
+ sense-gain-mult = <50>;
+ sense-resistor-micro-ohms = <35000>;
+ };
+
flexcan1_tc: can-phy0 {
compatible = "ti,tcan1042";
#phy-cells = <0>;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: freescale: imx93-phyboard-nash: Add current sense amplifier
2025-07-14 10:36 [PATCH] arm64: dts: freescale: imx93-phyboard-nash: Add current sense amplifier Primoz Fiser
@ 2025-08-20 3:37 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2025-08-20 3:37 UTC (permalink / raw)
To: Primoz Fiser
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, devicetree,
imx, linux-arm-kernel, linux-kernel, upstream
On Mon, Jul 14, 2025 at 12:36:24PM +0200, Primoz Fiser wrote:
> There is a current sensing circuitry on the phyBOARD-Nash-i.MX93 capable
> of measuring input current consumption of the phyCORE-i.MX93 SoM @ 3.3V.
> Circuity consists of MAX4372 current-sense amplifier (50V/V) with two 70
> mOhm shunts resistors in parallel configuration (effective R = 35 mOhm)
> connected to the SoC internal 12-bit ADC channel #1 (Vref = 1.8V) via
> voltage divider with ratio of 1/2. This results in a current scaling
> factor of 0.502232142 mA/LSB.
>
> Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-20 3:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14 10:36 [PATCH] arm64: dts: freescale: imx93-phyboard-nash: Add current sense amplifier Primoz Fiser
2025-08-20 3:37 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).