Lines Matching full:node

50 …eprecated in 'properties:' in {hpath('test-bindings/deprecated.yaml')} for node /test-deprecated.",
51 "unit address and first address in 'reg' (0x1) don't match for /reg-zero-size-cells/node",
52 "unit address and first address in 'reg' (0x5) don't match for /reg-ranges/parent/node",
53 …address in 'reg' (0x30000000200000001) don't match for /reg-nested-ranges/grandparent/parent/node",
65 node = edt.get_node("/interrupt-parent-test/node")
67 assert node.interrupts == [
68 …edtlib.ControllerAndData(node=node, controller=controller, data={'one': 1, 'two': 2, 'three': 3}, …
69 …edtlib.ControllerAndData(node=node, controller=controller, data={'one': 4, 'two': 5, 'three': 6}, …
72 node = edt.get_node("/interrupts-extended-test/node")
76 assert node.interrupts == [
77 …edtlib.ControllerAndData(node=node, controller=controller_0, data={'one': 1}, name=None, basename=…
78 …edtlib.ControllerAndData(node=node, controller=controller_1, data={'one': 2, 'two': 3}, name=None,…
79 …edtlib.ControllerAndData(node=node, controller=controller_2, data={'one': 4, 'two': 5, 'three': 6}…
82 node = edt.get_node("/interrupt-map-test/node@0")
87 assert node.interrupts == [
88 …edtlib.ControllerAndData(node=node, controller=controller_0, data={'one': 0}, name=None, basename=…
89 …edtlib.ControllerAndData(node=node, controller=controller_1, data={'one': 0, 'two': 1}, name=None,…
90 …edtlib.ControllerAndData(node=node, controller=controller_2, data={'one': 0, 'two': 0, 'three': 2}…
93 node = edt.get_node("/interrupt-map-test/node@1")
94 assert node.interrupts == [
95 …edtlib.ControllerAndData(node=node, controller=controller_0, data={'one': 3}, name=None, basename=…
96 …edtlib.ControllerAndData(node=node, controller=controller_1, data={'one': 0, 'two': 4}, name=None,…
97 …edtlib.ControllerAndData(node=node, controller=controller_2, data={'one': 0, 'two': 0, 'three': 5}…
100 node = edt.get_node("/interrupt-map-bitops-test/node@70000000E")
101 assert node.interrupts == [
102 …edtlib.ControllerAndData(node=node, controller=edt.get_node('/interrupt-map-bitops-test/controller…
110 node = edt.get_node("/reg-ranges/parent")
111 assert node.ranges == [
112 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x1, parent_bus_cells=0x2, parent_bus_…
113 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x2, parent_bus_cells=0x2, parent_bus_…
114 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x4, parent_bus_cells=0x2, parent_bus_…
117 node = edt.get_node("/reg-nested-ranges/grandparent")
118 assert node.ranges == [
119 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0x0, parent_bus_cells=0x3, parent_bus_…
122 node = edt.get_node("/reg-nested-ranges/grandparent/parent")
123 assert node.ranges == [
124 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x0, parent_bus_cells=0x2, parent_bus_…
127 assert edt.get_node("/ranges-zero-cells/node").ranges == []
129 node = edt.get_node("/ranges-zero-parent-cells/node")
130 assert node.ranges == [
131 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0xa, parent_bus_cells=0x0, parent_bus_…
132 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x1a, parent_bus_cells=0x0, parent_bus…
133 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x2a, parent_bus_cells=0x0, parent_bus…
136 node = edt.get_node("/ranges-one-address-cells/node")
137 assert node.ranges == [
138 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0xa, parent_bus_cells=0x0, parent_bus_…
139 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x1a, parent_bus_cells=0x0, parent_bus…
140 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x2a, parent_bus_cells=0x0, parent_bus…
143 node = edt.get_node("/ranges-one-address-two-size-cells/node")
144 assert node.ranges == [
145 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0xa, parent_bus_cells=0x0, parent_bus_…
146 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x1a, parent_bus_cells=0x0, parent_bus…
147 …edtlib.Range(node=node, child_bus_cells=0x1, child_bus_addr=0x2a, parent_bus_cells=0x0, parent_bus…
150 node = edt.get_node("/ranges-two-address-cells/node@1")
151 assert node.ranges == [
152 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0xa0000000b, parent_bus_cells=0x1, par…
153 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0x1a0000001b, parent_bus_cells=0x1, pa…
154 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0x2a0000002b, parent_bus_cells=0x1, pa…
157 node = edt.get_node("/ranges-two-address-two-size-cells/node@1")
158 assert node.ranges == [
159 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0xa0000000b, parent_bus_cells=0x1, par…
160 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0x1a0000001b, parent_bus_cells=0x1, pa…
161 …edtlib.Range(node=node, child_bus_cells=0x2, child_bus_addr=0x2a0000002b, parent_bus_cells=0x1, pa…
164 node = edt.get_node("/ranges-three-address-cells/node@1")
165 assert node.ranges == [
166 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0xa0000000b0000000c, parent_bus_cells=…
167 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0x1a0000001b0000001c, parent_bus_cells…
168 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0x2a0000002b0000002c, parent_bus_cells…
171 node = edt.get_node("/ranges-three-address-two-size-cells/node@1")
172 assert node.ranges == [
173 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0xa0000000b0000000c, parent_bus_cells=…
174 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0x1a0000001b0000001c, parent_bus_cells…
175 …edtlib.Range(node=node, child_bus_cells=0x3, child_bus_addr=0x2a0000002b0000002c, parent_bus_cells…
183 def verify_regs(node, expected_tuples): argument
184 regs = node.regs
188 assert reg.node is node
193 verify_regs(edt.get_node("/reg-zero-address-cells/node"),
197 verify_regs(edt.get_node("/reg-zero-size-cells/node"),
201 verify_regs(edt.get_node("/reg-ranges/parent/node"),
209 verify_regs(edt.get_node("/reg-nested-ranges/grandparent/parent/node"),
217 node = edt.get_node("/pinctrl/dev")
220 assert node.pinctrls == [
221 edtlib.PinCtrl(node=node, name='zero', conf_nodes=[]),
222 edtlib.PinCtrl(node=node, name='one', conf_nodes=[state_1]),
223 edtlib.PinCtrl(node=node, name='two', conf_nodes=[state_1, state_2])
227 '''Test Node.parent and Node.children'''
234 "<Node /parent in 'test.dts', no binding>"
237 "<Node /parent/child-2 in 'test.dts', no binding>"
240 …"{'child-1': <Node /parent/child-1 in 'test.dts', no binding>, 'child-2': <Node /parent/child-2 in…
245 '''Test Node.child_index.'''
494 # foo-bus/node1 is not a bus node...
503 # foo-bus/node2 is not a bus node...
510 # no-bus-node is not a bus node...
511 assert isinstance(edt.get_node("/buses/no-bus-node").buses, list)
512 assert not edt.get_node("/buses/no-bus-node").buses
514 assert isinstance(edt.get_node("/buses/no-bus-node").on_buses, list)
515 assert not edt.get_node("/buses/no-bus-node").on_buses
523 assert str(edt.get_node("/buses/bar-bus/node").binding_path) == \
525 assert str(edt.get_node("/buses/no-bus-node").binding_path) == \
528 # foo-bus/node/nested also appears on the foo-bus bus
543 assert str(child1.description) == "child node"
547 assert str(child2.description) == "child node"
551 assert str(grandchild.description) == "grandchild node"
573 '''Test Node.props (derived from DT and 'properties:' in the binding)'''
787Node /sub in '{dts_file}'> has length 4, which is not evenly divisible by 12 (= 4*(<#address-cells…
804Node /sub in '{dts_file}'> has length 4, which is not evenly divisible by 8 (= 4*<#interrupt-cells…
824Node /sub-1 in '{dts_file}'> has length 8, which is not evenly divisible by 24 (= 4*(<#address-cel…
827 # An invalid compatible should cause an error, even on a node with
842 …r"node '/foo' compatible 'no, whitespace' must match this regular expression: '^[a-zA-Z][a-zA-Z0-9…
845 '''Test Node.wrong_props (derived from DT and 'properties:' in the binding)'''
871 infer_binding_for_paths=['/test-node'],
915 assert edt_copy._infer_binding_for_paths == set(["/test-node"])
951 def verify_props(node, names, types, values): argument
953 # value in 'values'. Property lookup is done in Node 'node'.
956 prop = node.props[name]
960 assert prop.node is node
962 def verify_phandle_array_prop(node, name, values): argument
963 # Verifies 'node.props[name]' is a phandle-array, and has the
967 prop = node.props[name]