From 82038451533aa1ce051f7b4d964fedb82cd947f2 Mon Sep 17 00:00:00 2001 From: Zorro Liu Date: Thu, 1 Sep 2016 20:21:36 +0800 Subject: [PATCH] arm64: dts: rockchip: enable typec0 for Sapphire board Change-Id: I9a32472307329ed6d7121359f77aa1aaba501821 Signed-off-by: Zorro Liu --- .../boot/dts/rockchip/rk3399-sapphire.dtsi | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index d67c5f197f74..df411249254f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -418,10 +418,20 @@ }; }; -&i2c3 { - i2c-scl-rising-time-ns = <450>; - i2c-scl-falling-time-ns = <15>; +&i2c4 { status = "okay"; + i2c-scl-rising-time-ns = <475>; + i2c-scl-falling-time-ns = <26>; + + fusb0: fusb30x@22 { + compatible = "fairchild,fusb302"; + reg = <0x22>; + pinctrl-names = "default"; + pinctrl-0 = <&fusb0_int>; + int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + vbus-5v-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &i2s2 { @@ -520,6 +530,15 @@ status = "okay"; }; +&tcphy0 { + extcon = <&fusb0>; + status = "okay"; +}; + +&tcphy1 { + status = "okay"; +}; + &tsadc { /* tshut mode 0:CRU 1:GPIO */ rockchip,hw-tshut-mode = <1>; @@ -530,6 +549,7 @@ &u2phy0 { status = "okay"; + extcon = <&fusb0>; u2phy0_otg: otg-port { status = "okay"; @@ -562,6 +582,7 @@ &uart2 { status = "okay"; + extcon = <&fusb0>; }; &usb_host0_ehci { @@ -613,3 +634,11 @@ &vopl_mmu { status = "okay"; }; + +&pinctrl { + fusb30x { + fusb0_int: fusb0-int { + rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +};