[RK3399] Type-C改为MicroUSB
CPU:RK3399
系统:Android 7.1.2
为了降低成本,主板将 Type-C 改为 MicroUSB 接口,节省了 fusb302芯片
参考 Rockchip 的官方文档第4部分:Micro USB2.0 OTG DTS配置
RKDocs/common/usb/Rockchip-Developer-Guide-Linux4.4-RK3399-USB-DTS-CN.pdf
&tcphy0 {
status = "disabled";
};
&u2phy0 {
status = "okay"; /* Micro USB2 PHY 删除了extcon属性 */
otg-vbus-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; /* Vbus GPIO配置 */
u2phy0_otg: otg-port { /* 文档中错误写成了u2phy1_otg */
status = "okay";
};
......
};
&usbdrd3_0 {
extcon = <&u2phy0>; /* Micro USB3控制器的extcon属性引用u2phy0 */
status = "okay";
};
&usbdrd_dwc3_0 {
dr_mode = "otg"; /* Micro USB3控制器的dr_mode配置为otg */
maximum-speed = "high-speed"; /* maximum-speed 属性配置为high-speed */
phys = <&u2phy0_otg>; /* phys 属性只引用USB2 PHY节点 */
phy-names = "usb2-phy";
status = "okay";
};
按照文档中说明,修改这部分就可以了,但是编译内核部分烧录后,不能进安卓系统,串口一直循环打印如下:
[ 9.878630] init: Starting service 'surfaceflinger'...
[ 10.294620] init: Service 'surfaceflinger' (pid ) killed by signal
[ 10.294664] init: Service 'surfaceflinger' (pid ) killing any children in process group
[ 10.294709] init: Service 'zygote' is being killed...
[ 10.356365] init: Service 'zygote' (pid ) killed by signal
[ 10.356441] init: Service 'zygote' (pid ) killing any children in process 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' is being killed...
[ 10.357239] init: Service 'cameraserver' is being killed...
[ 10.357327] init: Service 'media' is being killed...
[ 10.357454] init: Service 'netd' is being killed...
[ 10.358943] init: Starting service 'zygote'...
[ 10.364342] init: Service 'audioserver' (pid ) killed by signal
[ 10.364427] init: Service 'audioserver' (pid ) killing any children in process group
[ 10.365879] init: Starting service 'audioserver'...
[ 10.369573] init: Service 'netd' (pid ) killed by signal
[ 10.369677] init: Service 'netd' (pid ) killing any children in process group
[ 10.370582] init: Untracked pid killed by signal
[ 10.374127] init: Service 'media' (pid ) killed by signal
[ 10.374192] init: Service 'media' (pid ) killing any children in process group
[ 10.375119] init: Service 'cameraserver' (pid ) killed by signal
[ 10.375158] init: Service 'cameraserver' (pid ) killing any children in process 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 (pid ) on Fri Jan ::
bootmode = emmc
recovery filesystem table
=========================
/mnt/internal_sd vfat /dev/block/platform/fe330000.sdhci/by-name/user
/mnt/external_sd vfat /dev/block/mmcblk0p1
/system ext4 /dev/block/platform/fe330000.sdhci/by-name/system
/cache ext4 /dev/block/platform/fe330000.sdhci/by-name/cache
/metadata ext4 /dev/block/platform/fe330000.sdhci/by-name/metadata
/data ext4 /dev/block/platform/fe330000.sdhci/by-name/userdata
/cust ext4 /dev/block/platform/fe330000.sdhci/by-name/cust
/custom ext4 /dev/block/platform/fe330000.sdhci/by-name/custom
/misc emmc /dev/block/platform/fe330000.sdhci/by-name/misc
/uboot emmc /dev/block/platform/fe330000.sdhci/by-name/uboot
/charge emmc /dev/block/platform/fe330000.sdhci/by-name/charge
/resource emmc /dev/block/platform/fe330000.sdhci/by-name/resource
/parameter emmc /dev/block/platform/fe330000.sdhci/by-name/parameter
/boot emmc /dev/block/platform/fe330000.sdhci/by-name/boot
/recovery emmc /dev/block/platform/fe330000.sdhci/by-name/recovery
/backup emmc /dev/block/platform/fe330000.sdhci/by-name/backup
/trust emmc /dev/block/platform/fe330000.sdhci/by-name/trust
/baseparameter emmc /dev/block/platform/fe330000.sdhci/by-name/baseparameter
/frp emmc /dev/block/platform/fe330000.sdhci/by-name/frp
/tmp ramdisk ramdisk emmc_point is /dev/block/mmcblk1
sd_point is (null)
sd_point_2 is (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 arguments from boot message
[ 4.311229] fs_mgr: Warning: unknown flag resize
=== start void dumpCmdArgs(int, char **): ===
argv[] = recovery.
argv[] = --wipe_all.
locale is [en_US]
stage is []
reason is [(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' (pid ) killed by signal
[ 4.352952] init: Service 'recovery' (pid ) killing any children in process group
[ 9.358734] init: Starting service 'recovery'...
查看 dts 文件,里面还有一个地方 &cdn_dp 使用了 fusb0,屏蔽此处即可开机
&cdn_dp {
status = "disabled";
extcon = <&fusb0>;
phys = <&tcphy0_dp>;
};
最后建议把 i2c 中与 fusb302 通讯的部分也 disable 掉,此处不改也没有问题,只是 i2c 不通,但可以正常开机。
fusb0: fusb30x@ {
compatible = "fairchild,fusb302";
reg = <0x22>;
pinctrl-names = "default";
pinctrl- = <&fusb0_int>;
int-n-gpios = <&gpio1 GPIO_ACTIVE_HIGH>;
vbus-5v-gpios = <&gpio4 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
[RK3399] Type-C改为MicroUSB的更多相关文章
- ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 7
问题: 使用hibernate4.1.1,数据库使用mysql5.1.30,使用hibernate自动生成数据库表时,hibernate方言使用org.hibernate.dialect.MySQLI ...
- MYSQL中'TYPE=MyISAM'错误的解决方案
create 语句后面的TYPE=MyISAM TYPE=MyISAM 和 ENGINE=MyISAM 都是设置数据库存储引擎的语句 ,(老版本的MySQL使用TYPE而不是ENGINE(例如,TYP ...
- Hibernate4和Mysql5.1以上版本创建表出错 type=InnDB
在搭建springmvc框架时,底层使用hibernate4.1.8,数据库使用mysql5.1,使用hibernate自动生成数据库表 时,hibernate方言使用org.hibernate.di ...
- 去掉 input type="number" 右边图标
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- Discuz搜索改为指向帖子
安装的版本是DiscuzX2.5,搜索的时候发现默认指向的是门户里的文章搜索,但程序都没有安装门户,只有论坛,所以不能搜索文章. 在网上找了半天终于找到修改的办法了. <input name=& ...
- 如何移除HTML5的type=""number""的input标签的上下箭头
初次使用input的数字输入类型type="number"时会发现默认有个上下的箭头,如下图: 很明显这里不需要这个默认箭头,那么我们如何移出这个默认样式呢? 第一种方式,写css ...
- 初触hibernate01--MYSQL建表时type=InnoDB和Engine=InnoDB注意点
第一次运行程序时,将Hibernte中的hibernate.hbm2ddl.auto设置成create(或者是update),让Hibernate帮助自动建表,但不成功,报了如下信息: You hav ...
- 如何移除HTML5 input在type="number"时的上下小箭头
在chrome下: input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{ -webkit-appearance ...
- 【转】移除HTML5 input在type="number"时的上下小箭头
在chrome下: input::-webkit-outer-spin-button, input::-webkit-inner-spin-button{ -webkit-appearance ...
随机推荐
- HTML中的标题<h1>标签的用法!
在HTML中,<h1>标签是命名标题的元素,并且在网页中起到了很重要的作用,但是不要只是因为想要弄成黑粗字体就使用<h1>标题标签这样不好.如果说你还想要做完网站后需要进一步做 ...
- K2 BPM_【解决方案】从“制造”到“智造”,K2推动制造业转型升级_业务流程管理系统
近年来,中国制造业产出占全球总产品比例越来越大,是仅次于美国的全球第二大工业制造国,中国凭借巨大的制造业总量成为名副其实的“世界工厂”.然而个性化消费的兴起正在给制造企业各环节带来冲击.在现代市场环境 ...
- python程序打包exe
http://c.biancheng.net/view/2690.html 用inno setup做成安装包(官网上下载) http://www.jrsoftware.org/isdl.php
- Spark foreachpartiton和mappartition的异同
相同 都是对分区进行操作 不同 1.foreachpartition是Action操作,mappartition是Transformation操作 2.foreachpartition无返回值,map ...
- 【小顶堆的插入构造/遍历】PatL2-012. 关于堆的判断
L2-012. 关于堆的判断 时间限制 将一系列给定数字顺序插入一个初始为空的小顶堆H[].随后判断一系列相关命题是否为真.命题分下列几种: “x is the root”:x是根结点: “x a ...
- P2002 消息扩散[SCC缩点]
题目描述 有n个城市,中间有单向道路连接,消息会沿着道路扩散,现在给出n个城市及其之间的道路,问至少需要在几个城市发布消息才能让这所有n个城市都得到消息. 输入格式 第一行两个整数n,m表示n个城市, ...
- 【xsy1301】 原题的价值 组合数+斯特林数+FFT
题目大意:求$n\times2^{\frac{(n-1)(n-2)/2}{2}}\sum\limits_{i=0}^{n-1}\dbinom{n-1}{i}i^k$ 数据范围:$n≤10^9$,$k≤ ...
- CSS3限,2行3行等文字在块元素显示的文字内容超出显示省略号
大家都知道文字超出一行显示省略号用css就可以搞定,但2行.3行等多行超出显示省略号有的人就不知怎么搞了,我用js做过一个文字判断有兴趣的可以看一下传送门,今天就来试验一下多行超出省略号 使用时注意浏 ...
- mongodb中帮助信息和命令
在Mongodb中,可以看作是一种面向对象的操作,如果你对与某一个操作不清楚,可以直接help. 在mongodb中,无非是对DB.user.collections.文档的操作. 下面是简单的示例: ...
- Kylin介绍 (很有用)
转:http://blog.csdn.net/yu616568/article/details/48103415 Kylin是ebay开发的一套OLAP系统,与Mondrian不同的是,它是一个MOL ...