Re: [linux-sunxi] Re: Forcing device mode on USB OTG, Pine64

2016-07-25 Thread jonsm...@gmail.com
Thanks, it is /sys/devices/soc.0/usbc0.5 on this Allwinner 3.10 Android kernel.

I turned it on, but still no Android adb. Host machine is unable to
USB reset the Android device.

So more poking around to see what else I need to turn on.

On Mon, Jul 25, 2016 at 3:38 PM, Thomas Kaiser
 wrote:
> Jon Smirl wrote:
>>
>> Is there some way to manually poke the kernel and force the port to
>> switch modes?
>
>
> In case /sys/bus/platform/devices/sunxi_usb_udc/otg_role exists, setting it
> to 2 should switch to OTG role (assumption based on similarities in
> Allwinner's BSP legacy kernel for H3, A83T and A64)
>
> Best regards,
>
> Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Jon Smirl
jonsm...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: Forcing device mode on USB OTG, Pine64

2016-07-25 Thread Thomas Kaiser
Jon Smirl wrote:
>
> Is there some way to manually poke the kernel and force the port to 
> switch modes?
>

In case /sys/bus/platform/devices/sunxi_usb_udc/otg_role exists, setting it 
to 2 should switch to OTG role (assumption based on similarities in 
Allwinner's BSP legacy kernel for H3, A83T and A64)

Best regards,

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.