Lines Matching defs:node
164 int node, err;
167 * If the arch timer DT node has an explicit clock-frequency property
170 node = fdt_node_offset_by_compatible(fdt, 0, "arm,armv8-timer");
171 if (node >= 0) {
174 err = fdt_read_uint32(fdt, node, "clock-frequency", &freq);
180 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011");
181 if (node >= 0) {
185 err = fdt_get_reg_props_by_index(fdt, node, 0,
202 WARN("No PL011 DT node\n");
205 /* No PL011 DT node or calculation failed. */
222 int node, err;
224 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011");
225 if (node < 0) {
226 WARN("%s(): No PL011 DT node found\n", __func__);
231 err = fdt_read_uint32(fdt, node, "clocks", &phandle);
238 node = fdt_node_offset_by_phandle(fdt, phandle);
239 if (node < 0) {
245 err = fdt_setprop_inplace(fdt, node,
322 WARN("Failed to add reserved memory node to DT\n");
346 WARN("Not overwriting already existing /cpus node in DTB\n");
349 ERROR("Error %d creating the /cpus DT node\n", err);
360 ERROR("Error %d fixing up GIC DT node\n", err);
367 /* Check whether we support the SPE PMU. Remove the DT node if not. */
369 int node = fdt_node_offset_by_compatible(fdt, 0,
372 if (node >= 0) {
373 fdt_del_node(fdt, node);
377 /* Check whether we have an ITS. Remove the DT node if not. */
379 int node = fdt_node_offset_by_compatible(fdt, 0,
382 if (node >= 0) {
383 fdt_del_node(fdt, node);