On the Renesas R8A7791 SoC based boards there's MAX3355 USB OTG chip and
mini-AB USB connector corresponding to USB port 0 driven either by EHCI/OHCI
or Renesas USBHS gadget controller. And we'd like the host/gadget drivers to
work based on the cable type connected. An 'extcon' driver for MAX3355 has
been written, so we only need to bind to it via device tree which I'm doing in
this patch.
I wasn't able to find a solution better than checking the cable type at the host
driver probe time and refusing to drive a host if B-cable is connected.
You may need a dual-role/otg driver to do it, which can enable host/device function
according to ID pin.