Lines Matching +full:device +full:- +full:tree

6 # SPDX-License-Identifier:      GPL-2.0+
15 # This deals with a device tree, presenting it as an assortment of Node and
17 # contains the base classes and defines the high-level API. You can use
20 # This implementation uses a libfdt Python library to access the device tree,
32 """A device tree property
35 name: Property name (as per the device tree)
105 TYPE_INT: a byte-swapped integer stored as a 4-byte string
106 TYPE_BYTE: a byte stored as a single-byte string
112 count = len(strings) - 1
113 if count > 0 and not strings[-1]:
114 for string in strings[:-1]:
128 return TYPE_STRING, strings[:-1]
166 """A device tree node
169 offset: Integer offset in the device tree
170 name: Device tree node tname
172 _fdt: Device tree object
212 searching into subnodes so that the entire tree is built.
222 sep = '' if self.path[-1] == '/' else '/'
234 Note: This does not take account of property offsets - these will not
238 #print '%s: %d -> %d\n' % (self.path, self._offset, my_offset)
261 """Provides simple access to a flat device tree blob using libfdts.
265 _root: Root of device tree (a Node object)
279 """Scan a device tree, building up a tree of Node objects
292 """Get the root Node of the device tree
315 """Flush device tree changes back to the file
317 If the device tree has changed in memory, write it back to the file.
323 """Pack the device tree down to its minimum size
326 build up in the device tree binary.
388 offset: Offset within the 'struct' region of the device tree
390 Position of @offset within the device tree binary