From: Zorro Liu Date: Thu, 1 Sep 2016 12:21:36 +0000 (+0800) Subject: arm64: dts: rockchip: enable typec0 for Sapphire board X-Git-Tag: firefly_0821_release~1607 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=c4a1de271def9ca942f464cacbc0ceaeaa3b2ae2 arm64: dts: rockchip: enable typec0 for Sapphire board Change-Id: I9a32472307329ed6d7121359f77aa1aaba501821 Signed-off-by: Zorro Liu --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index f1d920118c73..7104557e2e8e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -471,6 +471,21 @@ }; }; +&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>; + status = "okay"; + }; +}; + &i2s0 { status = "okay"; rockchip,i2s-broken-burst-len; @@ -551,6 +566,15 @@ status = "okay"; }; +&tcphy0 { + extcon = <&fusb0>; + status = "okay"; +}; + +&tcphy1 { + status = "okay"; +}; + &tsadc { /* tshut mode 0:CRU 1:GPIO */ rockchip,hw-tshut-mode = <1>; @@ -561,6 +585,7 @@ &u2phy0 { status = "okay"; + extcon = <&fusb0>; u2phy0_otg: otg-port { status = "okay"; @@ -591,6 +616,7 @@ &usbdrd3_0 { status = "okay"; + extcon = <&fusb0>; }; &usbdrd3_1 { @@ -812,4 +838,10 @@ <4 25 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + fusb30x { + fusb0_int: fusb0-int { + rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; };