-
Notifications
You must be signed in to change notification settings - Fork 771
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
[sysrst_ctrl] Misleading documentation and reset default for PIN_ALLOWED_CTL #24480
Comments
I agree that the sentence
seems contrary to the rest of the documentation and how it actually works. It would indeed be more logical that the default value of By the way, there is useful code in the repo in case in helps: I don't know if it's possible to change the RTL at this point though. @andreaskurth might have an answer to that? |
So the actual behavior is: The post-reset value of Following that logic, we should update/correct our documentation (see PR #24485), but I don't see a need for an RTL change. Do you disagree? |
I think the point that @jesultra is making is that both
This suggests that the intention was for both pins to work the same way (otherwise why specify a default override for the Anyway, this is really more of a software issue at this point I would say, but maybe the RTL can be changed for future release? |
Exactly. For consistency I would like that a future B1 chip would have the WP signal default to 1, with a power on override to 0. |
OK, let's track this under future release then |
@andreaskurth Can you review #24485 when you have the time? It's just a documentation change |
Description
The section Flash Write Protect Output contains the following two sentences:
Keeping in mind that flash_wp_l is a low-active signal, the first sentence gives the impression that if the override control bit for flash_wp_l is disabled, that the signal will revert to its deasserted high level. However, the second sentence states that in the absense of overriding, the signal will be logic 0, that is, asserted.
In practice, the Z1 silicon seems to behave as the second sentence describes, that is, contradicting the first one.
I think that it would make more sense that the "default" level of flash_wp_l, in absence of any override would be logic 1, that is, deasserted. This would match how the other signal ec_rst_l behaves, in the sense that in absence of override, the level of that signal is controlled by the key combination detection logic, which defaults to logic 1.
Furthermore, the default value for the register PIN_ALLOWED_CTL is to have bits flash_wp_l_0 and ec_rst_l_0 set, and nothing else. This seems consistent with the intention behind the first sentence in the documentation (which is contrary to how Z1 silicon behaves.) If the default level of flash_wp_l is not changed to logic 1, then the PIN_ALLOWED_CTL ought to also have flash_wp_l_1 set by default.
The text was updated successfully, but these errors were encountered: