@@ -87,85 +87,6 @@ extern "C" {
8787#define DT_CLOCKS_CTLR_BY_NAME (node_id , name ) \
8888 DT_PHANDLE_BY_NAME(node_id, clocks, name)
8989
90- /**
91- * @brief Get a label property from the node referenced by a pwms
92- * property at an index
93- *
94- * It's an error if the clock controller node referenced by the
95- * phandle in node_id's clocks property at index "idx" has no label
96- * property.
97- *
98- * Example devicetree fragment:
99- *
100- * clk1: clock-controller@... {
101- * label = "CLK_1";
102- * };
103- *
104- * clk2: clock-controller@... {
105- * label = "CLK_2";
106- * };
107- *
108- * n: node {
109- * clocks = <&clk1 10 20>, <&clk2 30 40>;
110- * };
111- *
112- * Example usage:
113- *
114- * DT_CLOCKS_LABEL_BY_IDX(DT_NODELABEL(n), 1) // "CLK_2"
115- *
116- * @param node_id node identifier for a node with a clocks property
117- * @param idx logical index into clocks property
118- * @return the label property of the node referenced at index "idx"
119- * @see DT_PROP_BY_PHANDLE_IDX()
120- */
121- #define DT_CLOCKS_LABEL_BY_IDX (node_id , idx ) \
122- __DEPRECATED_MACRO \
123- DT_PROP_BY_PHANDLE_IDX(node_id, clocks, idx, label)
124-
125- /**
126- * @brief Get a label property from a clocks property by name
127- *
128- * It's an error if the clock controller node referenced by the
129- * phandle in node_id's clocks property at the element named "name"
130- * has no label property.
131- *
132- * Example devicetree fragment:
133- *
134- * clk1: clock-controller@... {
135- * label = "CLK_1";
136- * };
137- *
138- * clk2: clock-controller@... {
139- * label = "CLK_2";
140- * };
141- *
142- * n: node {
143- * clocks = <&clk1 10 20>, <&clk2 30 40>;
144- * clock-names = "alpha", "beta";
145- * };
146- *
147- * Example usage:
148- *
149- * DT_CLOCKS_LABEL_BY_NAME(DT_NODELABEL(n), beta) // "CLK_2"
150- *
151- * @param node_id node identifier for a node with a clocks property
152- * @param name lowercase-and-underscores name of a clocks element
153- * as defined by the node's clock-names property
154- * @return the label property of the node referenced at the named element
155- * @see DT_PHANDLE_BY_NAME()
156- */
157- #define DT_CLOCKS_LABEL_BY_NAME (node_id , name ) \
158- __DEPRECATED_MACRO \
159- DT_PROP(DT_PHANDLE_BY_NAME(node_id, clocks, name), label)
160-
161- /**
162- * @brief Equivalent to DT_CLOCKS_LABEL_BY_IDX(node_id, 0)
163- * @param node_id node identifier for a node with a clocks property
164- * @return the label property of the node referenced at index 0
165- * @see DT_CLOCKS_LABEL_BY_IDX()
166- */
167- #define DT_CLOCKS_LABEL (node_id ) __DEPRECATED_MACRO DT_CLOCKS_LABEL_BY_IDX(node_id, 0)
168-
16990/**
17091 * @brief Get a clock specifier's cell value at an index
17192 *
@@ -281,39 +202,6 @@ extern "C" {
281202#define DT_INST_CLOCKS_CTLR_BY_NAME (inst , name ) \
282203 DT_CLOCKS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
283204
284- /**
285- * @brief Get a label property from a DT_DRV_COMPAT instance's clocks
286- * property at an index
287- * @param inst DT_DRV_COMPAT instance number
288- * @param idx logical index into clocks property
289- * @return the label property of the node referenced at index "idx"
290- * @see DT_CLOCKS_LABEL_BY_IDX()
291- */
292- #define DT_INST_CLOCKS_LABEL_BY_IDX (inst , idx ) \
293- __DEPRECATED_MACRO \
294- DT_CLOCKS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
295-
296- /**
297- * @brief Get a label property from a DT_DRV_COMPAT instance's clocks
298- * property by name
299- * @param inst DT_DRV_COMPAT instance number
300- * @param name lowercase-and-underscores name of a clocks element
301- * as defined by the node's clock-names property
302- * @return the label property of the node referenced at the named element
303- * @see DT_CLOCKS_LABEL_BY_NAME()
304- */
305- #define DT_INST_CLOCKS_LABEL_BY_NAME (inst , name ) \
306- __DEPRECATED_MACRO \
307- DT_CLOCKS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
308-
309- /**
310- * @brief Equivalent to DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0)
311- * @param inst DT_DRV_COMPAT instance number
312- * @return the label property of the node referenced at index 0
313- * @see DT_CLOCKS_LABEL_BY_IDX()
314- */
315- #define DT_INST_CLOCKS_LABEL (inst ) DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0) __DEPRECATED_MACRO
316-
317205/**
318206 * @brief Get a DT_DRV_COMPAT instance's clock specifier's cell value
319207 * at an index
0 commit comments