weaves

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

    1. 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.

    2. 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
    3.     1, the card is not interrupted Pin is high, the card insertion is low interruption Pin
    4.         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 >

Guess you like

Origin www.cnblogs.com/chjgongzuo/p/11577537.html