[MTK] 添加SD card 的DTS 节点
文摘 无标签 2021-11-10 阅读:11294【DESCRIPTION】
DTS 文件中添加SD card (&msdc1) 配置节点,以支持SD card
【Code 位置】
kerne-4.4/arch/arm64/boot/dts/meidatek/cust_mt6771_msdc.dtsi
【添加方法】
在&msdc0 节点下面,添加&msdc1;
添加&msdc1 节点如下:
&msdc1 {
index = /bits/ 8 <1>;
clk_src = /bits/ 8 <MSDC30_CLKSRC_200MHZ>;
bus-width = <4>;
max-frequency = <200000000>;
msdc-sys-suspend;
cap-sd-highspeed;
sd-vmch-fastoff;
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
sd-uhs-sdr104;
sd-uhs-ddr50;
pinctl = <&msdc1_pins_default>;
pinctl_sdr104 = <&msdc1_pins_sdr104>;
pinctl_sdr50 = <&msdc1_pins_sdr50>;
pinctl_ddr50 = <&msdc1_pins_ddr50>;
register_setting = <&msdc1_register_setting_default>;
host_function = /bits/ 8 <MSDC_SD>;
cd_level = /bits/ 8 <MSDC_CD_LOW>;
cd-gpios = <&pio 3 0>;
status = "okay";
vmmc-supply = <&mt_pmic_vmch_ldo_reg>;
vqmmc-supply = <&mt_pmic_vmc_ldo_reg>;
clocks = <&infracfg_ao INFRACFG_AO_MSDC1_SCK_CG>, <&infracfg_ao INFRACFG_AO_MSDC1_CG>;
clock-names = "msdc1-clock", "msdc1-hclock";
hw_dvfs = /bits/ 8 <0>;
};
共0
条评论
作者
Pixiv日榜Top50