From 675616493c12c3a28693f009e1aa249188b5ad8b Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 20 Jun 2021 22:25:49 +0200 Subject: [PATCH] platform/1bitsquare_icebreaker: Add possible USB pinouts The pin outs come from LUNA : https://github.com/greatscottgadgets/luna/blob/main/luna/gateware/platform/icebreaker.py#L94 and are some commonly used ones from other projects / pmods. Signed-off-by: Sylvain Munaut --- .../platforms/1bitsquared_icebreaker.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/litex_boards/platforms/1bitsquared_icebreaker.py b/litex_boards/platforms/1bitsquared_icebreaker.py index 4f62709..176fe72 100644 --- a/litex_boards/platforms/1bitsquared_icebreaker.py +++ b/litex_boards/platforms/1bitsquared_icebreaker.py @@ -96,6 +96,42 @@ dvi_pmod = [ ) ] +usb_pmod_1a = [ + ("usb", 0, + Subsignal("d_p", Pins("PMOD1A:2")), + Subsignal("d_n", Pins("PMOD1A:3")), + Subsignal("pullup", Pins("PMOD1A:0")), + IOStandard("LVCMOS33"), + ) +] + +usb_pmod_1b = [ + ("usb", 0, + Subsignal("d_p", Pins("PMOD1B:2")), + Subsignal("d_n", Pins("PMOD1B:3")), + Subsignal("pullup", Pins("PMOD1B:0")), + IOStandard("LVCMOS33"), + ) +] + +usb_tnt = [ + ("usb", 0, + Subsignal("d_p", Pins("PMOD1B:3")), + Subsignal("d_n", Pins("PMOD1B:2")), + Subsignal("pullup", Pins("PMOD1B:1")), + IOStandard("LVCMOS33"), + ) +] + +usb_keckmann = [ + ("usb", 0, + Subsignal("d_p", Pins("PMOD1B:0")), + Subsignal("d_n", Pins("PMOD1B:1")), + Subsignal("pullup", Pins("PMOD1B:2")), + IOStandard("LVCMOS33"), + ) +] + # Platform ----------------------------------------------------------------------------------------- class Platform(LatticePlatform):