-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[topgen] Fix broken pinmux table link #21696
Conversation
9dabf3f
to
48d2b45
Compare
48d2b45
to
c3d9a99
Compare
| CW340 | 4 | 47 | 14 | 13 | 74 | [Pinout Table](./pinout_cw340.md) | | ||
| Target Name | #IO Banks | #Muxed Pads | #Direct Pads | #Manual Pads | #Total Pads | Pinout / Pinmux Tables | | ||
|:-------------:|:-----------:|:-------------:|:--------------:|:--------------:|:-------------:|:---------------------------------------------------------------------------:| | ||
| ASIC | 4 | 47 | 14 | 10 | 71 | [Pinout Table](../../../top_earlgrey/ip/pinmux/doc/autogen/pinout_asic.md) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... actually, is this the right number of directory changes? It looks to me like this new link wouldn't resolve.
Also, did you find a broken link on the website? It was working for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this would break the top-level documentation here: https://opentitan.org/book/hw/top_earlgrey/ip/pinmux/doc/autogen/targets.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two scripts, I believe. One that generates top-level docs, and one for the IP itself. The latter is broken:
https://opentitan.org/book/hw/ip/pinmux/doc/programmers_guide.html#top_earlgrey-pinmux-targets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see now that this table is reused here:
https://opentitan.org/book/hw/top_earlgrey/ip/pinmux/doc/autogen/targets.html
That was not how this was initially intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm feeling like the top-level documentation is already fine, but it's the IP-level that is broken (which is referenced in the issue you linked). Should we consider eliminating the top-level-specific pin-out table from the IP docs instead?
opentitan/hw/ip/pinmux/doc/programmers_guide.md
Lines 109 to 115 in c3d9a99
## Pinout and Pinmux Mapping | |
The tables below summarize the pinout and pinmux connectivity for certain top-level designs. | |
### Top Earlgrey | |
{{#include ../../../top_earlgrey/ip/pinmux/doc/autogen/targets.md}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that may be the easier fix. Let me do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated - PTAL
Prematurely clicked approve. Some outstanding discussion items. :)
Removes the top-dependent tables from the IP documentation and refers to the top-level specific docs. Signed-off-by: Michael Schaffner <[email protected]>
c3d9a99
to
a001697
Compare
This is a short term fix and addresses #18585 and #19425.
Longer term, we should align how top-level documentation is generated, see #12848.