phiser678 Posted 8 hours ago Posted 8 hours ago (edited) Hi I managed to fix an issue with the usb-c port of the orange pi 5 plus. It seems the device is not activated unless you put it in host mode yourself: as user root: echo host >/sys/kernel/debug/usb/fc000000.usb/mode I have tried a usb-c network card and usb stick. Both work after this command! I noticed this when I installed the 6.1.115-vendor-rk35xx kernel. This one does not need this setting, it switches automatically from device mode to host and vice versa. I had alot of problems with analog sound on older kernels, e.g. youtube just hangs unless you mute the sound. But sound in noble 6.19.0-edge-rockchip64 works now, I switched to pipewire however. Thanks to the maintainers of Armbian and OrangePi for this awesomeness! Edited 8 hours ago by phiser678 0 Quote
Werner Posted 6 hours ago Posted 6 hours ago you chould check the device tree which mode is there by default. I assume it is not "host" but something else. I believe the device tree follows upstream and is not altered by Armbian. Not sure though, needs research 0 Quote
phiser678 Posted 1 hour ago Author Posted 1 hour ago Thanks for your update. I checked rk3588-orangepi-5-plus.dtb after decompiling, it says: Quote usb@fc000000 { compatible = "rockchip,rk3588-dwc3\0snps,dwc3"; reg = <0x00 0xfc000000 0x00 0x400000>; interrupts = <0x00 0xdc 0x04 0x00>; clocks = <0x1f 0x194 0x1f 0x193 0x1f 0x192>; clock-names = "ref_clk\0suspend_clk\0bus_clk"; dr_mode = "otg"; phys = <0x23 0x24 0x04>; phy-names = "usb2-phy\0usb3-phy"; phy_type = "utmi_wide"; power-domains = <0x20 0x1f>; resets = <0x1f 0x152>; snps,dis_enblslpm_quirk; snps,dis-u1-entry-quirk; snps,dis-u2-entry-quirk; snps,dis-u2-freeclk-exists-quirk; snps,dis-del-phy-power-chg-quirk; snps,dis-tx-ipgap-linecheck-quirk; status = "okay"; usb-role-switch; phandle = <0x12d>; } It seems line dr_mode = "otg" does On The Go, they seem to switched it from the 6.1.115-vendor-rk35xx dtb. What could be the use case? As I understand you can set it to dr_mode = "peripheral" ? 0 Quote
Werner Posted 56 minutes ago Posted 56 minutes ago Seems like the same "issue" like here. tl;dr: upstream uses "otg" to allow user to change the usb port behaviour as they like. https://forum.armbian.com/topic/59094-usb-2-port-not-available/#comment-237191 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.