Skip to content

Commit aae1154

Browse files
committed
fix USB/ULPI: H11 is USB clock input, not part of ULPI
1 parent 08e6a06 commit aae1154

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

litex_boards/platforms/terasic_deca.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,21 @@
148148
IOStandard("1.5 V")
149149
),
150150

151-
# USB ULPI (TUSB1210).
152-
("ulpi", 0,
151+
# USB / ULPI
152+
# "usb" resource: auxiliary PHY control signals (chip-select, fault indicator)
153+
("usb", 0,
153154
Subsignal("fault_n", Pins("D8"), IOStandard("1.2 V")),
154155
Subsignal("cs", Pins("J11"), IOStandard("1.8 V")),
155-
Subsignal("clk", Pins("H11"), IOStandard("1.2 V")),
156+
),
157+
158+
# clk60: raw 60MHz clock INPUT from the USB3300 PHY (feeds the PLL)
159+
("clk60", 0, Pins("H11"), IOStandard("1.2 V")),
160+
161+
# "ulpi" resource: the 12-pin ULPI bus proper
162+
# - clk (W3) is an OUTPUT from FPGA to PHY (3.3V bank 3)
163+
# - reset_n is active-low (equivalent to Amaranth "reset" with invert=True)
164+
("ulpi", 0,
165+
Subsignal("clk", Pins("W3"), IOStandard("3.3-V LVTTL")),
156166
Subsignal("stp", Pins("J12"), IOStandard("1.8 V")),
157167
Subsignal("dir", Pins("J13"), IOStandard("1.8 V")),
158168
Subsignal("nxt", Pins("H12"), IOStandard("1.8 V")),

0 commit comments

Comments
 (0)