From: Michal Simek Date: Tue, 25 Jun 2019 07:09:15 +0000 (+0200) Subject: arm64: zynqmp: Fix ina226/u12 setup for System Controller X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae3ac3945c4488933a1200b1751d4ed7161e2e2;p=thirdparty%2Fu-boot.git arm64: zynqmp: Fix ina226/u12 setup for System Controller 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 --- diff --git a/arch/arm/dts/zynqmp-a2197-p-revA.dts b/arch/arm/dts/zynqmp-a2197-p-revA.dts index fcb537d54ed..7c672ac27d5 100644 --- a/arch/arm/dts/zynqmp-a2197-p-revA.dts +++ b/arch/arm/dts/zynqmp-a2197-p-revA.dts @@ -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 */