ARM64: dts: rk3399: add bq25700 support for tve1205g
authorShunqing Chen <csq@rock-chips.com>
Thu, 15 Dec 2016 12:53:00 +0000 (20:53 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 19 Dec 2016 09:16:30 +0000 (17:16 +0800)
Change-Id: I74119a51d2557e86f3c579645db2b2b8dc71989c
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts

index 00d4c2a6eaff2ed23347392255c9a0e9eb5ce649..e59b5984cdfce0ca9c6021bb28b1ab6d68016779 100644 (file)
        };
 };
 
+&i2c4 {
+       status = "okay";
+       clock-frequency = <100000>;
+       bq25700: bq25700@09 {//6a
+               compatible = "ti,bq25700";
+               reg = <0x09>;
+               extcon = <&fusb0>, <&fusb1>;
+
+               interrupt-parent = <&gpio1>;
+               interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&charger_ok>;
+               ti,charge-current = <2500000>;
+               ti,max-input-voltage = <20000000>;
+               ti,max-input-current = <6000000>;
+               ti,max-charge-voltage = <8750000>;
+               ti,input-current = <500000>;
+               ti,input-current-sdp = <500000>;
+               ti,input-current-dcp = <2000000>;
+               ti,input-current-cdp = <2000000>;
+               ti,minimum-sys-voltage = <7400000>;
+               ti,otg-voltage = <5000000>;
+               ti,otg-current = <500000>;
+               pd-charge-only = <1>;
+               typec0-enable-gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_HIGH>;
+               typec1-enable-gpios = <&gpio1 GPIO_A4 GPIO_ACTIVE_HIGH>;
+               typec0-discharge-gpios = <&gpio0 GPIO_B4 GPIO_ACTIVE_HIGH>;
+               typec1-discharge-gpios = <&gpio0 GPIO_B5 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &i2c6 {
        status = "okay";
        i2c-scl-rising-time-ns = <345>;
                pinctrl-0 = <&fusb1_int>;
                vbus-5v-gpios = <&gpio4 GPIO_D6 GPIO_ACTIVE_LOW>;
                int-n-gpios = <&gpio1 GPIO_B5 GPIO_ACTIVE_HIGH>;
+               charge-dev = <&bq25700>;
                status = "okay";
        };
 };
                pinctrl-0 = <&fusb0_int>;
                vbus-5v-gpios = <&gpio4 GPIO_D5 GPIO_ACTIVE_LOW>;
                int-n-gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_HIGH>;
+               charge-dev = <&bq25700>;
                status = "okay";
        };
 };
                };
        };
 
+       charger {
+               charger_ok: charge-ok {
+                       rockchip,pins =
+                               <1 23 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        usb2 {
                host_vbus_drv: host-vbus-drv {
                        rockchip,pins =