Lines Matching full:node

12 ; - a <node-macro>, generated for a particular node
14 dt-macro = node-macro / other-macro
17 ; node-macro: a macro related to a node
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"
27 ; Bus macros: the plain BUS is a way to access a node's bus controller.
28 ; The additional dt-name suffix is added to match that node's bus type;
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
61 ; Macros are generated for each of a node's compatibles;
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
68 ; Every non-root node gets one of these macros, which expands to the node
69 ; identifier for that node's parent in the devicetree.
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"
81 ; each child node.
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"
87 ; over each child node with status "okay".
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"
93 ; DT_FOREACH_NODELABEL_VARGS, which iterate over a node's node labels.
94 node-macro =/ %s"DT_N" path-id %s"_FOREACH_NODELABEL" [ %s"_VARGS" ]
96 node-macro =/ %s"DT_N" path-id %s"_NODELABEL_NUM"
97 ; The node's zero-based index in the list of it's parent's child nodes.
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
102 ; The node's dependency ordinal. This is a non-negative integer
104 node-macro =/ %s"DT_N" path-id %s"_ORD"
105 ; The node's path, as a string literal
106 node-macro =/ %s"DT_N" path-id %s"_PATH"
107 ; The node's name@unit-addr, as a string literal
108 node-macro =/ %s"DT_N" path-id %s"_FULL_NAME"
109 ; The dependency ordinals of a node's requirements (direct dependencies).
110 node-macro =/ %s"DT_N" path-id %s"_REQUIRES_ORDS"
111 ; The dependency ordinals of a node supports (reverse direct dependencies).
112 node-macro =/ %s"DT_N" path-id %s"_SUPPORTS_ORDS"
115 ; pinctrl-macro: a macro related to the pinctrl properties in a node
118 ; but the array indexes correspond to pinctrl-DIGIT properties in a node.
120 ; So they're related to a node, but not just one property within the node.
130 ; Total number of pinctrl-DIGIT properties in the node. May be zero.
132 ; #define DT_N_<node path>_PINCTRL_NUM 2
136 ; #define DT_N_<node path>_PINCTRL_IDX_0_EXISTS 1
137 ; #define DT_N_<node path>_PINCTRL_IDX_1_EXISTS 1
141 ; #define DT_N_<node path>_PINCTRL_NAME_default_EXISTS 1
142 ; #define DT_N_<node path>_PINCTRL_NAME_sleep_EXISTS 1
146 ; #define DT_N_<node path>_PINCTRL_NAME_default_IDX 0
147 ; #define DT_N_<node path>_PINCTRL_NAME_sleep_IDX 1
149 ; The node identifier for the phandle in a named pinctrl property.
151 ; #define DT_N_<node path>_PINCTRL_NAME_default_IDX_0_PH <node id for 'bar'>
167 ; node-1 {
173 ; node-2 {
186 ; The node contains GPIO hogs.
188 ; #define DT_N_<node-1 path>_GPIO_HOGS_EXISTS 1
189 ; #define DT_N_<node-2 path>_GPIO_HOGS_EXISTS 1
191 ; Number of hogged GPIOs in a node.
193 ; #define DT_N_<node-1 path>_GPIO_HOGS_NUM 2
194 ; #define DT_N_<node-2 path>_GPIO_HOGS_NUM 1
198 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_EXISTS 1
199 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_EXISTS 1
200 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_EXISTS 1
202 ; The node identifier for the phandle of a logical index in the GPIO hogs array.
205 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_PH <node id for 'gpio1'>
206 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_PH <node id for 'gpio1'>
207 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_PH <node id for 'gpio1'>
211 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_VAL_pin_EXISTS 1
212 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_VAL_pin_EXISTS 1
213 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_VAL_pin_EXISTS 1
217 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_VAL_pin 0
218 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_VAL_pin 1
219 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_VAL_pin 2
223 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_VAL_flags_EXISTS 1
224 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_VAL_flags_EXISTS 1
225 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_VAL_flags_EXISTS 1
229 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_0_VAL_flags 0x10
230 ; #define DT_N_<node-1 path>_GPIO_HOGS_IDX_1_VAL_flags 0x20
231 ; #define DT_N_<node-2 path>_GPIO_HOGS_IDX_0_VAL_flags 0x30
235 ; property-macro: a macro related to a node property
237 ; These combine a node identifier with a "lowercase-and-underscores form"
248 ; DT_N_<node path>_P_<property name>
252 ; - path-id: node's devicetree path converted to a C token
253 ; - prop-id: node's property name converted to a C token
258 ; path-id: a node's path-based macro identifier
261 ; the node's devicetree path converted to a C token by changing:
267 ; For example, the leaf node "bar-BAZ" in this devicetree:
286 ; Example node:
324 ; other-macro: grab bag for everything that isn't a node-macro.
335 ; which iterates over each enabled node of a compatible.
344 ; Declares that a compatible has at least one node on a bus.
349 ; Declares that a compatible has at least one status "okay" node.
355 ; property to a fixed-partitions node. See the flash map API docs
360 ; alternate-id: another way to specify a node besides a path-id
376 ; Node device@123 has these alternate-id values:
389 ; "_P_<prop-id>" to access node properties given a node's alias, etc.