diff options
author | Vicente Bergas <vicencb@gmail.com> | 2019-06-27 09:12:28 -0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2019-06-27 10:40:02 -0400 |
commit | e1d9149e8389f1690cdd4e4056766dd26488a0fe (patch) | |
tree | 985911965816c7b7a726939229a794a25ee077e0 | |
parent | e6d237fdc13a790c1f73b74f7a9e85529b9ed44b (diff) |
arm64: dts: rockchip: Fix USB3 Type-C on rk3399-sapphire
Before this patch, the Type-C port on the Sapphire board is dead.
If setting the 'regulator-always-on' property to 'vcc5v0_typec0'
then the port works for about 4 seconds at start-up. This is a
sample trace with a memory stick plugged in:
1.- The memory stick LED lights on and kernel reports:
[ 4.782999] scsi 0:0:0:0: Direct-Access USB DISK PMAP PQ: 0 ANSI: 4
[ 5.904580] sd 0:0:0:0: [sdb] 3913344 512-byte logical blocks: (2.00 GB/1.87 GiB)
[ 5.906860] sd 0:0:0:0: [sdb] Write Protect is off
[ 5.908973] sd 0:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 5.909122] sd 0:0:0:0: [sdb] No Caching mode page found
[ 5.911214] sd 0:0:0:0: [sdb] Assuming drive cache: write through
[ 5.951585] sdb: sdb1
[ 5.954816] sd 0:0:0:0: [sdb] Attached SCSI removable disk
2.- 4 seconds later the memory stick LED lights off and kernel reports:
[ 9.082822] phy phy-ff770000.syscon:usb2-phy@e450.2: charger = USB_DCP_CHARGER
3.- After a minute the kernel reports:
[ 71.666761] usb 5-1: USB disconnect, device number 2
It has been checked that, although the LED is off, VBUS is present.
If, instead, the dr_mode is changed to host and the phy-supply changed
accordingly, then it works. It has only been tested in host mode.
Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index 04623e52ac5d..1bc1579674e5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | |||
@@ -565,12 +565,11 @@ | |||
565 | status = "okay"; | 565 | status = "okay"; |
566 | 566 | ||
567 | u2phy0_otg: otg-port { | 567 | u2phy0_otg: otg-port { |
568 | phy-supply = <&vcc5v0_typec0>; | ||
569 | status = "okay"; | 568 | status = "okay"; |
570 | }; | 569 | }; |
571 | 570 | ||
572 | u2phy0_host: host-port { | 571 | u2phy0_host: host-port { |
573 | phy-supply = <&vcc5v0_host>; | 572 | phy-supply = <&vcc5v0_typec0>; |
574 | status = "okay"; | 573 | status = "okay"; |
575 | }; | 574 | }; |
576 | }; | 575 | }; |
@@ -620,7 +619,7 @@ | |||
620 | 619 | ||
621 | &usbdrd_dwc3_0 { | 620 | &usbdrd_dwc3_0 { |
622 | status = "okay"; | 621 | status = "okay"; |
623 | dr_mode = "otg"; | 622 | dr_mode = "host"; |
624 | }; | 623 | }; |
625 | 624 | ||
626 | &usbdrd3_1 { | 625 | &usbdrd3_1 { |