20240528解决飞凌的OK3588-C的核心板可以刷机不能连接ADB的问题
2024/5/28 16:34
OS:Linux R4/Buildroot
硬件接了3条线出来,一直可以刷机,但是链接ADB异常。
【总是链接不上】
Z:\OK3588_Linux_fs\kernel\arch\arm64\boot\dts\rockchip\OK3588-C-common.dtsi
&usbdrd_dwc3_0 {
dr_mode = "otg";
usb-role-switch;
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
dwc3_0_role_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc0_role_sw>;
};
};
};
修改为:
&usbdrd_dwc3_0 {
dr_mode = "peripheral";
usb-role-switch;
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
dwc3_0_role_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc0_role_sw>;
};
};
};
参考资料:
https://blog.csdn.net/weixin_43245753/article/details/123496262#TypeC_to_TypeA_USB_20DP_DTS__345
Rockchip RK3588 kernel dts解析之USB模块