-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
doc: dts: Fix outdated identifier list for /chosen and improve related docs #21594
doc: dts: Fix outdated identifier list for /chosen and improve related docs #21594
Conversation
77156b3
to
5f30002
Compare
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.
One misspelling to fix, otherwise LGTM. (I notice though that CI hasn't reported the doc build results.)
doc/guides/dts/index.rst
Outdated
default "" if HAS_DTS | ||
|
||
To see how the preprocessor is used for a symbol, look it up directly in the | ||
:file:`Kconfig` file where it is defined instead. The referenc page for the |
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.
fix misspelling of reference
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.
Fixed
5f30002
to
e9378ca
Compare
ecac5c4
to
05745eb
Compare
The *_ON_DEV_NAME macros generated from /chosen properties changed prefix from DT_* to CONFIG_* in commit 8ce0cf0 ("kconfig: Convert device tree chosen properties to new kconfigfunctions"), but the devicetree documentation still lists the old names. Update the documentation with the correct anmes. Also remove an outdated reference to DT_SRAM_SIZE/DT_SRAM_BASE_REFERENCE, and give a complete list of generated macros. Signed-off-by: Ulf Magnusson <[email protected]>
Not all /chosen properties were documented. Add the missing ones along with the macros generated for them. Found with some grepping for '\<zephyr,.*='. Signed-off-by: Ulf Magnusson <[email protected]>
It's cryptic that some identifiers for devicetree-related stuff start with DT_*, while others start with CONFIG_*. Explain what's going on, and link to the Kconfig preprocessor documentation. Also remove an early mention of bindings that might be confusing. Bindings are much more about checking devicetree conformance than about controlling output, though they do some of that too. Signed-off-by: Ulf Magnusson <[email protected]>
Turn the CONFIG_* identifiers in the /chosen table into links to the Kconfig reference. Also explain why devicetree information doesn't show up in the Kconfig reference. Signed-off-by: Ulf Magnusson <[email protected]>
05745eb
to
833ac39
Compare
Updating the list of identifiers generated for
/chosen
was overlooked after commit 8ce0cf0 ("kconfig: Convert device tree chosen properties to new kconfigfunctions"). Update the list, and also add some missing documentation.Commits: