Other Parts Discussed in Thread: BEAGLEBOARD-X15,
Tool/software: Linux
Hi,
I need to enable USB 3.0 in device mode for Beagleboard-X15, AM5728 SOC. I am aware I need to do hardware and software changes, I am explaining the hardware and software changes below. But some how I am not getting the desired results. With the blow hardware and software changes after loading g_ether gadget driver, there is no signal/logs after connecting to host. Please let me know if I am missing anything in this regards.
Below is the hardware changes done,
1) Remove the USB 3.0 hub U17 on the board.
Connecting directly to P13.
2) Remove R205 Resistor on the board.
AM572X TRM mentions that, to operate USB 3.0 as device mode, GPIO id ping needs to be configured with internal pull up.
3) Remove R330 on the board
AM572X TRM mentions that, to operate USB 3.0 as device mode, USB1_DRVVBUS should not be connected.
4) Solder the USB super speed lines (D+, D-, SSRX-, SSRX+, SSTX-, SSTX+) to P13.
5) USB VBUS of P13 has been connected to R411. Since AM57X device required external signals for VBUS detection.
Below are the software modifications done, I am pasting the patch.
######################################################################################## --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi @@ -387,7 +387,7 @@ #gpio-cells = <2>; }; - extcon_usb2: tps659038_usb { + extcon_usb1: tps659038_usb { compatible = "ti,palmas-usb-vid"; ti,enable-vbus-detection; vbus-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; @@ -519,12 +519,12 @@ phy-supply = <&ldousb_reg>; }; -&usb1 { - dr_mode = "host"; +&omap_dwc3_1 { + extcon = <&extcon_usb1>; }; -&omap_dwc3_2 { - extcon = <&extcon_usb2>; +&usb1 { + dr_mode = "peripheral"; }; &usb2 { @@ -536,7 +536,7 @@ * the necessary dr_mode override in the expansion * board's DT. */ - dr_mode = "peripheral"; + dr_mode = "host"; }; &cpu_trips { diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index ee7c72f..c91272c 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1747,7 +1747,7 @@ phys = <&usb2_phy1>, <&usb3_phy1>; phy-names = "usb2-phy", "usb3-phy"; maximum-speed = "super-speed"; - dr_mode = "otg"; + dr_mode = "peripheral"; snps,dis_u3_susphy_quirk; snps,dis_u2_susphy_quirk; }; @@ -1774,7 +1774,7 @@ phys = <&usb2_phy2>; phy-names = "usb2-phy"; maximum-speed = "high-speed"; - dr_mode = "otg"; + dr_mode = "host"; snps,dis_u3_susphy_quirk; ########################################################################################