-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
rockchip64-6.15: Fix DP alt mode on some rk3399 boards #8271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe linux-rockchip64-edge kernel configuration file was updated to include the Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (16)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Looks interesting; perhaps I can find some time during this weekend to give a check on Opi4 LTS. I'm only dubious about what the ~20 new patches for rk3399 do, but anyway... |
Improvements: - type-c on rk3399 works properly with both orientations - type-c otg now works Tested on tinkerboard 2s. This patch contains other minor fixes for tinker2's device tree.
Description
Fix Type-C DP altmode on some rk3399 boards. Currently only on rockchip64-6.15.
The old implementation is tricky, and only works in normal orientation. If the plug is flipped, there will be only USB2.0 connectivity.
With the proposed changes, the type-c ports on related rk3399 boards should work in both orientations. A few patches from Megous are picked(some of them already present in sunxi64 kernel patches). The tricky part is how to notify rk3399 cdn-dp driver about DP HPD(hot plug detection), and a workaround is written.
A caveat is that the c port has to be OTG mode, otherwise it will behave very similar to the old implementation if DP is enabled.
I'm not sure if orange pi 4 / 4 LTS support this, so there's no change to their dts yet.
Apart from the work above, the missing fan node is added to tinkerboard 2's dts.
list of changes
CONFIG_TYPEC_EXTCON=m
How Has This Been Tested?
Checklist: