Announcement

Collapse
No announcement yet.

Redefine SD pins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redefine SD pins


    Hello. Is it possible programmatically reorder pins of SoM for connect SD-card ?

    If it possible so how to do it better? Should I change *.dtsi ?



    I've attached two images:

    Click image for larger version

Name:	orig.png
Views:	298
Size:	132.4 KB
ID:	12586
    this is original connection in accordination with datasheet of TinyRex


    Click image for larger version

Name:	mod.png
Views:	294
Size:	165.7 KB
ID:	12587
    this is what I want to do


    Thanks!
    Attached Files

  • #2
    This is very general question - at least you may need to say what chip you use.

    PS: In some CPUs / Microcontrollers it may be possible to swap pins (if more pins has the same SD card function), but if you mean if you can just simple connect them in any order - I have never tried that, but I do not think that would work - I believe, SD card uses a specific protocol and it has some registers which would not be accessible if you swap pins.

    Comment


  • #3
    Have a look at iMX6 reference schematics, they have eMMC connected there. That could help.

    Example from SABRESDB
    Click image for larger version

Name:	emmc schematic.png
Views:	919
Size:	76.5 KB
ID:	12595

    Comment


    • eugene128
      eugene128 commented
      Editing a comment
      Yes, that's it.

      But my main question: is it possible to "reorder logic" of PINs.

      for example now in accordination with datasheet of TinyxRex there is next connection:
      [SD/eMMC: PINX] --> [TinyxRex: CPU_GPIO2] --> [imx.6: SD4_DAT0]

      we want to reorder PINs and get next chain:
      [SD/eMMC: PINX] --> [TinyRex: CPU_GPIO2] --> [imx.6: SD4_DAT7]

      Now, as I understand right, TinyRex just provided that chain on "hardware" level.

      And if I want to be able to connect SD/eMMC with the own schematic without any modifications of SoM I should programmatically reorder imx.6's PINs logic so that SD4_DAT0 do logic of SD4_DAT7, and SD4_DAT7 do logic of SD4_DAT0.

      So, maybe that question for NXP.

  • #4
    Have a look into TinyRex schematic (you will get the module pdf schematic with development kit). You can find there where exactly the pins are connected and how you can swap them. For example, CPU_GPIO2 is connected to CPU pin D18 and as you can see you can not use it as SD4_DAT7 as it doesn't provide that as alternate function of D18 pin:

    CPU SD4 mapping
    Click image for larger version

Name:	tinyrex emmc cpu_schematic screenshot.png
Views:	331
Size:	119.0 KB
ID:	12602

    J3 TinyRex baseboard pin mapping
    Click image for larger version

Name:	J3 TinyRex baseboard pin mapping.png
Views:	301
Size:	75.0 KB
ID:	12603

    J3 TinyRex module pin mapping
    Click image for larger version

Name:	J3 TinyRex module pins mapping.png
Views:	274
Size:	61.5 KB
ID:	12604



    Comment


    • eugene128
      eugene128 commented
      Editing a comment
      Ok, it's clear.
      Thank you for your clarification.
Working...
X