Hi,
Am 28.09.2018 um 23:24 schrieb Michael Mrozek EvilDragon@openpandora.org:
On Fr, 2018-09-28 at 23:08 +0200, aTc wrote:
Some of the changes of the mainboards involved something with USB / OTG AFAIR, so that might be the reason.
On 9/28/18 5:54 PM, H. Nikolaus Schaller wrote:
Since SMPS10 and OTG cable detection extcon are described here, and work to enable OTG power when an OTG cable is plugged in, we can define OTG mode in the controller (which is disabled by default in omap5.dtsi).
Tested on OMAP5EVM and Pyra.
Suggested-by: Roger Quadros rogerq@ti.com Signed-off-by: H. Nikolaus Schaller hns@goldelico.com
arch/arm/boot/dts/omap5-board-common.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index da5d9a86a1f1..ce524f239e84 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -708,6 +708,10 @@ vbus-supply = <&smps10_out1_reg>; };
+&dwc3 {
- dr_mode = "otg";
+};
&mcspi1 {
};
Available in pyraos as linux-image-4.18.4-letux-lpae-pyra-charge-otg
Works fine on my uevm, except that it's usb2.0 only.
On my pyra it doesn't seem to send power to the port, my usb power meter doesn't turn on at least.
I am not sure, but I guess you have an older Pyra unit. There was a hardware fix needed to make USB-OTG power being properly switched on and off between the USB3 and the console socket (which is not Host capable).
AFAIR this fix wasn't applied to all boards (because we would have had to collect them, rework and send back).
The fix is included in the latest production PCB layout.
The usb3 hub does get created, but it doesn't detect anything plugged in (which isn't that surprising without power).
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
-- Mit freundlichen Grüßen,
Michael Mrozek
OpenPandora GmbH Geschäftsführer: Michael Mrozek
Schäffbräustr. 11 85049 Ingolstadt Deutschland Tel.: 0841 / 990 5548 http://www.openpandora.de/ HRB 4879, Amtsgericht Ingolstadt
eMail: mrozek@openpandora.org