Lines Matching +full:device +full:- +full:tree
4 * libfdt - Flat Device Tree manipulation
23 * MA 02110-1301 USA
67 /* FDT_ERR_NOSPACE: Operation needed to expand the device
68 * tree, but its buffer did not have sufficient space to
69 * contain the expanded tree. Use fdt_open_into() to move the
70 * device tree to a buffer with more space. */
75 * offset which is out-of-bounds, or which points to an
84 * length, or the phandle value was either 0 or -1, which are
87 /* FDT_ERR_BADSTATE: Function was passed an incomplete device
88 * tree created by the sequential-write functions, which is
91 /* Error codes: codes for bad device tree blobs */
93 /* FDT_ERR_TRUNCATED: Structure block of the given device tree
96 /* FDT_ERR_BADMAGIC: Given "device tree" appears not to be a
97 * device tree at all - it is missing the flattened device
98 * tree magic number. */
100 /* FDT_ERR_BADVERSION: Given device tree has a version which
102 * read-write functions, this may mean that fdt_open_into() is
103 * required to convert the tree to the expected version. */
105 /* FDT_ERR_BADSTRUCTURE: Given device tree has a corrupt
109 /* FDT_ERR_BADLAYOUT: For read-write functions, the given
110 * device tree has it's sub-blocks in an order that the
112 * then strings). Use fdt_open_into() to reorganize the tree
113 * into a form suitable for the read-write operations. */
121 /* Errors in device tree content */
123 /* FDT_ERR_BADNCELLS: Device tree has a #address-cells, #size-cells
127 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
129 * is not NUL-terminated within the length of its value. */
132 /* FDT_ERR_BADOVERLAY: The device tree overlay, while
137 /* FDT_ERR_NOPHANDLES: The device tree doesn't have any
143 /* Low-level functions (you probably don't need these) */
163 * fdt_first_subnode() - get offset of first direct subnode
167 * @return offset of first subnode, or -FDT_ERR_NOTFOUND if there is none
172 * fdt_next_subnode() - get offset of next direct subnode
179 * @return offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more
185 * fdt_for_each_subnode - iterate over all subnodes of a parent
198 * if ((node < 0) && (node != -FDT_ERR_NOT_FOUND)) {
216 (fdt32_to_cpu(((const struct fdt_header *)(fdt))->field))
232 fdth->name = cpu_to_fdt32(val); \
247 * fdt_check_header - sanity check a device tree or possible device tree
248 * @fdt: pointer to data which might be a flattened device tree
251 * appears to be a flattened device tree with sane information in its
255 * 0, if the buffer appears to contain a valid device tree
256 * -FDT_ERR_BADMAGIC,
257 * -FDT_ERR_BADVERSION,
258 * -FDT_ERR_BADSTATE, standard meanings, as above
263 * fdt_move - move a device tree around in memory
264 * @fdt: pointer to the device tree to move
265 * @buf: pointer to memory where the device is to be moved
268 * fdt_move() relocates, if possible, the device tree blob located at
270 * with the existing device tree blob at fdt. Therefore,
276 * -FDT_ERR_NOSPACE, bufsize is insufficient to contain the device tree
277 * -FDT_ERR_BADMAGIC,
278 * -FDT_ERR_BADVERSION,
279 * -FDT_ERR_BADSTATE, standard meanings
284 /* Read-only functions */
288 * fdt_string - retrieve a string from the strings block of a device tree
289 * @fdt: pointer to the device tree blob
293 * strings block of the device tree blob at fdt.
302 * fdt_get_max_phandle - retrieves the highest phandle in a tree
303 * @fdt: pointer to the device tree blob
306 * device tree. This will ignore badly formatted phandles, or phandles
307 * with a value of 0 or -1.
311 * 0, if no phandle was found in the device tree
312 * -1, if an error occurred
317 * fdt_num_mem_rsv - retrieve the number of memory reserve map entries
318 * @fdt: pointer to the device tree blob
320 * Returns the number of entries in the device tree blob's memory
330 * fdt_get_mem_rsv - retrieve one memory reserve map entry
331 * @fdt: pointer to the device tree blob
332 * @address, @size: pointers to 64-bit variables
335 * the n-th reserve map entry from the device tree blob, in
336 * native-endian format.
340 * -FDT_ERR_BADMAGIC,
341 * -FDT_ERR_BADVERSION,
342 * -FDT_ERR_BADSTATE, standard meanings
347 * fdt_subnode_offset_namelen - find a subnode based on substring
348 * @fdt: pointer to the device tree blob
363 * fdt_subnode_offset - find a subnode of a given node
364 * @fdt: pointer to the device tree blob
377 * -FDT_ERR_NOTFOUND, if the requested subnode does not exist
378 * -FDT_ERR_BADOFFSET, if parentoffset did not point to an FDT_BEGIN_NODE
380 * -FDT_ERR_BADMAGIC,
381 * -FDT_ERR_BADVERSION,
382 * -FDT_ERR_BADSTATE,
383 * -FDT_ERR_BADSTRUCTURE,
384 * -FDT_ERR_TRUNCATED, standard meanings.
389 * fdt_path_offset_namelen - find a tree node by its full path
390 * @fdt: pointer to the device tree blob
402 * fdt_path_offset - find a tree node by its full path
403 * @fdt: pointer to the device tree blob
406 * fdt_path_offset() finds a node of a given path in the device tree.
416 * -FDT_ERR_BADPATH, given path does not begin with '/' or is invalid
417 * -FDT_ERR_NOTFOUND, if the requested node does not exist
418 * -FDT_ERR_BADMAGIC,
419 * -FDT_ERR_BADVERSION,
420 * -FDT_ERR_BADSTATE,
421 * -FDT_ERR_BADSTRUCTURE,
422 * -FDT_ERR_TRUNCATED, standard meanings.
427 * fdt_get_name - retrieve the name of a given node
428 * @fdt: pointer to the device tree blob
433 * device tree node at structure block offset nodeoffset. If lenp is
434 * non-NULL, the length of this name is also returned, in the integer
439 * If lenp is non-NULL, *lenp contains the length of that name
442 * if lenp is non-NULL *lenp contains an error code (<0):
443 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
445 * -FDT_ERR_BADMAGIC,
446 * -FDT_ERR_BADVERSION,
447 * -FDT_ERR_BADSTATE, standard meanings
452 * fdt_first_property_offset - find the offset of a node's first property
453 * @fdt: pointer to the device tree blob
461 * -FDT_ERR_NOTFOUND, if the requested node has no properties
462 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
463 * -FDT_ERR_BADMAGIC,
464 * -FDT_ERR_BADVERSION,
465 * -FDT_ERR_BADSTATE,
466 * -FDT_ERR_BADSTRUCTURE,
467 * -FDT_ERR_TRUNCATED, standard meanings.
472 * fdt_next_property_offset - step through a node's properties
473 * @fdt: pointer to the device tree blob
482 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
483 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
484 * -FDT_ERR_BADMAGIC,
485 * -FDT_ERR_BADVERSION,
486 * -FDT_ERR_BADSTATE,
487 * -FDT_ERR_BADSTRUCTURE,
488 * -FDT_ERR_TRUNCATED, standard meanings.
493 * fdt_for_each_property_offset - iterate over all properties of a node
506 * if ((property < 0) && (property != -FDT_ERR_NOT_FOUND)) {
520 * fdt_get_property_by_offset - retrieve the property at a given offset
521 * @fdt: pointer to the device tree blob
526 * fdt_property structure within the device tree blob at the given
527 * offset. If lenp is non-NULL, the length of the property value is
532 * if lenp is non-NULL, *lenp contains the length of the property
535 * if lenp is non-NULL, *lenp contains an error code (<0):
536 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
537 * -FDT_ERR_BADMAGIC,
538 * -FDT_ERR_BADVERSION,
539 * -FDT_ERR_BADSTATE,
540 * -FDT_ERR_BADSTRUCTURE,
541 * -FDT_ERR_TRUNCATED, standard meanings
548 * fdt_get_property_namelen - find a property based on substring
549 * @fdt: pointer to the device tree blob
566 * fdt_get_property - find a given property in a given node
567 * @fdt: pointer to the device tree blob
573 * structure within the device tree blob corresponding to the property
575 * non-NULL, the length of the property value is also returned, in the
580 * if lenp is non-NULL, *lenp contains the length of the property
583 * if lenp is non-NULL, *lenp contains an error code (<0):
584 * -FDT_ERR_NOTFOUND, node does not have named property
585 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
587 * -FDT_ERR_BADMAGIC,
588 * -FDT_ERR_BADVERSION,
589 * -FDT_ERR_BADSTATE,
590 * -FDT_ERR_BADSTRUCTURE,
591 * -FDT_ERR_TRUNCATED, standard meanings
604 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
605 * @fdt: pointer to the device tree blob
612 * to within the device blob itself, not a copy of the value). If
613 * lenp is non-NULL, the length of the property value is also
614 * returned, in the integer pointed to by lenp. If namep is non-NULL,
616 * by namep (this will be a pointer to within the device tree's string
621 * if lenp is non-NULL, *lenp contains the length of the property
623 * if namep is non-NULL *namep contiains a pointer to the property
626 * if lenp is non-NULL, *lenp contains an error code (<0):
627 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
628 * -FDT_ERR_BADMAGIC,
629 * -FDT_ERR_BADVERSION,
630 * -FDT_ERR_BADSTATE,
631 * -FDT_ERR_BADSTRUCTURE,
632 * -FDT_ERR_TRUNCATED, standard meanings
640 * fdt_getprop_namelen - get property value based on substring
641 * @fdt: pointer to the device tree blob
663 * fdt_getprop - retrieve the value of a given property
664 * @fdt: pointer to the device tree blob
671 * pointer to within the device blob itself, not a copy of the value).
672 * If lenp is non-NULL, the length of the property value is also
677 * if lenp is non-NULL, *lenp contains the length of the property
680 * if lenp is non-NULL, *lenp contains an error code (<0):
681 * -FDT_ERR_NOTFOUND, node does not have named property
682 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
684 * -FDT_ERR_BADMAGIC,
685 * -FDT_ERR_BADVERSION,
686 * -FDT_ERR_BADSTATE,
687 * -FDT_ERR_BADSTRUCTURE,
688 * -FDT_ERR_TRUNCATED, standard meanings
699 * fdt_get_phandle - retrieve the phandle of a given node
700 * @fdt: pointer to the device tree blob
703 * fdt_get_phandle() retrieves the phandle of the device tree node at
707 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
713 * fdt_get_alias_namelen - get alias based on substring
714 * @fdt: pointer to the device tree blob
727 * fdt_get_alias - retrieve the path referenced by a given alias
728 * @fdt: pointer to the device tree blob
741 * fdt_get_path - determine the full path of a node
742 * @fdt: pointer to the device tree blob
750 * NOTE: This function is expensive, as it must scan the device tree
756 * nodeoffset, as a NUL-terminated string.
757 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
758 * -FDT_ERR_NOSPACE, the path of the given node is longer than (bufsize-1)
760 * -FDT_ERR_BADMAGIC,
761 * -FDT_ERR_BADVERSION,
762 * -FDT_ERR_BADSTATE,
763 * -FDT_ERR_BADSTRUCTURE, standard meanings
768 * fdt_supernode_atdepth_offset - find a specific ancestor of a node
769 * @fdt: pointer to the device tree blob
783 * NOTE: This function is expensive, as it must scan the device tree
789 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
790 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of
792 * -FDT_ERR_BADMAGIC,
793 * -FDT_ERR_BADVERSION,
794 * -FDT_ERR_BADSTATE,
795 * -FDT_ERR_BADSTRUCTURE, standard meanings
801 * fdt_node_depth - find the depth of a given node
802 * @fdt: pointer to the device tree blob
808 * NOTE: This function is expensive, as it must scan the device tree
813 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
814 * -FDT_ERR_BADMAGIC,
815 * -FDT_ERR_BADVERSION,
816 * -FDT_ERR_BADSTATE,
817 * -FDT_ERR_BADSTRUCTURE, standard meanings
822 * fdt_parent_offset - find the parent of a given node
823 * @fdt: pointer to the device tree blob
830 * NOTE: This function is expensive, as it must scan the device tree
836 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
837 * -FDT_ERR_BADMAGIC,
838 * -FDT_ERR_BADVERSION,
839 * -FDT_ERR_BADSTATE,
840 * -FDT_ERR_BADSTRUCTURE, standard meanings
845 * fdt_node_offset_by_prop_value - find nodes with a given property value
846 * @fdt: pointer to the device tree blob
855 * startoffset is -1, the very first such node in the tree.
859 * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
861 * while (offset != -FDT_ERR_NOTFOUND) {
867 * Note the -1 in the first call to the function, if 0 is used here
874 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
875 * tree after startoffset
876 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
877 * -FDT_ERR_BADMAGIC,
878 * -FDT_ERR_BADVERSION,
879 * -FDT_ERR_BADSTATE,
880 * -FDT_ERR_BADSTRUCTURE, standard meanings
887 * fdt_node_offset_by_phandle - find the node with a given phandle
888 * @fdt: pointer to the device tree blob
893 * in the tree with the given phandle (an invalid tree), results are
898 * -FDT_ERR_NOTFOUND, no node with that phandle exists
899 * -FDT_ERR_BADPHANDLE, given phandle value was invalid (0 or -1)
900 * -FDT_ERR_BADMAGIC,
901 * -FDT_ERR_BADVERSION,
902 * -FDT_ERR_BADSTATE,
903 * -FDT_ERR_BADSTRUCTURE, standard meanings
909 * @fdt: pointer to the device tree blob
910 * @nodeoffset: offset of a tree node
916 * it returns non-zero otherwise, or on error.
922 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
923 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
924 * -FDT_ERR_BADMAGIC,
925 * -FDT_ERR_BADVERSION,
926 * -FDT_ERR_BADSTATE,
927 * -FDT_ERR_BADSTRUCTURE, standard meanings
933 * fdt_node_offset_by_compatible - find nodes with a given 'compatible' value
934 * @fdt: pointer to the device tree blob
940 * lists the given compatible string; or if startoffset is -1, the
941 * very first such node in the tree.
945 * offset = fdt_node_offset_by_compatible(fdt, -1, compatible);
946 * while (offset != -FDT_ERR_NOTFOUND) {
951 * Note the -1 in the first call to the function, if 0 is used here
958 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
959 * tree after startoffset
960 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
961 * -FDT_ERR_BADMAGIC,
962 * -FDT_ERR_BADVERSION,
963 * -FDT_ERR_BADSTATE,
964 * -FDT_ERR_BADSTRUCTURE, standard meanings
970 * fdt_stringlist_contains - check a string list property for a string
976 * one or more strings, each terminated by \0, as is found in a device tree
984 * fdt_stringlist_count - count the number of strings in a string list
985 * @fdt: pointer to the device tree blob
986 * @nodeoffset: offset of a tree node
990 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
991 * -FDT_ERR_NOTFOUND if the property does not exist
996 * fdt_stringlist_search - find a string in a string list and return its index
997 * @fdt: pointer to the device tree blob
998 * @nodeoffset: offset of a tree node
1003 * that are not NUL-terminated. That's because the function will stop after
1005 * small-valued cell properties, such as #address-cells, when searching for
1010 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1011 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1018 * fdt_stringlist_get() - obtain the string at a given index in a string list
1019 * @fdt: pointer to the device tree blob
1020 * @nodeoffset: offset of a tree node
1026 * non-NUL-terminated values. For example on small-valued cell properties
1029 * If non-NULL, the length of the string (on success) or a negative error-code
1035 * location pointed to by the lenp parameter, if non-NULL. On failure one of
1037 * (if non-NULL):
1038 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1039 * -FDT_ERR_NOTFOUND if the property does not exist
1046 /* Read-only functions (addressing related) */
1050 * FDT_MAX_NCELLS - maximum value for #address-cells and #size-cells
1052 * This is the maximum value for #address-cells, #size-cells and
1061 * fdt_address_cells - retrieve address size for a bus represented in the tree
1062 * @fdt: pointer to the device tree blob
1065 * When the node has a valid #address-cells property, returns its value.
1069 * 2, if the node has no #address-cells property
1070 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1071 * #address-cells property
1072 * -FDT_ERR_BADMAGIC,
1073 * -FDT_ERR_BADVERSION,
1074 * -FDT_ERR_BADSTATE,
1075 * -FDT_ERR_BADSTRUCTURE,
1076 * -FDT_ERR_TRUNCATED, standard meanings
1081 * fdt_size_cells - retrieve address range size for a bus represented in the
1082 * tree
1083 * @fdt: pointer to the device tree blob
1086 * When the node has a valid #size-cells property, returns its value.
1090 * 2, if the node has no #address-cells property
1091 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1092 * #size-cells property
1093 * -FDT_ERR_BADMAGIC,
1094 * -FDT_ERR_BADVERSION,
1095 * -FDT_ERR_BADSTATE,
1096 * -FDT_ERR_BADSTRUCTURE,
1097 * -FDT_ERR_TRUNCATED, standard meanings
1103 /* Write-in-place functions */
1107 * fdt_setprop_inplace_namelen_partial - change a property's value,
1109 * @fdt: pointer to the device tree blob
1130 * fdt_setprop_inplace - change a property's value, but not its size
1131 * @fdt: pointer to the device tree blob
1144 * of the tree.
1148 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1149 * -FDT_ERR_NOTFOUND, node does not have the named property
1150 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1151 * -FDT_ERR_BADMAGIC,
1152 * -FDT_ERR_BADVERSION,
1153 * -FDT_ERR_BADSTATE,
1154 * -FDT_ERR_BADSTRUCTURE,
1155 * -FDT_ERR_TRUNCATED, standard meanings
1163 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1164 * @fdt: pointer to the device tree blob
1167 * @val: 32-bit integer value to replace the property with
1170 * with the 32-bit integer value in val, converting val to big-endian
1177 * of the tree.
1181 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1182 * -FDT_ERR_NOTFOUND, node does not have the named property
1183 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1184 * -FDT_ERR_BADMAGIC,
1185 * -FDT_ERR_BADVERSION,
1186 * -FDT_ERR_BADSTATE,
1187 * -FDT_ERR_BADSTRUCTURE,
1188 * -FDT_ERR_TRUNCATED, standard meanings
1198 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1199 * @fdt: pointer to the device tree blob
1202 * @val: 64-bit integer value to replace the property with
1205 * with the 64-bit integer value in val, converting val to big-endian
1212 * of the tree.
1216 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1217 * -FDT_ERR_NOTFOUND, node does not have the named property
1218 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1219 * -FDT_ERR_BADMAGIC,
1220 * -FDT_ERR_BADVERSION,
1221 * -FDT_ERR_BADSTATE,
1222 * -FDT_ERR_BADSTRUCTURE,
1223 * -FDT_ERR_TRUNCATED, standard meanings
1233 * fdt_setprop_inplace_cell - change the value of a single-cell property
1244 * fdt_nop_property - replace a property with nop tags
1245 * @fdt: pointer to the device tree blob
1251 * tree.
1255 * tree.
1259 * -FDT_ERR_NOTFOUND, node does not have the named property
1260 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1261 * -FDT_ERR_BADMAGIC,
1262 * -FDT_ERR_BADVERSION,
1263 * -FDT_ERR_BADSTATE,
1264 * -FDT_ERR_BADSTRUCTURE,
1265 * -FDT_ERR_TRUNCATED, standard meanings
1270 * fdt_nop_node - replace a node (subtree) with nop tags
1271 * @fdt: pointer to the device tree blob
1276 * effectively removing it from the tree.
1280 * move any other part of the tree.
1284 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1285 * -FDT_ERR_BADMAGIC,
1286 * -FDT_ERR_BADVERSION,
1287 * -FDT_ERR_BADSTATE,
1288 * -FDT_ERR_BADSTRUCTURE,
1289 * -FDT_ERR_TRUNCATED, standard meanings
1319 * fdt_property_placeholder - add a new property and return a ptr to its value
1321 * @fdt: pointer to the device tree blob
1328 * -FDT_ERR_BADMAGIC,
1329 * -FDT_ERR_NOSPACE, standard meanings
1339 /* Read-write functions */
1347 * fdt_add_mem_rsv - add one memory reserve map entry
1348 * @fdt: pointer to the device tree blob
1349 * @address, @size: 64-bit values (native endian)
1359 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1361 * -FDT_ERR_BADMAGIC,
1362 * -FDT_ERR_BADVERSION,
1363 * -FDT_ERR_BADSTATE,
1364 * -FDT_ERR_BADSTRUCTURE,
1365 * -FDT_ERR_BADLAYOUT,
1366 * -FDT_ERR_TRUNCATED, standard meanings
1371 * fdt_del_mem_rsv - remove a memory reserve map entry
1372 * @fdt: pointer to the device tree blob
1375 * fdt_del_mem_rsv() removes the n-th memory reserve map entry from
1383 * -FDT_ERR_NOTFOUND, there is no entry of the given index (i.e. there
1385 * -FDT_ERR_BADMAGIC,
1386 * -FDT_ERR_BADVERSION,
1387 * -FDT_ERR_BADSTATE,
1388 * -FDT_ERR_BADSTRUCTURE,
1389 * -FDT_ERR_BADLAYOUT,
1390 * -FDT_ERR_TRUNCATED, standard meanings
1395 * fdt_set_name - change the name of a given node
1396 * @fdt: pointer to the device tree blob
1411 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob
1413 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1414 * -FDT_ERR_BADMAGIC,
1415 * -FDT_ERR_BADVERSION,
1416 * -FDT_ERR_BADSTATE, standard meanings
1421 * fdt_setprop - create or change a property
1422 * @fdt: pointer to the device tree blob
1437 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1439 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1440 * -FDT_ERR_BADLAYOUT,
1441 * -FDT_ERR_BADMAGIC,
1442 * -FDT_ERR_BADVERSION,
1443 * -FDT_ERR_BADSTATE,
1444 * -FDT_ERR_BADSTRUCTURE,
1445 * -FDT_ERR_BADLAYOUT,
1446 * -FDT_ERR_TRUNCATED, standard meanings
1452 * fdt_setprop _placeholder - allocate space for a property
1453 * @fdt: pointer to the device tree blob
1468 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1470 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1471 * -FDT_ERR_BADLAYOUT,
1472 * -FDT_ERR_BADMAGIC,
1473 * -FDT_ERR_BADVERSION,
1474 * -FDT_ERR_BADSTATE,
1475 * -FDT_ERR_BADSTRUCTURE,
1476 * -FDT_ERR_BADLAYOUT,
1477 * -FDT_ERR_TRUNCATED, standard meanings
1483 * fdt_setprop_u32 - set a property to a 32-bit integer
1484 * @fdt: pointer to the device tree blob
1487 * @val: 32-bit integer value for the property (native endian)
1490 * node to the given 32-bit integer value (converting to big-endian if
1499 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1501 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1502 * -FDT_ERR_BADLAYOUT,
1503 * -FDT_ERR_BADMAGIC,
1504 * -FDT_ERR_BADVERSION,
1505 * -FDT_ERR_BADSTATE,
1506 * -FDT_ERR_BADSTRUCTURE,
1507 * -FDT_ERR_BADLAYOUT,
1508 * -FDT_ERR_TRUNCATED, standard meanings
1518 * fdt_setprop_u64 - set a property to a 64-bit integer
1519 * @fdt: pointer to the device tree blob
1522 * @val: 64-bit integer value for the property (native endian)
1525 * node to the given 64-bit integer value (converting to big-endian if
1534 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1536 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1537 * -FDT_ERR_BADLAYOUT,
1538 * -FDT_ERR_BADMAGIC,
1539 * -FDT_ERR_BADVERSION,
1540 * -FDT_ERR_BADSTATE,
1541 * -FDT_ERR_BADSTRUCTURE,
1542 * -FDT_ERR_BADLAYOUT,
1543 * -FDT_ERR_TRUNCATED, standard meanings
1553 * fdt_setprop_cell - set a property to a single cell value
1564 * fdt_setprop_string - set a property to a string value
1565 * @fdt: pointer to the device tree blob
1580 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1582 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1583 * -FDT_ERR_BADLAYOUT,
1584 * -FDT_ERR_BADMAGIC,
1585 * -FDT_ERR_BADVERSION,
1586 * -FDT_ERR_BADSTATE,
1587 * -FDT_ERR_BADSTRUCTURE,
1588 * -FDT_ERR_BADLAYOUT,
1589 * -FDT_ERR_TRUNCATED, standard meanings
1596 * fdt_setprop_empty - set a property to an empty value
1597 * @fdt: pointer to the device tree blob
1610 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1612 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1613 * -FDT_ERR_BADLAYOUT,
1614 * -FDT_ERR_BADMAGIC,
1615 * -FDT_ERR_BADVERSION,
1616 * -FDT_ERR_BADSTATE,
1617 * -FDT_ERR_BADSTRUCTURE,
1618 * -FDT_ERR_BADLAYOUT,
1619 * -FDT_ERR_TRUNCATED, standard meanings
1625 * fdt_appendprop - append to or create a property
1626 * @fdt: pointer to the device tree blob
1640 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1642 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1643 * -FDT_ERR_BADLAYOUT,
1644 * -FDT_ERR_BADMAGIC,
1645 * -FDT_ERR_BADVERSION,
1646 * -FDT_ERR_BADSTATE,
1647 * -FDT_ERR_BADSTRUCTURE,
1648 * -FDT_ERR_BADLAYOUT,
1649 * -FDT_ERR_TRUNCATED, standard meanings
1655 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1656 * @fdt: pointer to the device tree blob
1659 * @val: 32-bit integer value to append to the property (native endian)
1661 * fdt_appendprop_u32() appends the given 32-bit integer value
1662 * (converting to big-endian if necessary) to the value of the named
1671 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1673 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1674 * -FDT_ERR_BADLAYOUT,
1675 * -FDT_ERR_BADMAGIC,
1676 * -FDT_ERR_BADVERSION,
1677 * -FDT_ERR_BADSTATE,
1678 * -FDT_ERR_BADSTRUCTURE,
1679 * -FDT_ERR_BADLAYOUT,
1680 * -FDT_ERR_TRUNCATED, standard meanings
1690 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1691 * @fdt: pointer to the device tree blob
1694 * @val: 64-bit integer value to append to the property (native endian)
1696 * fdt_appendprop_u64() appends the given 64-bit integer value
1697 * (converting to big-endian if necessary) to the value of the named
1706 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1708 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1709 * -FDT_ERR_BADLAYOUT,
1710 * -FDT_ERR_BADMAGIC,
1711 * -FDT_ERR_BADVERSION,
1712 * -FDT_ERR_BADSTATE,
1713 * -FDT_ERR_BADSTRUCTURE,
1714 * -FDT_ERR_BADLAYOUT,
1715 * -FDT_ERR_TRUNCATED, standard meanings
1725 * fdt_appendprop_cell - append a single cell value to a property
1736 * fdt_appendprop_string - append a string to a property
1737 * @fdt: pointer to the device tree blob
1751 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1753 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1754 * -FDT_ERR_BADLAYOUT,
1755 * -FDT_ERR_BADMAGIC,
1756 * -FDT_ERR_BADVERSION,
1757 * -FDT_ERR_BADSTATE,
1758 * -FDT_ERR_BADSTRUCTURE,
1759 * -FDT_ERR_BADLAYOUT,
1760 * -FDT_ERR_TRUNCATED, standard meanings
1766 * fdt_delprop - delete a property
1767 * @fdt: pointer to the device tree blob
1778 * -FDT_ERR_NOTFOUND, node does not have the named property
1779 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1780 * -FDT_ERR_BADLAYOUT,
1781 * -FDT_ERR_BADMAGIC,
1782 * -FDT_ERR_BADVERSION,
1783 * -FDT_ERR_BADSTATE,
1784 * -FDT_ERR_BADSTRUCTURE,
1785 * -FDT_ERR_TRUNCATED, standard meanings
1790 * fdt_add_subnode_namelen - creates a new node based on substring
1791 * @fdt: pointer to the device tree blob
1807 * fdt_add_subnode - creates a new node
1808 * @fdt: pointer to the device tree blob
1822 * -FDT_ERR_NOTFOUND, if the requested subnode does not exist
1823 * -FDT_ERR_BADOFFSET, if parentoffset did not point to an FDT_BEGIN_NODE
1825 * -FDT_ERR_EXISTS, if the node at parentoffset already has a subnode of
1827 * -FDT_ERR_NOSPACE, if there is insufficient free space in the
1829 * -FDT_ERR_NOSPACE
1830 * -FDT_ERR_BADLAYOUT
1831 * -FDT_ERR_BADMAGIC,
1832 * -FDT_ERR_BADVERSION,
1833 * -FDT_ERR_BADSTATE,
1834 * -FDT_ERR_BADSTRUCTURE,
1835 * -FDT_ERR_TRUNCATED, standard meanings.
1840 * fdt_del_node - delete a node (subtree)
1841 * @fdt: pointer to the device tree blob
1852 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1853 * -FDT_ERR_BADLAYOUT,
1854 * -FDT_ERR_BADMAGIC,
1855 * -FDT_ERR_BADVERSION,
1856 * -FDT_ERR_BADSTATE,
1857 * -FDT_ERR_BADSTRUCTURE,
1858 * -FDT_ERR_TRUNCATED, standard meanings
1863 * fdt_overlay_apply - Applies a DT overlay on a base DT
1864 * @fdt: pointer to the base device tree blob
1865 * @fdto: pointer to the device tree overlay blob
1867 * fdt_overlay_apply() will apply the given device tree overlay on the
1868 * given base device tree.
1870 * Expect the base device tree to be modified, even if the function
1875 * -FDT_ERR_NOSPACE, there's not enough space in the base device tree
1876 * -FDT_ERR_NOTFOUND, the overlay points to some inexistant nodes or
1878 * -FDT_ERR_BADPHANDLE,
1879 * -FDT_ERR_BADOVERLAY,
1880 * -FDT_ERR_NOPHANDLES,
1881 * -FDT_ERR_INTERNAL,
1882 * -FDT_ERR_BADLAYOUT,
1883 * -FDT_ERR_BADMAGIC,
1884 * -FDT_ERR_BADOFFSET,
1885 * -FDT_ERR_BADPATH,
1886 * -FDT_ERR_BADVERSION,
1887 * -FDT_ERR_BADSTRUCTURE,
1888 * -FDT_ERR_BADSTATE,
1889 * -FDT_ERR_TRUNCATED, standard meanings