platforms/arty: move sdcard_pmod_io to JD.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 16 Jun 2020 18:17:15 +0000 (20:17 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 16 Jun 2020 18:17:15 +0000 (20:17 +0200)
litex/boards/platforms/arty.py

index 7e72b4a903d5e3fd99724b7f13697ce70a86b3c5..020ca634c991fbda88db5c25857cab77e05b62c5 100644 (file)
@@ -145,13 +145,25 @@ _io = [
     ),
 ]
 
-_sdcard_pmod_io = [ # https://store.digilentinc.com/pmod-microsd-microsd-card-slot/
+_sdcard_pmod_io = [
+    # SDCard PMOD on JD:
+    # - https://store.digilentinc.com/pmod-microsd-microsd-card-slot/
+    # - https://github.com/antmicro/arty-expansion-board
+    ("spisdcard", 0,
+        Subsignal("clk",  Pins("F3")),
+        Subsignal("mosi", Pins("D3"), Misc("PULLUP True")),
+        Subsignal("cs_n", Pins("D4"), Misc("PULLUP True")),
+        Subsignal("miso", Pins("F4"), Misc("PULLUP True")),
+        Misc("SLEW=FAST"),
+        IOStandard("LVCMOS33"),
+    ),
     ("sdcard", 0,
-        Subsignal("data", Pins("D15 J17 J18 E15")),
-        Subsignal("cmd", Pins("E16")),
-        Subsignal("clk", Pins("C15")),
-        Subsignal("cd", Pins("K15")),
-        IOStandard("LVCMOS33"), Misc("SLEW=FAST")
+        Subsignal("data", Pins("F4 E2 D2 D4")),
+        Subsignal("cmd", Pins("D3")),
+        Subsignal("clk", Pins("F3")),
+        Subsignal("cd", Pins("H2")),
+        Misc("SLEW=FAST"),
+        IOStandard("LVCMOS33"),
     ),
 ]