Lines Matching +full:instance +full:- +full:id
7 * Copyright (c) 2022, Andrei-Edward Popa
9 * SPDX-License-Identifier: Apache-2.0
20 * @defgroup devicetree-reset-controller Devicetree Reset Controller API
27 * "resets" phandle-array property at an index
31 * reset1: reset-controller@... { ... };
33 * reset2: reset-controller@... { ... };
65 * resets phandle-array property by name
69 * reset1: reset-controller@... { ... };
71 * reset2: reset-controller@... { ... };
75 * reset-names = "alpha", "beta";
84 * @param name lowercase-and-underscores name of a resets element
85 * as defined by the node's reset-names property
97 * reset: reset-controller@... {
99 * #reset-cells = <1>;
108 * reset-cells:
109 * - id
113 * DT_RESET_CELL_BY_IDX(DT_NODELABEL(n), 0, id) // 10
117 * @param cell lowercase-and-underscores cell name
129 * reset: reset-controller@... {
131 * #reset-cells = <1>;
136 * reset-names = "alpha";
141 * reset-cells:
142 * - id
146 * DT_RESET_CELL_BY_NAME(DT_NODELABEL(n), alpha, id) // 10
149 * @param name lowercase-and-underscores name of a resets element
150 * as defined by the node's reset-names property
151 * @param cell lowercase-and-underscores cell name
161 * @param cell lowercase-and-underscores cell name
170 * "resets" phandle-array property at an index
172 * @param inst instance number
183 * @param inst instance number
193 * resets phandle-array property by name
195 * @param inst instance number
196 * @param name lowercase-and-underscores name of a resets element
197 * as defined by the node's reset-names property
206 * @brief Get a DT_DRV_COMPAT instance's reset specifier's cell value
208 * @param inst DT_DRV_COMPAT instance number
210 * @param cell lowercase-and-underscores cell name
218 * @brief Get a DT_DRV_COMPAT instance's reset specifier's cell value by name
219 * @param inst DT_DRV_COMPAT instance number
220 * @param name lowercase-and-underscores name of a resets element
221 * as defined by the node's reset-names property
222 * @param cell lowercase-and-underscores cell name
231 * @param inst DT_DRV_COMPAT instance number
232 * @param cell lowercase-and-underscores cell name
239 * @brief Get a Reset Controller specifier's id cell at an index
241 * This macro only works for Reset Controller specifiers with cells named "id".
246 * reset: reset-controller@... {
248 * #reset-cells = <1>;
257 * reset-cells:
258 * - id
266 * @return the id cell value at index "idx"
270 DT_PHA_BY_IDX(node_id, resets, idx, id)
275 * @return the id cell value at index 0
282 * @brief Get a DT_DRV_COMPAT instance's Reset Controller specifier's id cell value
284 * @param inst DT_DRV_COMPAT instance number
286 * @return the id cell value at index "idx"
294 * @param inst DT_DRV_COMPAT instance number
295 * @return the id cell value at index 0