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.

Linux/PROCESSOR-SDK-AM335X: AM335X

Part Number: PROCESSOR-SDK-AM335X


Tool/software: Linux

Hi ,

I am trying to interface the Micro SD  card onto the MMC2 slot on the Beagle Bone black. Could any body help me to modify the  DTS file to enable SD card interface on MMC2.

Also the hardware pins  that need to tap on the cape.

Thanks,

Annapurna.B

  • Hi Annapurna,

    It is difficult to comment without schematics, but here are few pointers to change in beagle-bone black related dts(am335x-bone-common.dtsi). This is just starter for you to get started with dts changes and it is not complete

    1. Check to which gpio Chip select is connected and update "cd-gpios"
    2. Check to which pins clk and data are connected and set IOPAD offset and mode correctly. Check your schematics and refer to am335x datasheet to know the pins.
    3. If there are only 4 data, change bus-width and pinctrl-single,pins accordingly
    You can start with adding an entry like below
    &mmc2 {
    status = "okay";
    bus-width = <0x8>;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc2_pins>;
    cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
    };

    mmc2_pins: pinmux_mmc2_pins {
    pinctrl-single,pins = <
    AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
    AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
    AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
    AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
    AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
    AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
    AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
    AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
    AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
    AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
    >;
    };
  • Annapurna,

    If you have no more questions related to the subject of this e2e thread, pelase close/verify/resolve this thread.

    Regards,
    Pavel