arm64: dts: rockchip: enable typec0 for Sapphire board
authorZorro Liu <lyx@rock-chips.com>
Thu, 1 Sep 2016 12:21:36 +0000 (20:21 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 2 Sep 2016 09:13:56 +0000 (17:13 +0800)
Change-Id: I9a32472307329ed6d7121359f77aa1aaba501821
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi

index f1d920118c7367867b72f1b4825493f5baa83baf..7104557e2e8eaef82a2a7e4842248b2d1ce5748c 100644 (file)
        };
 };
 
        };
 };
 
+&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;
 &i2s0 {
        status = "okay";
        rockchip,i2s-broken-burst-len;
        status = "okay";
 };
 
        status = "okay";
 };
 
+&tcphy0 {
+       extcon = <&fusb0>;
+       status = "okay";
+};
+
+&tcphy1 {
+       status = "okay";
+};
+
 &tsadc {
        /* tshut mode 0:CRU 1:GPIO */
        rockchip,hw-tshut-mode = <1>;
 &tsadc {
        /* tshut mode 0:CRU 1:GPIO */
        rockchip,hw-tshut-mode = <1>;
 
 &u2phy0 {
        status = "okay";
 
 &u2phy0 {
        status = "okay";
+       extcon = <&fusb0>;
 
        u2phy0_otg: otg-port {
                status = "okay";
 
        u2phy0_otg: otg-port {
                status = "okay";
 
 &usbdrd3_0 {
        status = "okay";
 
 &usbdrd3_0 {
        status = "okay";
+       extcon = <&fusb0>;
 };
 
 &usbdrd3_1 {
 };
 
 &usbdrd3_1 {
                                <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
                                <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       fusb30x {
+               fusb0_int: fusb0-int {
+                       rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
 };
 };