Skip to content

Commit

Permalink
ayufan: dts: rockpro64: enable usb3 support
Browse files Browse the repository at this point in the history
Change-Id: I12ef2b959b742fae3d28e86b20e0c8fed611c134
  • Loading branch information
ayufan committed Jul 2, 2018
1 parent 2194a28 commit e2493da
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
28 changes: 28 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,16 @@
i2c-scl-rising-time-ns = <600>;
i2c-scl-falling-time-ns = <20>;
status = "okay";

fusb0: fusb30x@22 {
compatible = "fairchild,fusb302";
reg = <0x22>;
pinctrl-names = "default";
pinctrl-0 = <&fusb0_int>;
vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};

&i2s0 {
Expand Down Expand Up @@ -604,6 +614,13 @@
};
};

fusb30x {
fusb0_int: fusb0-int {
rockchip,pins =
<1 2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};

pcie {
pcie_pwr_en: pcie-pwr-en {
rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
Expand Down Expand Up @@ -683,6 +700,15 @@
status = "okay";
};

&tcphy0 {
extcon = <&fusb0>;
status = "okay";
};

&tcphy1 {
status = "okay";
};

&tsadc {
/* tshut mode 0:CRU 1:GPIO */
rockchip,hw-tshut-mode = <1>;
Expand All @@ -693,6 +719,7 @@

&u2phy0 {
status = "okay";
extcon = <&fusb0>;

u2phy0_otg: otg-port {
status = "okay";
Expand Down Expand Up @@ -744,6 +771,7 @@
};

&usbdrd3_0 {
extcon = <&fusb0>;
status = "okay";
};

Expand Down
8 changes: 4 additions & 4 deletions arch/arm64/boot/dts/rockchip/rk3399.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@
reg = <0x0 0xfe800000 0x0 0x100000>;
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
dr_mode = "otg";
phys = <&u2phy0_otg>;
phy-names = "usb2-phy";
phys = <&u2phy0_otg>, <&tcphy0_usb3>;
phy-names = "usb2-phy", "usb3-phy";
phy_type = "utmi_wide";
snps,dis_enblslpm_quirk;
snps,dis-u2-freeclk-exists-quirk;
Expand Down Expand Up @@ -444,8 +444,8 @@
reg = <0x0 0xfe900000 0x0 0x100000>;
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
dr_mode = "otg";
phys = <&u2phy1_otg>;
phy-names = "usb2-phy";
phys = <&u2phy1_otg>, <&tcphy1_usb3>;
phy-names = "usb2-phy", "usb3-phy";
phy_type = "utmi_wide";
snps,dis_enblslpm_quirk;
snps,dis-u2-freeclk-exists-quirk;
Expand Down

0 comments on commit e2493da

Please sign in to comment.