summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrimoz Fiser2025-07-14 12:36:24 +0200
committerShawn Guo2025-08-20 11:33:22 +0800
commit21179eae56de418ea360e31f1b69f66fc16aa4e3 (patch)
tree6560d716dd6196a50dd159f17c70351d7a57b73a
parentd1c1400bd3b8b436df3bc49d6b420b3184f7dda4 (diff)
arm64: dts: freescale: imx93-phyboard-nash: Add current sense amplifier
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> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
index 475913cf0cb9..71a0e9f270af 100644
--- a/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
@@ -27,6 +27,14 @@
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>;