Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/build/dts/macros.bnf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; An RFC 7405 ABNF grammar for devicetree macros.

Check warning on line 1 in doc/build/dts/macros.bnf

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

Copyright missing

doc/build/dts/macros.bnf:1 File has no SPDX-FileCopyrightText header, consider adding one.

Check warning on line 1 in doc/build/dts/macros.bnf

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

License missing

doc/build/dts/macros.bnf:1 File has no SPDX-License-Identifier header, consider adding one.
;
; This does *not* cover macros pulled out of DT via Kconfig,
; like CONFIG_SRAM_BASE_ADDRESS, etc. It only describes the
Expand Down Expand Up @@ -103,8 +103,9 @@
node-macro =/ %s"DT_N" path-id %s"_FOREACH_NODELABEL" [ %s"_VARGS" ]
; These are used internally by DT_NUM_NODELABELS
node-macro =/ %s"DT_N" path-id %s"_NODELABEL_NUM"
; The node's zero-based index in the list of it's parent's child nodes.
node-macro =/ %s"DT_N" path-id %s"_CHILD_IDX"
; Macros which expand to the node identifiers for each child by index.
node-macro =/ %s"DT_N" path-id %s"_CHILD_IDX_" DIGIT
node-macro =/ %s"DT_N" path-id %s"_CHILD_IDX_" 2*DIGIT
; The node's status macro; dt-name in this case is something like "okay"
; or "disabled".
node-macro =/ %s"DT_N" path-id %s"_STATUS_" dt-name
Expand Down
Loading