Rockchip USB 开发指南
前言概述
产品版本
读者对象
软件工程师,硬件工程师,FAE
修订记录
本文档适用范围:
RK3399 芯片。运行Android 6.0,Linux Kernel4.4 及以上系统。
待字婚中
目录插图目录...................................................................................................................IV
表格目录....................................................................................................................V
1 概述................................................................................................................. 1-1
燕字成语
2 硬件电路及信号................................................................................................... 2-1
2.1USB HOST 控制器硬件电路............................................................................ 2-1
2.1.1 USB2.0 HOST 控制器硬件电路.................................................................. 2-1
2.2USB OTG 控制器硬件电路.............................................................................. 2-2
2.2.1 USB2.0 OTG 控制器硬件电路.................................................................... 2-2
2.2.2 USB
3.0 OTG 控制器硬件电路.................................................................... 2-2
3 Kernel 模块配置.................................................................................................. 3-1
3.1USB PHY 相关配置...................................................................................... 3-1
3.2USB HOST 相关配置.................................................................................... 3-1
3.3USB OTG 相关配置...................................................................................... 3-2
3.4USB Gadget 配置....................................................................................... 3-2
3.5USB 其它模块配置....................................................................................... 3-3
3.5.1 Mass Storage Class(MSC).................................................................. 3-3拖延症患者
3.5.2 USB 3-3
3.5.3 . 3-4
美容护肤步骤3.5.4 USB Net ............................................................................................. 3-4
3.5.5 USB Camera ....................................................................................... 3-4
3.5.6 USB Audio .......................................................................................... 3-5
3.5.7 USB HUB ............................................................................................ 3-5
3.5.8其他USB 设备配置.............................................................................. 3-5
4 Device Tree 开发................................................................................................ 4-1
4.1USB PHY DTS ........................................................................................... 4-1
4.1.1 USB2.0 PHY DTS ................................................................................. 4-1
4.1.2 USB3.0 PHY DTS ................................................................................. 4-2
4.2USB2.0 . 4-3
4.2.1 USB2.0 HOST . 4-3
4.3USB3.0 . 4-4
4.3.1 USB3.0 HOST . 4-4
4.3.2 USB3.0 OTG Controller DTS .................................................................. 4-4
5 驱动开发........................................................................................................... 5-1
5.1USB 5-1
5.1.1 USB2.0 PHY driver ............................................................................... 5-1
5.1.2 USB3.0 PHY driver ............................................................................... 5-2
5.2USB3.0 OTG drivers .................................................................................. 5-2
6 Android Gadget 配置........................................................................................... 6-1
6.1Gadget 驱动配置......................................................................................... 6-1
6.2BOOT IMG 配置......................................................................................... 6-1
7 常见问题分析...................................................................................................... 7-1
Rockchip USB 开发指南目录
7.1设备枚举日志.............................................................................................. 7-1
家庭垃圾分类
7.1.1 USB2.0 OTG 正常开机日志...................................................................... 7-1
7.1.2 USB2.0 Device 连接.............................................................................. 7-1
7.1.3 USB2.0 Device 断开连接......................................................................... 7-1
7.1.4 USB2.0 HOST-LS 设备........................................................................... 7-1
电脑蓝屏了怎么办修复7.1.5 USB2.0 HOST-FS 设备........................................................................... 7-2
7.1.6 USB2.0 HOST-HS 设备.......................................................................... 7-2
7.1.7 USB2.0 HOST-LS/FS/HS 设备断开 7-2
北京好吃的美食
7.1.8 USB3.0 Device 连接.............................................................................. 7-2
7.1.9 USB3.0 HOST-SS 设备........................................................................... 7-2
7.2USB 常见问题分析....................................................................................... 7-3
7.2.1软件配置........................................................................................... 7-3
7.2.2硬件电路........................................................................................... 7-3
7.2.3 Device 功能异常分析.............................................................................. 7-3
7.2.4Host 功能异常分析............................................................................... 7-4
7.2.5 USB Camera 异常分析............................................................................ 7-5
7.2.6 USB 充电检测....................................................................................... 7-5
7.3PC 驱动问题............................................................................................... 7-7
8 USB 信号测试..................................................................................................... 8-1
插图目录
图1-1 USB2.0 Host Controller Block Diagram ........................................................ 1-1图1-2 USB2.0 USB2.0 PHY Block Diagram ............................................................ 1-2图1-3 USB3.0 OTG 1-3图1-4 TypC PHY 1-3图2-1 USB 2.0 HOST SoC 信号引脚.........
新闻50字左右
.............................................................. 2-1图2-2 USB 2.0 HOST VBUS GPIO 控制脚............................................................... 2-1图2-3 HSIC 控制器硬件电路.................................................................................. 2-2图2-4 HSIC 硬件电路.......................................................................................... 2-2图2-5 Type-C 接口定义....................................................................................... 2-3图2-6 USB3 OTG 控制器SoC 信号引脚................................................................... 2-3图2-7 USB3 OTG Type-C 接口............................................................................. 2-4图2-8 USB3 Type-C pd/cc 电路(FUSB302)......................................................... 2-4图2-9 USB3 VBUS 控制电路-1(GPIO 控制电路输出5V)............................................ 2-5图2-10 USB3 VBUS 控制电路-2(RK818 控制电路输出5V)........................................ 2-5图3-1 USB PHY Driver 配置示意图......................................................................... 3-1图3-2 Host Driver 内核的配置选项......................................................................... 3-2图3-3 USB3 OTG 内核配置选项............................................................................. 3-2图3-4 USB Gadget Driver 配置示意图.................................................................... 3-2图3-5 SCSI 配置................................................................................................ 3-3图3-6 MSC 配置................................................................................................ 3-3图4-1 USB2.0 PHY DTSI 配置示意图...................................................................... 4-1图4-2 USB2.0 PHY DTS 配置示意图....................
................................................... 4-2图4-3 USB2.0 PHY VBUS Regulator 配置示意图....................................................... 4-2图4-4 USB2.0 PHY VBUS Pinctrl 配置示意图............................................................ 4-2图4-5 USB3 Type-phy dts 配置............................................................................ 4-3图4-6 EHCI DTS 配置示意图................................................................................. 4-3图4-7 EHCI DTS 配置示意图................................................................................. 4-4图4-8 USB3 OTG dts 配置................................................................................... 4-4图5-1 RK3399 USB2.0 PHY host-port 配置............................................................. 5-1图5-2 RK3399 USB2.0 otg-port phy 配置.............................................................. 5-2图6-1 Android Gadget init. ......................................................... 6-2图7-1 USB 充电检测流程...................................................................................... 7-6图7-2 SDP 检测波形........................................................................................... 7-6图7-3 DCP 检测波形........................................................................................... 7-7
表格目录表1-1 RK3399 平台USB 控制器列表....................................................................... 1-1