[Libre-soc-bugs] [Bug 50] nmigen pinmux

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Nov 13 13:46:00 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=50

--- Comment #14 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
i'm tracing code through so you can see what the hell's going on.

https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/simple/issuer.py;h=24830149a606a981f08e697e489a658fd7cea892;hb=df423ac698b5acd63260e4751569c7621d950d35#l184

here's where the pinspecs are actually picked up from
the pinmux ls180 output.

 175         if self.jtag_en:
 176             # XXX MUST keep this up-to-date with litex, and
 177             # soc-cocotb-sim, and err.. all needs sorting out, argh
 178             subset = ['uart',
 179                       'mtwi',
 180                       'eint', 'gpio', 'mspi0',
 181                       # 'mspi1', - disabled for now
 182                       # 'pwm', 'sd0', - disabled for now
 183                        'sdr']
 184             self.jtag = JTAG(get_pinspecs(subset=subset),
 185                              domain=self.dbg_domain)

get_pinspecs() returns *exactly* the same format as dummy_pinspecs

https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/config/pinouts.py;h=03cfa974b957f654512d8ff204ce1262ce7d632f;hb=df423ac698b5acd63260e4751569c7621d950d35#l28

you can see there it grabs a subset of the JSON file which was
created by the pinmux program

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list