This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to suport mmc2 on the SDK 7.0?

dear all,

  I want to used mmc2(SD card) on am335x, now mmc0 can work, but how to support mmc2 on the SDK 7.0? how to setup dts?

  I have see mmc3 setting on am335x-evm.dts, but it can't work. maybe need to setup other?

  now my mmc3 ios:

clock:        400000 Hz
vdd:        15 (2.7 ~ 2.8 V)
bus mode:    2 (push-pull)
chip select:    0 (don't care)
power mode:    2 (on)
bus width:    0 (1 bits)
timing spec:    0 (legacy)
signal voltage:    0 (3.30 V)

  it's clock and bus width isn't right, how to set clock and bus width?

Thank!

  • Hi,

    Have you done proper pinmuxing for MMC2 on your linux source with dts changes?

  • I have proper pinmuxing:

            mmc3_pins_default: pinmux_mmc3_pins {
                pinctrl-single,pins = <
                    0x044 (PIN_INPUT_PULLUP | MUX_MODE3)        /* gpmc_a1.mmc2_dat0, INPUT_PULLUP | MODE3 */
                    0x048 (PIN_INPUT_PULLUP | MUX_MODE3)        /* gpmc_a2.mmc2_dat1, INPUT_PULLUP | MODE3 */
                    0x04C (PIN_INPUT_PULLUP | MUX_MODE3)        /* gpmc_a3.mmc2_dat2, INPUT_PULLUP | MODE3 */
                    0x078 (PIN_INPUT_PULLUP | MUX_MODE3)       /* gpmc_ben1.mmc2_dat3, INPUT_PULLUP | MODE3 */
                    0x088 (PIN_INPUT_PULLUP | MUX_MODE3)       /* gpmc_csn3.mmc2_cmd, INPUT_PULLUP | MODE3 */
                    0x08C (PIN_INPUT_PULLUP | MUX_MODE3)        /* gpmc_clk.mmc2_clk, INPUT_PULLUP | MODE3 */
                >;
            };
    it seem that mmc2 clk not enable. when I enable mmc2 clk force, mm2 can't work.

  • Hi,

    Have you probed the MMC2 clock pin & getting expected clock freq after pinmuxing?

    If possible, attach (am335x-evm.dts)modified dts for mmc2 (latest) file and board file.