From eb75fab10b6f1addc1c27baa0f1ed844c4a48bcd Mon Sep 17 00:00:00 2001 From: Shunqing Chen Date: Thu, 15 Dec 2016 20:53:00 +0800 Subject: [PATCH] ARM64: dts: rk3399: add bq25700 support for tve1205g Change-Id: I74119a51d2557e86f3c579645db2b2b8dc71989c Signed-off-by: Shunqing Chen --- .../boot/dts/rockchip/rk3399-tve1205g.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts b/arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts index 00d4c2a6eaff..e59b5984cdfc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts @@ -654,6 +654,37 @@ }; }; +&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>; @@ -667,6 +698,7 @@ 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"; }; }; @@ -684,6 +716,7 @@ 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"; }; }; @@ -927,6 +960,13 @@ }; }; + charger { + charger_ok: charge-ok { + rockchip,pins = + <1 23 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + usb2 { host_vbus_drv: host-vbus-drv { rockchip,pins = -- 2.34.1