瑞芯微Rockchip开发者社区
登录
直播中
李华
7年用户
1316经验值
私信
关注
[问答]
如何将Type-C修改为普通USB?
开启该帖子的消息推送
RK3399
如何将Type-C修改为普通USB?
回帖
(1)
王丽娟
2022-3-4 10:04:37
CPU:RK3399
系统:Android 7.1.2
为了降低成本,主板将Type-C改为MicroUSB接口,节省了fu***302芯片
参考Rockchip的官方文档第4部分:Micro USB2.0 OTG DTS配置
RKDocs/common/u***/Rockchip-Developer-Guide-Linux4.4-RK3399-USB-DTS-CN.pdf
&tcphy0 {
;
};
&u2phy0 {
;/* Micro USB2 PHY删除了extcon属性*/
otg-vbus-gpios = ;/* Vbus GPIO配置*/
u2phy0_otg: otg-port {/*文档中错误写成了u2phy1_otg */
;
};
......
};
&u***drd3_0 {
extcon = ;/* Micro USB3控制器的extcon属性引用u2phy0 */
;
};
&u***drd_dwc3_0 {
;/* Micro USB3控制器的dr_mode配置为otg */
;/* maximum-speed属性配置为high-speed */
phys = ;/* phys属性只引用USB2 PHY节点*/
;
;
};
按照文档中说明,修改这部分就可以了,但是编译内核部分烧录后,不能进安卓系统,串口一直循环打印如下:
[9.878630] init: Starting service'surfaceflinger'...
[10.294620] init: Service'surfaceflinger'(pid532) killed by signal6
[10.294664] init: Service'surfaceflinger'(pid532) killing any childreninprocess group
[10.294709] init: Service'zygote' i***eing killed...
[10.356365] init: Service'zygote'(pid254) killed by signal9
[10.356441] init: Service'zygote'(pid254) killing any childreninprocess group
[10.356634] init: write_file: Unable to open'/sys/android_power/request_state': No such file or directory
[10.356778] init: write_file: Unable to write to'/sys/power/state': Invalid argument
[10.356805] init: Service'audioserver' i***eing killed...
[10.357239] init: Service'cameraserver' i***eing killed...
[10.357327] init: Service'media' i***eing killed...
[10.357454] init: Service'netd' i***eing killed...
[10.358943] init: Starting service'zygote'...
[10.364342] init: Service'audioserver'(pid299) killed by signal9
[10.364427] init: Service'audioserver'(pid299) killing any childreninprocess group
[10.365879] init: Starting service'audioserver'...
[10.369573] init: Service'netd'(pid310) killed by signal9
[10.369677] init: Service'netd'(pid310) killing any childreninprocess group
[10.370582] init: Untracked pid575killed by signal9
[10.374127] init: Service'media'(pid297) killed by signal9
[10.374192] init: Service'media'(pid297) killing any childreninprocess group
[10.375119] init: Service'cameraserver'(pid300) killed by signal9
[10.375158] init: Service'cameraserver'(pid300) killing any childreninprocess group
[10.376450] init: Starting service'media'...
[10.378976] init: Starting service'cameraserver'...
[10.382610] init: couldn't write 580 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[12.079202] init: Starting service'netd'...
开始怀疑是因为没有全部编译的问题,但是全部编译烧录后,还是不能开机,一直提示找不到drm device,串口一直循环打印如下:
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
Starting recovery (pid185) on Fri Jan18 08:52:30 2013
bootmode = emmc
recovery filesystem table
=========================
0/mnt/internal_sd vfat /dev/block/platform/fe330000.sdhci/by-name/user0
1/mnt/external_sd vfat /dev/block/mmcblk0p10
2/system ext4 /dev/block/platform/fe330000.sdhci/by-name/system0
3/cache ext4 /dev/block/platform/fe330000.sdhci/by-name/cache0
4/metadata ext4 /dev/block/platform/fe330000.sdhci/by-name/metadata0
5/data ext4 /dev/block/platform/fe330000.sdhci/by-name/userdata0
6/cust ext4 /dev/block/platform/fe330000.sdhci/by-name/cust0
7/custom ext4 /dev/block/platform/fe330000.sdhci/by-name/custom0
8/misc emmc /dev/block/platform/fe330000.sdhci/by-name/misc0
9/uboot emmc /dev/block/platform/fe330000.sdhci/by-name/uboot0
10/charge emmc /dev/block/platform/fe330000.sdhci/by-name/charge0
11/resource emmc /dev/block/platform/fe330000.sdhci/by-name/resource0
12/parameter emmc /dev/block/platform/fe330000.sdhci/by-name/parameter0
13/boot emmc /dev/block/platform/fe330000.sdhci/by-name/boot0
14/recovery emmc /dev/block/platform/fe330000.sdhci/by-name/recovery0
15/backup emmc /dev/block/platform/fe330000.sdhci/by-name/backup0
16/trust emmc /dev/block/platform/fe330000.sdhci/by-name/trust0
17/baseparameter emmc /dev/block/platform/fe330000.sdhci/by-name/baseparameter0
18/frp emmc /dev/block/platform/fe330000.sdhci/by-name/frp0
19/tmp ramdisk ramdisk0
emmc_pointis/dev/block/mmcblk1
sd_pointis(null)
sd_point_2is(null)
I:InternalSD_ROOT: /mnt/internal_sd
I:ExternalSD_ROOT: /mnt/external_sd
read cmdline
[4.309235] fs_mgr: Warning: unknown flag resize
I:Boot command: boot-recovery
I:Got argumentsfromboot message
[4.311229] fs_mgr: Warning: unknown flag resize
=== startvoiddumpCmdArgs(int,char**):296===
argv[0] = recovery.
argv[1] = --wipe_all.
localeis[en_US]
stageis[]
reasonis[(null)]
cannot find/open a drm device: No such file or directory
cannot open fb0: No such file or directory
[4.352842] init: Service'recovery'(pid185) killed by signal11
[4.352952] init: Service'recovery'(pid185) killing any childreninprocess group
[9.358734] init: Starting service'recovery'...
查看dts文件,里面还有一个地方&cdn_dp使用了fu***0,屏蔽此处即可开机
&cdn_dp {
;
extcon = ;
phys = ;
};
最后建议把i2c中与fu***302通讯的部分也disable掉,此处不改也没有问题,只是i2c不通,但可以正常开机。
fu***0: fu***30x@22{
;
reg = <0x22>;
;
pinctrl-0= ;
int-n-gpios = ;
vbus-5v-gpios = ;
;
};
b1e03227fa9720da4fde362389b7768.png
CPU:RK3399
系统:Android 7.1.2
为了降低成本,主板将Type-C改为MicroUSB接口,节省了fu***302芯片
参考Rockchip的官方文档第4部分:Micro USB2.0 OTG DTS配置
RKDocs/common/u***/Rockchip-Developer-Guide-Linux4.4-RK3399-USB-DTS-CN.pdf
&tcphy0 {
;
};
&u2phy0 {
;/* Micro USB2 PHY删除了extcon属性*/
otg-vbus-gpios = ;/* Vbus GPIO配置*/
u2phy0_otg: otg-port {/*文档中错误写成了u2phy1_otg */
;
};
......
};
&u***drd3_0 {
extcon = ;/* Micro USB3控制器的extcon属性引用u2phy0 */
;
};
&u***drd_dwc3_0 {
;/* Micro USB3控制器的dr_mode配置为otg */
;/* maximum-speed属性配置为high-speed */
phys = ;/* phys属性只引用USB2 PHY节点*/
;
;
};
按照文档中说明,修改这部分就可以了,但是编译内核部分烧录后,不能进安卓系统,串口一直循环打印如下:
[9.878630] init: Starting service'surfaceflinger'...
[10.294620] init: Service'surfaceflinger'(pid532) killed by signal6
[10.294664] init: Service'surfaceflinger'(pid532) killing any childreninprocess group
[10.294709] init: Service'zygote' i***eing killed...
[10.356365] init: Service'zygote'(pid254) killed by signal9
[10.356441] init: Service'zygote'(pid254) killing any childreninprocess group
[10.356634] init: write_file: Unable to open'/sys/android_power/request_state': No such file or directory
[10.356778] init: write_file: Unable to write to'/sys/power/state': Invalid argument
[10.356805] init: Service'audioserver' i***eing killed...
[10.357239] init: Service'cameraserver' i***eing killed...
[10.357327] init: Service'media' i***eing killed...
[10.357454] init: Service'netd' i***eing killed...
[10.358943] init: Starting service'zygote'...
[10.364342] init: Service'audioserver'(pid299) killed by signal9
[10.364427] init: Service'audioserver'(pid299) killing any childreninprocess group
[10.365879] init: Starting service'audioserver'...
[10.369573] init: Service'netd'(pid310) killed by signal9
[10.369677] init: Service'netd'(pid310) killing any childreninprocess group
[10.370582] init: Untracked pid575killed by signal9
[10.374127] init: Service'media'(pid297) killed by signal9
[10.374192] init: Service'media'(pid297) killing any childreninprocess group
[10.375119] init: Service'cameraserver'(pid300) killed by signal9
[10.375158] init: Service'cameraserver'(pid300) killing any childreninprocess group
[10.376450] init: Starting service'media'...
[10.378976] init: Starting service'cameraserver'...
[10.382610] init: couldn't write 580 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[12.079202] init: Starting service'netd'...
开始怀疑是因为没有全部编译的问题,但是全部编译烧录后,还是不能开机,一直提示找不到drm device,串口一直循环打印如下:
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
Starting recovery (pid185) on Fri Jan18 08:52:30 2013
bootmode = emmc
recovery filesystem table
=========================
0/mnt/internal_sd vfat /dev/block/platform/fe330000.sdhci/by-name/user0
1/mnt/external_sd vfat /dev/block/mmcblk0p10
2/system ext4 /dev/block/platform/fe330000.sdhci/by-name/system0
3/cache ext4 /dev/block/platform/fe330000.sdhci/by-name/cache0
4/metadata ext4 /dev/block/platform/fe330000.sdhci/by-name/metadata0
5/data ext4 /dev/block/platform/fe330000.sdhci/by-name/userdata0
6/cust ext4 /dev/block/platform/fe330000.sdhci/by-name/cust0
7/custom ext4 /dev/block/platform/fe330000.sdhci/by-name/custom0
8/misc emmc /dev/block/platform/fe330000.sdhci/by-name/misc0
9/uboot emmc /dev/block/platform/fe330000.sdhci/by-name/uboot0
10/charge emmc /dev/block/platform/fe330000.sdhci/by-name/charge0
11/resource emmc /dev/block/platform/fe330000.sdhci/by-name/resource0
12/parameter emmc /dev/block/platform/fe330000.sdhci/by-name/parameter0
13/boot emmc /dev/block/platform/fe330000.sdhci/by-name/boot0
14/recovery emmc /dev/block/platform/fe330000.sdhci/by-name/recovery0
15/backup emmc /dev/block/platform/fe330000.sdhci/by-name/backup0
16/trust emmc /dev/block/platform/fe330000.sdhci/by-name/trust0
17/baseparameter emmc /dev/block/platform/fe330000.sdhci/by-name/baseparameter0
18/frp emmc /dev/block/platform/fe330000.sdhci/by-name/frp0
19/tmp ramdisk ramdisk0
emmc_pointis/dev/block/mmcblk1
sd_pointis(null)
sd_point_2is(null)
I:InternalSD_ROOT: /mnt/internal_sd
I:ExternalSD_ROOT: /mnt/external_sd
read cmdline
[4.309235] fs_mgr: Warning: unknown flag resize
I:Boot command: boot-recovery
I:Got argumentsfromboot message
[4.311229] fs_mgr: Warning: unknown flag resize
=== startvoiddumpCmdArgs(int,char**):296===
argv[0] = recovery.
argv[1] = --wipe_all.
localeis[en_US]
stageis[]
reasonis[(null)]
cannot find/open a drm device: No such file or directory
cannot open fb0: No such file or directory
[4.352842] init: Service'recovery'(pid185) killed by signal11
[4.352952] init: Service'recovery'(pid185) killing any childreninprocess group
[9.358734] init: Starting service'recovery'...
查看dts文件,里面还有一个地方&cdn_dp使用了fu***0,屏蔽此处即可开机
&cdn_dp {
;
extcon = ;
phys = ;
};
最后建议把i2c中与fu***302通讯的部分也disable掉,此处不改也没有问题,只是i2c不通,但可以正常开机。
fu***0: fu***30x@22{
;
reg = <0x22>;
;
pinctrl-0= ;
int-n-gpios = ;
vbus-5v-gpios = ;
;
};
b1e03227fa9720da4fde362389b7768.png
举报
更多回帖
rotate(-90deg);
回复
相关问答
RK3399
如何将
Type-C
改为
普通
USB
?
2022-03-07
3696
USB
Type-C
设计细节
2019-07-16
4724
什么是
USB
Type-C
看完你就懂了
2021-05-20
4147
USB
Type-C
和Power Delivery的设计规格是什么
2021-03-10
4226
基于
USB
Type-C
方案的
USB
设计升级
2019-07-25
3962
USB
Type-C
插座的解决方案
2021-01-06
5189
苹果推出
USB
Type-C
接口macbook引爆
USB
Type-C
,那到底哪些厂商有
USB
Type
C
芯片?
2015-05-28
24106
Type-C
接口它到底有哪些优势呢?
2021-06-18
2560
有关
USB
Type-C
的知识点都总结在这里了
2021-05-20
2347
如何安全地布设
USB
Type-C
插座连接器?
2021-07-13
2115
发帖
登录/注册
20万+
工程师都在用,
免费
PCB检查工具
无需安装、支持浏览器和手机在线查看、实时共享
查看
点击登录
登录更多精彩功能!
首页
论坛版块
小组
免费开发板试用
ebook
直播
搜索
登录
×
20
完善资料,
赚取积分