Lines Matching full:macro
8 ; dt-macro: the top level nonterminal for a devicetree macro
10 ; A dt-macro starts with uppercase "DT_", and is one of:
12 ; - a <node-macro>, generated for a particular node
13 ; - some <other-macro>, a catch-all for other types of macros
14 dt-macro = node-macro / other-macro
17 ; node-macro: a macro related to a node
19 ; A macro about a property value
20 node-macro = property-macro
21 ; A macro about the pinctrl properties in a node.
22 node-macro =/ pinctrl-macro
23 ; A macro about the GPIO hog properties in a node.
24 node-macro =/ gpiohogs-macro
25 ; EXISTS macro: node exists in the devicetree
26 node-macro =/ %s"DT_N" path-id %s"_EXISTS"
30 node-macro =/ %s"DT_N" path-id %s"_BUS" ["_" dt-name]
32 node-macro =/ %s"DT_N" path-id %s"_REG_NUM"
33 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT "_EXISTS"
34 node-macro =/ %s"DT_N" path-id %s"_REG_IDX_" DIGIT
36 node-macro =/ %s"DT_N" path-id %s"_REG_NAME_" dt-name
38 node-macro =/ %s"DT_N" path-id %s"_REG_NAME_" dt-name "_EXISTS"
40 node-macro =/ %s"DT_N" path-id %s"_IRQ_NUM"
41 node-macro =/ %s"DT_N" path-id %s"_IRQ_LEVEL"
42 node-macro =/ %s"DT_N" path-id %s"_IRQ_IDX_" DIGIT "_EXISTS"
43 node-macro =/ %s"DT_N" path-id %s"_IRQ_IDX_" DIGIT
45 node-macro =/ %s"DT_N" path-id %s"_CONTROLLER"
46 node-macro =/ %s"DT_N" path-id %s"_IRQ_NAME_" dt-name
48 node-macro =/ %s"DT_N" path-id %s"_IRQ_NAME_" dt-name "_CONTROLLER"
50 node-macro =/ %s"DT_N" path-id %s"_RANGES_NUM"
51 node-macro =/ %s"DT_N" path-id %s"_RANGES_IDX_" DIGIT "_EXISTS"
52 node-macro =/ %s"DT_N" path-id %s"_RANGES_IDX_" DIGIT
55 node-macro =/ %s"DT_N" path-id %s"_RANGES_IDX_" DIGIT
57 node-macro =/ %s"DT_N" path-id %s"_FOREACH_RANGE"
60 node-macro =/ %s"DT_N" path-id %s"_PARTITION_ID" DIGIT
63 node-macro =/ %s"DT_N" path-id %s"_COMPAT_MATCHES_" dt-name
64 node-macro =/ %s"DT_N" path-id %s"_COMPAT_VENDOR_IDX_" DIGIT "_EXISTS"
65 node-macro =/ %s"DT_N" path-id %s"_COMPAT_VENDOR_IDX_" DIGIT
66 node-macro =/ %s"DT_N" path-id %s"_COMPAT_MODEL_IDX_" DIGIT "_EXISTS"
67 node-macro =/ %s"DT_N" path-id %s"_COMPAT_MODEL_IDX_" DIGIT
70 node-macro =/ %s"DT_N" path-id %s"_PARENT"
73 node-macro =/ %s"DT_N" path-id %s"_P_" prop-id %s"_FOREACH_PROP_ELEM"
74 node-macro =/ %s"DT_N" path-id %s"_P_" prop-id %s"_FOREACH_PROP_ELEM_SEP"
75 node-macro =/ %s"DT_N" path-id %s"_P_" prop-id %s"_FOREACH_PROP_ELEM_VARGS"
76 node-macro =/ %s"DT_N" path-id %s"_P_" prop-id %s"_FOREACH_PROP_ELEM_SEP_VARGS"
78 node-macro =/ %s"DT_N" path-id %s"_CHILD_NUM"
79 node-macro =/ %s"DT_N" path-id %s"_CHILD_NUM_STATUS_OKAY"
82 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD"
83 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_SEP"
84 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_VARGS"
85 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_SEP_VARGS"
88 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_STATUS_OKAY"
89 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_STATUS_OKAY_SEP"
90 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_STATUS_OKAY_VARGS"
91 node-macro =/ %s"DT_N" path-id %s"_FOREACH_CHILD_STATUS_OKAY_SEP_VARGS"
94 node-macro =/ %s"DT_N" path-id %s"_FOREACH_NODELABEL" [ %s"_VARGS" ]
96 node-macro =/ %s"DT_N" path-id %s"_NODELABEL_NUM"
98 node-macro =/ %s"DT_N" path-id %s"_CHILD_IDX"
99 ; The node's status macro; dt-name in this case is something like "okay"
101 node-macro =/ %s"DT_N" path-id %s"_STATUS_" dt-name
104 node-macro =/ %s"DT_N" path-id %s"_ORD"
106 node-macro =/ %s"DT_N" path-id %s"_PATH"
108 node-macro =/ %s"DT_N" path-id %s"_FULL_NAME"
110 node-macro =/ %s"DT_N" path-id %s"_REQUIRES_ORDS"
112 node-macro =/ %s"DT_N" path-id %s"_SUPPORTS_ORDS"
115 ; pinctrl-macro: a macro related to the pinctrl properties in a node
133 pinctrl-macro = %s"DT_N" path-id %s"_PINCTRL_NUM"
138 pinctrl-macro =/ %s"DT_N" path-id %s"_PINCTRL_IDX_" DIGIT %s"_EXISTS"
143 pinctrl-macro =/ %s"DT_N" path-id %s"_PINCTRL_NAME_" dt-name %s"_EXISTS"
148 pinctrl-macro =/ %s"DT_N" path-id %s"_PINCTRL_NAME_" dt-name %s"_IDX"
153 ; There's no need for a separate macro for access by index: that's
154 ; covered by property-macro. We only need this because the map from
156 pinctrl-macro =/ %s"DT_N" path-id %s"_PINCTRL_NAME_" dt-name %s"_IDX_" DIGIT %s"_PH"
159 ; gpiohogs-macro: a macro related to GPIO hog nodes
190 gpioshogs-macro = %s"DT_N" path-id %s"_GPIO_HOGS_EXISTS"
195 gpioshogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_NUM"
201 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_EXISTS"
208 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_PH"
214 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_VAL_pin_EXISTS"
220 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_VAL_pin"
226 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_VAL_flags_EXISTS"
232 gpiohogs-macro =/ %s"DT_N" path-id %s"_GPIO_HOGS_IDX_" DIGIT %s"_VAL_flags"
235 ; property-macro: a macro related to a node property
242 ; subvalue that deserves its own macro, like the macros for an array
245 ; The "plain vanilla" macro for a property's value, with no prop-suf,
255 property-macro = %s"DT_N" path-id %s"_P_" prop-id [prop-suf]
258 ; path-id: a node's path-based macro identifier
298 ; prop-suf: a property-specific macro suffix
324 ; other-macro: grab bag for everything that isn't a node-macro.
327 other-macro = %s"DT_N_" alternate-id
329 other-macro =/ %s"DT_N_INST_" dt-name %s"_NUM_OKAY"
332 other-macro =/ %s"DT_FOREACH_HELPER"
333 other-macro =/ %s"DT_FOREACH_OKAY_HELPER"
336 other-macro =/ %s"DT_FOREACH_OKAY_" dt-name
337 other-macro =/ %s"DT_FOREACH_OKAY_VARGS_" dt-name
340 other-macro =/ %s"DT_FOREACH_OKAY_INST_" dt-name
341 other-macro =/ %s"DT_FOREACH_OKAY_INST_VARGS_" dt-name
343 other-macro =/ %s"DT_CHOSEN_" dt-name
348 other-macro =/ %s"DT_COMPAT_" dt-name %s"_BUS_" dt-name
353 other-macro =/ %s"DT_COMPAT_HAS_OKAY_" dt-name
357 other-macro =/ %s"DT_COMPAT_" dt-name %s"_LABEL_" dt-name
388 ; These mainly exist to allow pasting an alternate-id macro onto a
414 ; gen-name is used as a stand-in for a component of a generated macro