From 2171d7fcf60108c7744c8139c4d25f7ab0e19b3d Mon Sep 17 00:00:00 2001 From: Wang Jie Date: Wed, 17 Nov 2021 21:36:03 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3588s-tablet: modify Type-C0 vbus configuration The Type-C0 vbus circuit of rk3588s tablet has been modified. Type-C0 is used as the host mode, the charger ic(bq25703) outputs vbus. Change-Id: I4940b9dbe90c915256d6b6ec2d56fa6a461bcf76 Signed-off-by: Wang Jie --- .../boot/dts/rockchip/rk3588s-tablet.dtsi | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi index 8c3b6edf0c1e..f46ea7133885 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi @@ -171,18 +171,6 @@ vin-supply = <&vcc_3v3_s3>; }; - vbus5v0_typec: vbus-typec { - compatible = "regulator-fixed"; - regulator-name = "vbus5v0_typec"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - enable-active-high; - gpio = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>; - vin-supply = <&vcc5v0_usb>; - pinctrl-names = "default"; - pinctrl-0 = <&typec5v_pwren>; - }; - vcc5v0_host: vcc5v0-host { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; @@ -342,8 +330,10 @@ interrupt-parent = <&gpio0>; interrupts = ; + otg-mode-en-gpio = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&charger_ok>; + extcon = <&u2phy0>; ti,charge-current = <2500000>; ti,max-input-voltage = <20000000>; ti,max-input-current = <6000000>; @@ -453,7 +443,6 @@ interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&usbc0_int>; - vbus-supply = <&vbus5v0_typec>; status = "okay"; ports { @@ -607,11 +596,7 @@ usb-typec { usbc0_int: usbc0-int { - rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; - }; - - typec5v_pwren: typec5v-pwren { - rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; }; };