forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
drm/bridge: anx7625: Add anx7625 port switching.
When output 2 lanes DP data, anx7625 can output to either TX1/RX1 or TX2/RX2. In typical usage, these two TX/RX pairs corresponds to two orientations of typec. On some board one anx7625 is used as DPI to DP converter for two typec ports. In this case, the TX1/RX1 and TX2/RX2 are connected to two usb muxes, which mux the DP data with the rest of the USB3 data, and connects to the two typec ports. This patch adds option for anx7625 to acts as a usb typec switch and switch output lanes based on the typec orientation, or acts as two usb typec mux and switch output lanes depending on whether the two ports currently has DP enabled. Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> ==================================================================== This is an attempt to use typec framework with how we're using anx7625 on Chrome OS asurada board. An example of the dts for the two ports case can be found at https://crrev.com/c/2507199/6 Sending this as a RFC patch since I'm not sure about the best approach here. Should the logic of switching output lanes depends on ports be coupled inside anx7625 driver, or in another driver, or is there any existing way to accomplish this?
- Loading branch information
1 parent
3e14f70
commit 96b15cfd320004cab18e33f081007ac3c312a30d
Showing
2 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters