usb: fotg2: add Gemini-specific handling
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Nov 2022 20:05:54 +0000 (21:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Nov 2022 09:18:56 +0000 (10:18 +0100)
commit00fb05ff87bc63a3e9000e3f7c15c86951aca76d
tree88b6b341a242d721e971025334c0de164e19f178
parentd65e6b6e884a38360fc1cadf8ff31858151da57f
usb: fotg2: add Gemini-specific handling

The Cortina Systems Gemini has bolted on a PHY inside the
silicon that can be handled by six bits in a MISC register in
the system controller.

If we are running on Gemini, look up a syscon regmap through
a phandle and enable VBUS and optionally the Mini-B connector.

If the device is flagged as "wakeup-source" using the standard
DT bindings, we also enable this in the global controller for
respective port.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221109200554.1957185-1-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/fotg210/Kconfig
drivers/usb/fotg210/fotg210-core.c