4.7 PCIE(M.2接口硬盘)调试
4.7.1 硬件原理分析
图1
图2
图3
从原理图我们可以得出以下信息
1、用的是PCIE2.0的接口
2、PCIE2.0的供电使能引脚为GPIO1_A44.7.2 DTS配置如下
{ vdd_pcie3v3: vdd-pcie3v3 { pinctrl-names = “default”; pinctrl-0 = <&pcie2_en>; compatible = “regulator-fixed”; regulator-name = “vdd_pcie3v3”; regulator-always-on; regulator-boot-on; enable-active-high; gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; vin-supply = <&vcc3v3_sys>; }; }; &pcie2x1 { status = “okay”; pinctrl-names = “default”; pinctrl-0 = <&pcie2_rst>;//pcie20m1_pins reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vdd_pcie3v3>; }; &pinctrl { pcie2{ pcie2_rst: pcie2-rst { rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; }; pcie2_en: pcie2-en { rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; }; }; };<
4.7.3 编译后烧写验证
系统启动后我们可以看到识别到U盘,通过df -h命令,可以看到设备节点为dev/fuse, 并且已经自动挂载到/mnt/media_rw/E533-11F5/目录下,识别到容量为233G,说明已经可以正常使用了。
rk3568_aybering:/ # df -h Filesystem Size Used Avail Use% Mounted on tmpfs 1.8G 820K 1.8G 1% /dev tmpfs 1.8G 0 1.8G 0% /mnt /dev/block/mmcblk2p11 11M 144K 11M 2% /metadata /dev/block/dm-0 934M 931M 2.8M 100% / /dev/block/dm-2 296M 296M 924K 100% /vendor /dev/block/dm-4 588K 584K 4.0K 100% /odm /dev/block/dm-3 204M 203M 636K 100% /product /dev/block/dm-1 118M 118M 380K 100% /system_ext tmpfs 1.8G 0 1.8G 0% /apex tmpfs 1.8G 264K 1.8G 1% /linkerconfig /dev/block/mmcblk2p10 356M 124K 356M 1% /cache /dev/block/dm-5 10G 55M 10G 1% /data tmpfs 1.8G 0 1.8G 0% /data_mirror /dev/fuse 10G 55M 10G 1% /mnt/user/0/emulated /dev/block/vold/public:259,1 233G 608K 233G 1% /mnt/media_rw/E533-11F5 /dev/fuse 233G 608K 233G 1% /mnt/user/0/E533-11F5 rk3568_aybering:/ #免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:RK3568 开发板-安卓系统之PCIE(M.2接口硬盘)调试(十)-rk3399开发板推荐 https://www.yhzz.com.cn/a/9736.html