Toybrick

请教 typec0 转 usb3.0 的问题

wjghm2008

中级会员

积分
257
楼主
发表于 2023-4-26 17:10:50    查看: 2245|回复: 1 | [复制链接]    打印 | 只看该作者
本帖最后由 wjghm2008 于 2023-4-26 17:14 编辑

板子将 typec_0 接到USBHUB上,型号为 VL817-Q7,使用了四根线,TYPEC0_TX1P,TYPEC0_TX1N,TYPEC0_RX1P,TYPEC0_RX1N,
发现,只有 USB2.0 hub,未出现 usb3.0 HUB
请教,可能是什么问题?

1、rk3399.dtsi 的 usbdrd3_0 部分,修改如下:
usbdrd3_0: usb0 {
                compatible = "rockchip,rk3399-dwc3";
                clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
                         <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
                clock-names = "ref_clk", "suspend_clk",
                              "bus_clk", "grf_clk";
                power-domains = <&power RK3399_PD_USB3>;
                resets = <&cru SRST_A_USB3_OTG0>;
                reset-names = "usb3-otg";
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;
                status = "disabled";

                usbdrd_dwc3_0: dwc3@fe800000 {
                        compatible = "snps,dwc3";
                        reg = <0x0 0xfe800000 0x0 0x100000>;
                        interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
                /*        dr_mode = "otg"; */ /* "peripheral"; */ /* dr_mode org set is otg model, usb 3.0 host not valid, set to host try to fix this */
                        dr_mode = "host"; /* set to host model, not make usb 3.0 hub valid */
                        phys = <&u2phy0_otg>, <&tcphy0_usb3>;
                        phy-names = "usb2-phy", "usb3-phy";
                        phy_type = "utmi_wide";
                        snps,dis_enblslpm_quirk;
                        snps,dis-u2-freeclk-exists-quirk;
                        snps,dis_u2_susphy_quirk;
                        snps,dis-del-phy-power-chg-quirk;
                        snps,tx-ipgap-linecheck-dis-quirk;
                        snps,xhci-slow-suspend-quirk;
                        snps,xhci-trb-ent-quirk;
                        snps,usb3-warm-reset-on-resume-quirk;
                        status = "disabled";
                };
        };


2、设备运行日志部分:
[    2.833401] Mali: Mali device driver loaded
[    2.834278] input: rk29-keypad as /devices/platform/rockchip-key/input/input3
[    2.836103] rockchip-cdndp-sound dp-sound: ASoC: CPU DAI (null) not registered
[    2.836136] rockchip-cdndp-sound dp-sound: rockchip_sound_probe snd_soc_register_card fail -517
[    2.837432] ALSA device list:
[    2.837593]   #0: rockchip,rk809-codec
[    2.837817]   #1: rockchip,hdmi
[    2.939333] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    2.982592] headset_interrupt:get pin level again,pin=71,i=0
[    3.067079] usb 1-1: New USB device found, idVendor=2109, idProduct=2817
[    3.067153] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.067179] usb 1-1: Product: USB2.0 Hub            
[    3.067202] usb 1-1: Manufacturer: VIA Labs, Inc.         
[    3.068795] hub 1-1:1.0: USB hub found
[    3.069098] hub 1-1:1.0: 4 ports detected
[    3.194895] rockchip-cdndp-sound dp-sound: ASoC: CPU DAI (null) not registered
[    3.194964] rockchip-cdndp-sound dp-sound: rockchip_sound_probe snd_soc_register_card fail -517
[    3.195907] rockchip-cdndp-sound dp-sound: ASoC: CPU DAI (null) not registered
[    3.195938] rockchip-cdndp-sound dp-sound: rockchip_sound_probe snd_soc_register_card fail -517
[    3.256044] phy phy-ff770000.syscon:usb2-phy@e450.5: charger = USB_FLOATING_CHARGER
[    3.257136] Freeing unused kernel memory: 832K
[    3.264760] init: init first stage started!
[    3.265475] init: Using Android DT directory /proc/device-tree/firmware/android/
[    3.361332] init: [libfs_mgr]Failed to get verity metadata '/dev/block/by-name/system': File exists
[    3.361638] init: [libfs_mgr]Allow invalid metadata when the device is unlocked
[    3.362105] init: Verity disabled/skipped for '/system'
[    3.365816] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 223
[    3.366289] mmc2: new ultra high speed SDR50 SDIO card at address 0001



完整的日志在附件

请帮忙看下,可能是什么问题。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

kwcha333

禁止发言

积分
22
沙发
发表于 2023-10-17 15:31:09 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表