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 <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2021-06-20 22:25:49 +02:00
parent caac75c7db
commit 675616493c
1 changed files with 36 additions and 0 deletions

View File

@ -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):