diff options
| author | Luca Weiss <[email protected]> | 2023-10-20 09:33:19 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-27 10:54:29 +0000 |
| commit | cf07c55f992228465da7eb0e300351206de6171f (patch) | |
| tree | 9b2bfdd994c97144c6e09bddaabe7b002cb33702 /drivers/usb/cdns3/cdnsp-debug.h | |
| parent | dt-bindings: usb: fsa4480: Add data-lanes property to endpoint (diff) | |
| download | kernel-cf07c55f992228465da7eb0e300351206de6171f.tar.gz kernel-cf07c55f992228465da7eb0e300351206de6171f.zip | |
usb: typec: fsa4480: Add support to swap SBU orientation
On some hardware designs the AUX+/- lanes are connected reversed to
SBU1/2 compared to the expected design by FSA4480.
Made more complicated, the otherwise compatible Orient-Chip OCP96011
expects the lanes to be connected reversed compared to FSA4480.
* FSA4480 block diagram shows AUX+ connected to SBU2 and AUX- to SBU1.
* OCP96011 block diagram shows AUX+ connected to SBU1 and AUX- to SBU2.
So if OCP96011 is used as drop-in for FSA4480 then the orientation
handling in the driver needs to be reversed to match the expectation of
the OCP96011 hardware.
Support parsing the data-lanes parameter in the endpoint node to swap
this in the driver.
The parse_data_lanes_mapping function is mostly taken from nb7vpq904m.c.
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Luca Weiss <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions
