From 9e258a7e0348d8b8ac6a06db3754b2e9f50fa639 Mon Sep 17 00:00:00 2001 From: Yankun Zheng Date: Wed, 28 Jun 2017 16:34:13 +0800 Subject: [PATCH] ARM: dts: rk3229-gva-sdk: enable cw2015 fuel gauge Change-Id: Ibe6b3fd249a82239790e5d5a17c70a37f995ff9f Signed-off-by: Yankun Zheng --- arch/arm/boot/dts/rk3229-gva-sdk.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-gva-sdk.dts b/arch/arm/boot/dts/rk3229-gva-sdk.dts index c976829200ee..11b82c23a688 100644 --- a/arch/arm/boot/dts/rk3229-gva-sdk.dts +++ b/arch/arm/boot/dts/rk3229-gva-sdk.dts @@ -244,6 +244,24 @@ }; }; +&i2c2 { + status = "okay"; + + cw2015@62 { + status = "okay"; + compatible = "cw201x"; + reg = <0x62>; + bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32 + 0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52 + 0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB + 0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>; + monitor_sec = <5>; + virtual_power = <0>; + divider_res1 = <200>; + divider_res2 = <200>; + }; +}; + &cpu0 { cpu-supply = <&vdd_arm>; }; -- 2.34.1