Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property

1 // SPDX-License-Identifier: GPL-2.0+
3 * drivers/of/property.c - Procedures for accessing and interpreting
7 * file contains the OF property as well as the OF graph interface
11 * Copyright (C) 1996-2005 Paul Mackerras.
35 * of_graph_is_present() - check graph's presence
36 * @node: pointer to device_node containing graph port
38 * Return: True if @node has a port or ports (with a port) sub-node,
41 bool of_graph_is_present(const struct device_node *node) in of_graph_is_present() argument
45 ports = of_get_child_by_name(node, "ports"); in of_graph_is_present()
47 node = ports; in of_graph_is_present()
49 port = of_get_child_by_name(node, "port"); in of_graph_is_present()
58 * of_property_count_elems_of_size - Count the number of elements in a property
60 * @np: device node from which the property value is to be read.
61 * @propname: name of the property to be searched.
64 * Search for a property in a device node and count the number of elements of
67 * Return: The number of elements on sucess, -EINVAL if the property does not
68 * exist or its length does not match a multiple of elem_size and -ENODATA if
69 * the property does not have a value.
74 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
77 return -EINVAL; in of_property_count_elems_of_size()
78 if (!prop->value) in of_property_count_elems_of_size()
79 return -ENODATA; in of_property_count_elems_of_size()
81 if (prop->length % elem_size != 0) { in of_property_count_elems_of_size()
82 pr_err("size of %s in node %pOF is not a multiple of %d\n", in of_property_count_elems_of_size()
84 return -EINVAL; in of_property_count_elems_of_size()
87 return prop->length / elem_size; in of_property_count_elems_of_size()
94 * @np: device node from which the property value is to be read.
95 * @propname: name of the property to be searched.
96 * @min: minimum allowed length of property value
97 * @max: maximum allowed length of property value (0 means unlimited)
100 * Search for a property in a device node and valid the requested size.
102 * Return: The property value on success, -EINVAL if the property does not
103 * exist, -ENODATA if property does not have a value, and -EOVERFLOW if the
104 * property data is too small or too large.
110 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
113 return ERR_PTR(-EINVAL); in of_find_property_value_of_size()
114 if (!prop->value) in of_find_property_value_of_size()
115 return ERR_PTR(-ENODATA); in of_find_property_value_of_size()
116 if (prop->length < min) in of_find_property_value_of_size()
117 return ERR_PTR(-EOVERFLOW); in of_find_property_value_of_size()
118 if (max && prop->length > max) in of_find_property_value_of_size()
119 return ERR_PTR(-EOVERFLOW); in of_find_property_value_of_size()
122 *len = prop->length; in of_find_property_value_of_size()
124 return prop->value; in of_find_property_value_of_size()
128 * of_property_read_u32_index - Find and read a u32 from a multi-value property.
130 * @np: device node from which the property value is to be read.
131 * @propname: name of the property to be searched.
135 * Search for a property in a device node and read nth 32-bit value from
138 * Return: 0 on success, -EINVAL if the property does not exist,
139 * -ENODATA if property does not have a value, and -EOVERFLOW if the
140 * property data isn't large enough.
142 * The out_value is modified only if a valid u32 value can be decoded.
162 * of_property_read_u64_index - Find and read a u64 from a multi-value property.
164 * @np: device node from which the property value is to be read.
165 * @propname: name of the property to be searched.
169 * Search for a property in a device node and read nth 64-bit value from
172 * Return: 0 on success, -EINVAL if the property does not exist,
173 * -ENODATA if property does not have a value, and -EOVERFLOW if the
174 * property data isn't large enough.
176 * The out_value is modified only if a valid u64 value can be decoded.
195 * of_property_read_variable_u8_array - Find and read an array of u8 from a
196 * property, with bounds on the minimum and maximum array size.
198 * @np: device node from which the property value is to be read.
199 * @propname: name of the property to be searched.
206 * Search for a property in a device node and read 8-bit value(s) from
210 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
212 * Return: The number of elements read on success, -EINVAL if the property
213 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
214 * if the property data is smaller than sz_min or longer than sz_max.
216 * The out_values is modified only if a valid u8 value can be decoded.
237 while (count--) in of_property_read_variable_u8_array()
245 * of_property_read_variable_u16_array - Find and read an array of u16 from a
246 * property, with bounds on the minimum and maximum array size.
248 * @np: device node from which the property value is to be read.
249 * @propname: name of the property to be searched.
256 * Search for a property in a device node and read 16-bit value(s) from
260 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
262 * Return: The number of elements read on success, -EINVAL if the property
263 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
264 * if the property data is smaller than sz_min or longer than sz_max.
266 * The out_values is modified only if a valid u16 value can be decoded.
287 while (count--) in of_property_read_variable_u16_array()
295 * of_property_read_variable_u32_array - Find and read an array of 32 bit
296 * integers from a property, with bounds on the minimum and maximum array size.
298 * @np: device node from which the property value is to be read.
299 * @propname: name of the property to be searched.
306 * Search for a property in a device node and read 32-bit value(s) from
309 * Return: The number of elements read on success, -EINVAL if the property
310 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
311 * if the property data is smaller than sz_min or longer than sz_max.
313 * The out_values is modified only if a valid u32 value can be decoded.
334 while (count--) in of_property_read_variable_u32_array()
342 * of_property_read_u64 - Find and read a 64 bit integer from a property
343 * @np: device node from which the property value is to be read.
344 * @propname: name of the property to be searched.
347 * Search for a property in a device node and read a 64-bit value from
350 * Return: 0 on success, -EINVAL if the property does not exist,
351 * -ENODATA if property does not have a value, and -EOVERFLOW if the
352 * property data isn't large enough.
354 * The out_value is modified only if a valid u64 value can be decoded.
373 * of_property_read_variable_u64_array - Find and read an array of 64 bit
374 * integers from a property, with bounds on the minimum and maximum array size.
376 * @np: device node from which the property value is to be read.
377 * @propname: name of the property to be searched.
384 * Search for a property in a device node and read 64-bit value(s) from
387 * Return: The number of elements read on success, -EINVAL if the property
388 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
389 * if the property data is smaller than sz_min or longer than sz_max.
391 * The out_values is modified only if a valid u64 value can be decoded.
412 while (count--) { in of_property_read_variable_u64_array()
422 * of_property_read_string - Find and read a string from a property
423 * @np: device node from which the property value is to be read.
424 * @propname: name of the property to be searched.
428 * Search for a property in a device tree node and retrieve a null
429 * terminated string value (pointer to data, not a copy).
431 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
432 * property does not have a value, and -EILSEQ if the string is not
433 * null-terminated within the length of the property data.
435 * Note that the empty string "" has length of 1, thus -ENODATA cannot
438 * The out_string pointer is modified only if a valid string can be decoded.
443 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string()
445 return -EINVAL; in of_property_read_string()
446 if (!prop->length) in of_property_read_string()
447 return -ENODATA; in of_property_read_string()
448 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string()
449 return -EILSEQ; in of_property_read_string()
450 *out_string = prop->value; in of_property_read_string()
456 * of_property_match_string() - Find string in a list and return index
457 * @np: pointer to node containing string list property
458 * @propname: string list property name
461 * This function searches a string list property and returns the index
462 * of a specific string value.
467 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string()
473 return -EINVAL; in of_property_match_string()
474 if (!prop->value) in of_property_match_string()
475 return -ENODATA; in of_property_match_string()
477 p = prop->value; in of_property_match_string()
478 end = p + prop->length; in of_property_match_string()
481 l = strnlen(p, end - p) + 1; in of_property_match_string()
483 return -EILSEQ; in of_property_match_string()
488 return -ENODATA; in of_property_match_string()
493 * of_property_read_string_helper() - Utility helper for parsing string properties
494 * @np: device node from which the property value is to be read.
495 * @propname: name of the property to be searched.
500 * Don't call this function directly. It is a utility helper for the
507 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper()
512 return -EINVAL; in of_property_read_string_helper()
513 if (!prop->value) in of_property_read_string_helper()
514 return -ENODATA; in of_property_read_string_helper()
515 p = prop->value; in of_property_read_string_helper()
516 end = p + prop->length; in of_property_read_string_helper()
519 l = strnlen(p, end - p) + 1; in of_property_read_string_helper()
521 return -EILSEQ; in of_property_read_string_helper()
525 i -= skip; in of_property_read_string_helper()
526 return i <= 0 ? -ENODATA : i; in of_property_read_string_helper()
530 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32()
539 curv = prop->value; in of_prop_next_u32()
544 if (curv >= prop->value + prop->length) in of_prop_next_u32()
553 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string()
561 return prop->value; in of_prop_next_string()
564 if (curv >= prop->value + prop->length) in of_prop_next_string()
572 * of_graph_parse_endpoint() - parse common endpoint node properties
573 * @node: pointer to endpoint device_node
576 * The caller should hold a reference to @node.
578 int of_graph_parse_endpoint(const struct device_node *node, in of_graph_parse_endpoint() argument
581 struct device_node *port_node = of_get_parent(node); in of_graph_parse_endpoint()
583 WARN_ONCE(!port_node, "%s(): endpoint %pOF has no parent node\n", in of_graph_parse_endpoint()
584 __func__, node); in of_graph_parse_endpoint()
588 endpoint->local_node = node; in of_graph_parse_endpoint()
593 of_property_read_u32(port_node, "reg", &endpoint->port); in of_graph_parse_endpoint()
594 of_property_read_u32(node, "reg", &endpoint->id); in of_graph_parse_endpoint()
603 * of_graph_get_port_by_id() - get the port matching a given id
604 * @parent: pointer to the parent device node
607 * Return: A 'port' node pointer with refcount incremented. The caller
612 struct device_node *node, *port; in of_graph_get_port_by_id() local
614 node = of_get_child_by_name(parent, "ports"); in of_graph_get_port_by_id()
615 if (node) in of_graph_get_port_by_id()
616 parent = node; in of_graph_get_port_by_id()
628 of_node_put(node); in of_graph_get_port_by_id()
635 * of_graph_get_next_endpoint() - get next endpoint node
636 * @parent: pointer to the parent device node
637 * @prev: previous endpoint node, or NULL to get first
639 * Return: An 'endpoint' node pointer with refcount incremented. Refcount
640 * of the passed @prev node is decremented.
652 * Start by locating the port node. If no previous endpoint is specified in of_graph_get_next_endpoint()
653 * search for the first port node, otherwise get the previous endpoint in of_graph_get_next_endpoint()
654 * parent port node. in of_graph_get_next_endpoint()
657 struct device_node *node; in of_graph_get_next_endpoint() local
659 node = of_get_child_by_name(parent, "ports"); in of_graph_get_next_endpoint()
660 if (node) in of_graph_get_next_endpoint()
661 parent = node; in of_graph_get_next_endpoint()
664 of_node_put(node); in of_graph_get_next_endpoint()
667 pr_err("graph: no port node found in %pOF\n", parent); in of_graph_get_next_endpoint()
672 if (WARN_ONCE(!port, "%s(): endpoint %pOF has no parent node\n", in of_graph_get_next_endpoint()
679 * Now that we have a port node, get the next endpoint by in of_graph_get_next_endpoint()
680 * getting the next child. If the previous endpoint is NULL this in of_graph_get_next_endpoint()
681 * will return the first child. in of_graph_get_next_endpoint()
702 * of_graph_get_endpoint_by_regs() - get endpoint node of specific identifiers
703 * @parent: pointer to the parent device node
704 * @port_reg: identifier (value of reg property) of the parent port node
705 * @reg: identifier (value of reg property) of the endpoint node
707 * Return: An 'endpoint' node pointer which is identified by reg and at the same
708 * is the child of a port node identified by port_reg. reg and port_reg are
709 * ignored when they are -1. Use of_node_put() on the pointer when done.
715 struct device_node *node = NULL; in of_graph_get_endpoint_by_regs() local
717 for_each_endpoint_of_node(parent, node) { in of_graph_get_endpoint_by_regs()
718 of_graph_parse_endpoint(node, &endpoint); in of_graph_get_endpoint_by_regs()
719 if (((port_reg == -1) || (endpoint.port == port_reg)) && in of_graph_get_endpoint_by_regs()
720 ((reg == -1) || (endpoint.id == reg))) in of_graph_get_endpoint_by_regs()
721 return node; in of_graph_get_endpoint_by_regs()
729 * of_graph_get_remote_endpoint() - get remote endpoint node
730 * @node: pointer to a local endpoint device_node
732 * Return: Remote endpoint node associated with remote endpoint node linked
733 * to @node. Use of_node_put() on it when done.
735 struct device_node *of_graph_get_remote_endpoint(const struct device_node *node) in of_graph_get_remote_endpoint() argument
737 /* Get remote endpoint node. */ in of_graph_get_remote_endpoint()
738 return of_parse_phandle(node, "remote-endpoint", 0); in of_graph_get_remote_endpoint()
743 * of_graph_get_port_parent() - get port's parent node
744 * @node: pointer to a local endpoint device_node
746 * Return: device node associated with endpoint node linked
747 * to @node. Use of_node_put() on it when done.
749 struct device_node *of_graph_get_port_parent(struct device_node *node) in of_graph_get_port_parent() argument
753 if (!node) in of_graph_get_port_parent()
757 * Preserve usecount for passed in node as of_get_next_parent() in of_graph_get_port_parent()
760 of_node_get(node); in of_graph_get_port_parent()
762 /* Walk 3 levels up only if there is 'ports' node. */ in of_graph_get_port_parent()
763 for (depth = 3; depth && node; depth--) { in of_graph_get_port_parent()
764 node = of_get_next_parent(node); in of_graph_get_port_parent()
765 if (depth == 2 && !of_node_name_eq(node, "ports")) in of_graph_get_port_parent()
768 return node; in of_graph_get_port_parent()
773 * of_graph_get_remote_port_parent() - get remote port's parent node
774 * @node: pointer to a local endpoint device_node
776 * Return: Remote device node associated with remote endpoint node linked
777 * to @node. Use of_node_put() on it when done.
780 const struct device_node *node) in of_graph_get_remote_port_parent() argument
784 /* Get remote endpoint node. */ in of_graph_get_remote_port_parent()
785 np = of_graph_get_remote_endpoint(node); in of_graph_get_remote_port_parent()
796 * of_graph_get_remote_port() - get remote port node
797 * @node: pointer to a local endpoint device_node
799 * Return: Remote port node associated with remote endpoint node linked
800 * to @node. Use of_node_put() on it when done.
802 struct device_node *of_graph_get_remote_port(const struct device_node *node) in of_graph_get_remote_port() argument
806 /* Get remote endpoint node. */ in of_graph_get_remote_port()
807 np = of_graph_get_remote_endpoint(node); in of_graph_get_remote_port()
827 * of_graph_get_remote_node() - get remote parent device_node for given port/endpoint
828 * @node: pointer to parent device_node containing graph port/endpoint
829 * @port: identifier (value of reg property) of the parent port node
830 * @endpoint: identifier (value of reg property) of the endpoint node
832 * Return: Remote device node associated with remote endpoint node linked
833 * to @node. Use of_node_put() on it when done.
835 struct device_node *of_graph_get_remote_node(const struct device_node *node, in of_graph_get_remote_node() argument
840 endpoint_node = of_graph_get_endpoint_by_regs(node, port, endpoint); in of_graph_get_remote_node()
842 pr_debug("no valid endpoint (%d, %d) for node %pOF\n", in of_graph_get_remote_node()
843 port, endpoint, node); in of_graph_get_remote_node()
850 pr_debug("no valid remote node\n"); in of_graph_get_remote_node()
855 pr_debug("not available for remote node\n"); in of_graph_get_remote_node()
904 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array() local
907 return of_property_count_elems_of_size(node, propname, in of_fwnode_property_read_int_array()
912 return of_property_read_u8_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
914 return of_property_read_u16_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
916 return of_property_read_u32_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
918 return of_property_read_u64_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
921 return -ENXIO; in of_fwnode_property_read_int_array()
929 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array() local
932 of_property_read_string_array(node, propname, val, nval) : in of_fwnode_property_read_string_array()
933 of_property_count_strings(node, propname); in of_fwnode_property_read_string_array()
938 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name()
944 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix()
958 struct fwnode_handle *child) in of_fwnode_get_next_child_node() argument
961 to_of_node(child))); in of_fwnode_get_next_child_node()
968 const struct device_node *node = to_of_node(fwnode); in of_fwnode_get_named_child_node() local
969 struct device_node *child; in of_fwnode_get_named_child_node() local
971 for_each_available_child_of_node(node, child) in of_fwnode_get_named_child_node()
972 if (of_node_name_eq(child, childname)) in of_fwnode_get_named_child_node()
973 return of_fwnode_handle(child); in of_fwnode_get_named_child_node()
1001 args->nargs = of_args.args_count; in of_fwnode_get_reference_args()
1002 args->fwnode = of_fwnode_handle(of_args.np); in of_fwnode_get_reference_args()
1005 args->args[i] = i < of_args.args_count ? of_args.args[i] : 0; in of_fwnode_get_reference_args()
1035 /* Is this the "ports" node? If not, it's the port parent. */ in of_fwnode_graph_get_port_parent()
1045 const struct device_node *node = to_of_node(fwnode); in of_fwnode_graph_parse_endpoint() local
1046 struct device_node *port_node = of_get_parent(node); in of_fwnode_graph_parse_endpoint()
1048 endpoint->local_fwnode = fwnode; in of_fwnode_graph_parse_endpoint()
1050 of_property_read_u32(port_node, "reg", &endpoint->port); in of_fwnode_graph_parse_endpoint()
1051 of_property_read_u32(node, "reg", &endpoint->id); in of_fwnode_graph_parse_endpoint()
1086 struct device_node *parent, *node; in of_get_compat_node_parent() local
1089 node = of_get_compat_node(parent); in of_get_compat_node_parent()
1092 return node; in of_get_compat_node_parent()
1102 if (of_fwnode_handle(tmp_np)->dev) { in of_link_to_phandle()
1119 * parse_prop_cells - Property parsing function for suppliers
1121 * @np: Pointer to device tree node containing a list
1122 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1123 * @index: For properties holding a list of phandles, this is the index
1125 * @list_name: Property name that is known to contain list of phandle(s) to
1127 * @cells_name: property name that specifies phandles' arguments count
1129 * This is a helper function to parse properties that have a known fixed name
1130 * and are a list of phandles and phandle arguments.
1133 * - phandle node pointer with refcount incremented. Caller must of_node_put()
1135 * - NULL if no phandle found at index
1168 return -1; in strcmp_suffix()
1169 return strcmp(str + len - suffix_len, suffix); in strcmp_suffix()
1173 * parse_suffix_prop_cells - Suffix property parsing function for suppliers
1175 * @np: Pointer to device tree node containing a list
1176 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1177 * @index: For properties holding a list of phandles, this is the index
1179 * @suffix: Property suffix that is known to contain list of phandle(s) to
1181 * @cells_name: property name that specifies phandles' arguments count
1183 * This is a helper function to parse properties that have a known fixed suffix
1184 * and are a list of phandles and phandle arguments.
1187 * - phandle node pointer with refcount incremented. Caller must of_node_put()
1189 * - NULL if no phandle found at index
1216 * struct supplier_bindings - Property parsing functions for suppliers
1219 * parse_prop() finds the node corresponding to a supplier phandle
1220 * @parse_prop.np: Pointer to device node holding supplier phandle property
1221 * @parse_prop.prop_name: Name of property holding a phandle value
1222 * @parse_prop.index: For properties holding a list of phandles, this is the
1224 * @optional: Describes whether a supplier is mandatory or not
1225 * @node_not_dev: The consumer node containing the property is never converted
1226 * to a struct device. Instead, parse ancestor nodes for the
1227 * compatible property to find a node corresponding to a device.
1231 * - phandle node pointer with refcount incremented. Caller must of_node_put()
1233 * - NULL if no phandle found at index
1242 DEFINE_SIMPLE_PROP(clocks, "clocks", "#clock-cells")
1243 DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells")
1244 DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells")
1245 DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells")
1246 DEFINE_SIMPLE_PROP(io_channels, "io-channel", "#io-channel-cells")
1247 DEFINE_SIMPLE_PROP(interrupt_parent, "interrupt-parent", NULL)
1248 DEFINE_SIMPLE_PROP(dmas, "dmas", "#dma-cells")
1249 DEFINE_SIMPLE_PROP(power_domains, "power-domains", "#power-domain-cells")
1250 DEFINE_SIMPLE_PROP(hwlocks, "hwlocks", "#hwlock-cells")
1252 DEFINE_SIMPLE_PROP(nvmem_cells, "nvmem-cells", "#nvmem-cell-cells")
1253 DEFINE_SIMPLE_PROP(phys, "phys", "#phy-cells")
1254 DEFINE_SIMPLE_PROP(wakeup_parent, "wakeup-parent", NULL)
1255 DEFINE_SIMPLE_PROP(pinctrl0, "pinctrl-0", NULL)
1256 DEFINE_SIMPLE_PROP(pinctrl1, "pinctrl-1", NULL)
1257 DEFINE_SIMPLE_PROP(pinctrl2, "pinctrl-2", NULL)
1258 DEFINE_SIMPLE_PROP(pinctrl3, "pinctrl-3", NULL)
1259 DEFINE_SIMPLE_PROP(pinctrl4, "pinctrl-4", NULL)
1260 DEFINE_SIMPLE_PROP(pinctrl5, "pinctrl-5", NULL)
1261 DEFINE_SIMPLE_PROP(pinctrl6, "pinctrl-6", NULL)
1262 DEFINE_SIMPLE_PROP(pinctrl7, "pinctrl-7", NULL)
1263 DEFINE_SIMPLE_PROP(pinctrl8, "pinctrl-8", NULL)
1264 DEFINE_SIMPLE_PROP(remote_endpoint, "remote-endpoint", NULL)
1265 DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells")
1266 DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
1270 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
1271 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
1276 if (!strcmp_suffix(prop_name, ",nr-gpios")) in parse_gpios()
1279 return parse_suffix_prop_cells(np, prop_name, index, "-gpios", in parse_gpios()
1280 "#gpio-cells"); in parse_gpios()
1286 if (strcmp(prop_name, "iommu-map")) in parse_iommu_maps()
1301 * Ignore node with gpio-hog property since its gpios are all provided in parse_gpio_compat()
1304 if (of_property_read_bool(np, "gpio-hog")) in parse_gpio_compat()
1307 if (of_parse_phandle_with_args(np, prop_name, "#gpio-cells", index, in parse_gpio_compat()
1323 strcmp(prop_name, "interrupts-extended")) in parse_interrupts()
1368 * of_link_property - Create device links to suppliers listed in a property
1369 * @con_np: The consumer device tree node which contains the property
1370 * @prop_name: Name of property to be parsed
1372 * This function checks if the property @prop_name that is present in the
1373 * @con_np device tree node is one of the known common device tree bindings
1378 * consumer device tree node @con_np to all the suppliers device tree nodes
1381 * Any failed attempt to create a fwnode link will NOT result in an immediate
1383 * device tree nodes even when attempts to create a link to one or more
1394 while (!matched && s->parse_prop) { in of_link_property()
1395 if (s->optional && !fw_devlink_is_strict()) { in of_link_property()
1400 while ((phandle = s->parse_prop(con_np, prop_name, i))) { in of_link_property()
1403 con_dev_np = s->node_not_dev in of_link_property()
1434 struct property *p; in of_fwnode_add_links()
1441 return -EINVAL; in of_fwnode_add_links()
1444 of_link_property(con_np, p->name); in of_fwnode_add_links()