从原理图可知,yy3568的TF卡槽挂在SDMMC0上。
&sdmmc0 {
max-frequency = <150000000>;
supports-sd;
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
disable-wp;
sd-uhs-sdr104;
vmmc-supply = <&vcc3v3_sd>;
vqmmc-supply = <&vccio_sd>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
status = "okay";
};
ls -l /dev/block/mmcblk1p1
mkdir /mnt/youyeetoo
mount /dev/block/mmcblk1p1 /mnt/youyeetoo/
ls -l /mnt/youyeetoo/
cat /mnt/youyeetoo/youyeetoo.txt
从原理图可知,yy3568的SSD是插在PCIE3.0上,并且有两个引脚需要控制,电源引脚GPIO3_C3和时钟使能引脚PCIECLKIC_OE_H_GPIO3_A7。
电源引脚设备树配置
vcc3v3_pcie: vcc3v3-pcie-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pcie30_pwr>;
startup-delay-us = <5000>;
vin-supply = <&vcc5v0_sys>;
};
时钟使能引脚设备树配置
pcie-oe-regulator {
compatible = "regulator-fixed";
gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pcie_oe>;
regulator-name = "pcie_oe";
//enable-active-high; //active low
regulator-always-on;
regulator-boot-on;
};
PCIE接口使能
&pcie3x2 {
reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie>;
pinctrl-names = "default";
pinctrl-0 = <&pcie30x2m1_pins>;
status = "okay";
};
mkdir /mnt/youyeetoo
mount /dev/block/nvme0n1 /mnt/youyeetoo
YY3568 的 wifi 接口和 SATA 接口使用同一个M.2。wifi和SATA不能同时使用
phy设备树
&combphy2_psq {
status = "okay";
};
sata设备树
&sata2 {
status = "okay";
};
mkdir /mnt/youyeetoo
mount /dev/block/sda /mnt/youyeetoo