Conversation
📝 WalkthroughWalkthroughUpdated the Rockchip RK3588S device tree for Orange Pi 5 to modify USB Type-C power delivery configuration. The patch changes the connector power role from source to sink, adds alternate modes specification, and configures vbus-supply for the OTG node. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
patch/kernel/archive/rockchip64-7.0/rk3588-1221-arm64-fix-typec-for-orangepi-5-5b.patch (1)
12-21: Consider aligning indentation with kernel DTS conventions.The
altmodesblock uses space-based indentation. Linux kernel device tree files typically use tabs for indentation. While this won't cause functional issues, aligning with the existing file's indentation style improves consistency.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@patch/kernel/archive/rockchip64-7.0/rk3588-1221-arm64-fix-typec-for-orangepi-5-5b.patch` around lines 12 - 21, The altmodes node and its child altmode@0 in the patch are indented with spaces; update their indentation to use tabs to match kernel DTS style—adjust the lines containing "altmodes {", "#address-cells", "#size-cells", "altmode@0 {", "reg =", "svid =", "vdo =", and the closing braces so each nesting level is indented with a single tab character instead of spaces to align with existing DTS conventions.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@patch/kernel/archive/rockchip64-7.0/rk3588-1221-arm64-fix-typec-for-orangepi-5-5b.patch`:
- Around line 12-21: The altmodes node and its child altmode@0 in the patch are
indented with spaces; update their indentation to use tabs to match kernel DTS
style—adjust the lines containing "altmodes {", "#address-cells", "#size-cells",
"altmode@0 {", "reg =", "svid =", "vdo =", and the closing braces so each
nesting level is indented with a single tab character instead of spaces to align
with existing DTS conventions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9d65333c-6f26-478a-b37c-e4433d7ae19d
📒 Files selected for processing (1)
patch/kernel/archive/rockchip64-7.0/rk3588-1221-arm64-fix-typec-for-orangepi-5-5b.patch
Do these also include similar dt adjustments? If so we could simply wait until they made it upstream. |
|
The USB DP PHY changes were merged in kernel 6.18. Below is the patch link But, unfortunately, it does not update the DT for Orangepi 5/5B. The mainline status page mentions the following as the status for USB DP PHY. Not sure if Collabora is planning more DT updates for other boards. I can take a look at porting some of these changes in a later PR when DP Alt Mode patches are merged. PS: The USB DP Alt mode enablement is in the following patch series |
|
Will test it with OPi5, if it works will approve it |
Description
Fix for USB Type-C port on mainline kernel for Orangepi 5/5B. Prior to this fix, USB Type-C port does not work.
Reference: https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-6.1-rk35xx/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi
The patch was developed with the help of Gemini 3.1 Pro by feeding it dmesg logs and the above reference dts from vendor. I know maintainers might not be happy with purely AI produced patches, but I hope armbian users with basic debugging skills and advanced AI models can quickly learn and contribute if possible. Happy to make fixes and do additional testing based on suggestions, particularly on which changes might be the ones that are necessary to keep in this patch.
How Has This Been Tested?
Testing on Orangepi 5B using a USB Type-C device (headphone jack converter) and a USB Type-C Hub. Note, I don't have a Orangepi 5 to test whether the changes break anything or not. I haven't tested USB DP Altmode as the patches for that are still pending from Collabora.
Checklist:
Summary by CodeRabbit
Bug Fixes
Improvements