]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Fix ina226/u12 setup for System Controller
authorMichal Simek <michal.simek@xilinx.com>
Tue, 25 Jun 2019 07:09:15 +0000 (09:09 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 28 Jun 2019 09:25:30 +0000 (11:25 +0200)
Linux driver is not capable to handle 10Ohm shunt resistor.
That's why setup 1Ohm and setup proper calculation in user space.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-a2197-p-revA.dts

index fcb537d54ed88303f9159ba338250a08cc98c9a6..7c672ac27d58030c0af8af01fae66348d7adfa92 100644 (file)
@@ -370,7 +370,8 @@ marwell m88e1512 - SGMII */
                        vcc_bat: ina226@4e { /* u12 */
                                compatible = "ti,ina226";
                                reg = <0x4e>;
-                               shunt-resistor = <10000000>; /* 10 ohm */
+                               /* 10 ohm real value - setup 1ohm because of driver limitation */
+                               shunt-resistor = <1000000>;
                        };
                };
                i2c@4 { /* LP_I2C_SM */