Hot swappable
need to confirm the following & mmc1 node must not have a non-removable this property node.
/kernel-3.18/arch/arm64/boot/dts/Project_Name.dts
&mmc1 {
clk_src = /bits/ 8 ;
bus-width = ;
max-frequency = ;
msdc-sys-suspend;
cap-sd-highspeed;
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
sd-uhs-sdr104;
sd-uhs-ddr50;
pinctl = <&mmc1_pins_default>;
pinctl_sdr104 = <&mmc1_pins_sdr104>;
pinctl_sdr50 = <&mmc1_pins_sdr50>;
pinctl_ddr50 = <&mmc1_pins_ddr50>;
register_setting = <&mmc1_register_setting_default>;
host_function = /bits/ 8 ;
cd_level = /bits/ 8 ;
cd-gpios = <&pio 5 0>;
/*non-removable;*/
= Status "Okay";
};
two, make sure that the insertion and extraction sdcard Status Interrupt Pin
- Compared not inserted sdcard and sdcard insertion time, if the interruption of high and low voltage Pin state changes, if there is no change, please check the hardware hardware personnel.
- Check Interrupt Pin pulled in a state where the voltage level meets the design requirements, for example, pulled Status Interrupt Pin voltage should be 1.8V, 1.8V can be achieved if the actual measurement
- 1, the card is not interrupted Pin is high, the card insertion is low interruption Pin
-
cd_level = /bits/ 8 <MSDC_CD_LOW>;2, the card is not interrupted Pin is low, is inserted into the card interrupt Pin high
cd_level = / bits / 8 <MSDC_CD_HIGH >