[U-Boot] [PATCH] usb: dwc2_udc_otg: Add gotgctl customization

Patrice CHOTARD patrice.chotard at st.com
Wed Mar 21 10:28:05 UTC 2018


Hi Marek

On 03/19/2018 10:52 AM, Marek Vasut wrote:
> On 03/19/2018 09:05 AM, Patrice CHOTARD wrote:
>> Hi Marek
> 
> Hi,
> 
>> On 03/16/2018 05:28 PM, Marek Vasut wrote:
>>> On 03/16/2018 01:27 PM, Patrice Chotard wrote:
>>>> Allow passing in a custom configuration of the gotgctl
>>>> register via platform data.
>>>> This allows for example to override the A/B session valid signals
>>>> by setting AvalidOvEn / AvalidOvVal and BvalidOvEn / BvalidOvVal
>>>> bits in GOTGCTL reg.
>>>
>>> If you need to override those, doesn't it mean the device is broken?
>>
>> We have a board with a specific wiring. Forcing A/B session valid
>> signals is the solution to make device mode working on this setup.
> 
> Meaning your OTG ID detection is broken, right ?

Right

> 
>>> btw can we start moving this to DT instead ?
>>
>> Yes for sure, i will send a v2

I got a look at this point, but unfortunately dwc2_udc_otg.c is not 
converted to DM/DT. I will try to propose a DM/DT transition patch for 
this driver by keeping compatibility with current usage by all platforms.

Patrice


> Thanks
> 


More information about the U-Boot mailing list