usb: misc: usb3503: support usb3803 and bypass mode
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Mon, 13 Mar 2023 16:50:39 +0000 (17:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 11:18:03 +0000 (12:18 +0100)
commitb91e6107119f62be8b51b9955294be52c0b4fc80
tree6039c36cf5d790538a3d04d02a10903d07a4be1d
parentb04b32cd67304bdda9f19fc52fc5abd95f8502ab
usb: misc: usb3503: support usb3803 and bypass mode

Add support for USB3803 and bypass mode, with this change
is also possible to move the component out of bypass mode.

In bypass mode the downstream port 3 is connected to the
upstream port with low switch resistance R_on.

Controlling mode of operations:

| RESET_N | BYPASS_N | Mode    |
--------------------------------
|    0    |    0     | standby |
|    1    |    0     | bypass  |
|    1    |    1     | hub     |

Datasheet: https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/DataSheets/00001691D.pdf
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20230313165039.255579-4-francesco@dolcini.it
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb3503.c
include/linux/platform_data/usb3503.h