Lines Matching refs:get_node
65 node = edt.get_node("/interrupt-parent-test/node")
66 controller = edt.get_node('/interrupt-parent-test/controller')
72 node = edt.get_node("/interrupts-extended-test/node")
73 controller_0 = edt.get_node('/interrupts-extended-test/controller-0')
74 controller_1 = edt.get_node('/interrupts-extended-test/controller-1')
75 controller_2 = edt.get_node('/interrupts-extended-test/controller-2')
82 node = edt.get_node("/interrupt-map-test/node@0")
83 controller_0 = edt.get_node('/interrupt-map-test/controller-0')
84 controller_1 = edt.get_node('/interrupt-map-test/controller-1')
85 controller_2 = edt.get_node('/interrupt-map-test/controller-2')
93 node = edt.get_node("/interrupt-map-test/node@1")
100 node = edt.get_node("/interrupt-map-bitops-test/node@70000000E")
102 …edtlib.ControllerAndData(node=node, controller=edt.get_node('/interrupt-map-bitops-test/controller…
110 node = edt.get_node("/reg-ranges/parent")
117 node = edt.get_node("/reg-nested-ranges/grandparent")
122 node = edt.get_node("/reg-nested-ranges/grandparent/parent")
127 assert edt.get_node("/ranges-zero-cells/node").ranges == []
129 node = edt.get_node("/ranges-zero-parent-cells/node")
136 node = edt.get_node("/ranges-one-address-cells/node")
143 node = edt.get_node("/ranges-one-address-two-size-cells/node")
150 node = edt.get_node("/ranges-two-address-cells/node@1")
157 node = edt.get_node("/ranges-two-address-two-size-cells/node@1")
164 node = edt.get_node("/ranges-three-address-cells/node@1")
171 node = edt.get_node("/ranges-three-address-two-size-cells/node@1")
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")
218 state_1 = edt.get_node('/pinctrl/pincontroller/state-1')
219 state_2 = edt.get_node('/pinctrl/pincontroller/state-2')
231 assert edt.get_node("/").parent is None
233 assert str(edt.get_node("/parent/child-1").parent) == \
236 assert str(edt.get_node("/parent/child-2/grandchild").parent) == \
239 assert str(edt.get_node("/parent").children) == \
242 assert edt.get_node("/parent/child-1").children == {}
249 parent, child_1, child_2 = [edt.get_node(path) for path in
263 binding_include = edt.get_node("/binding-include")
272 verify_props(edt.get_node("/binding-include/child"),
486 assert isinstance(edt.get_node("/buses/foo-bus").buses, list)
487 assert "foo" in edt.get_node("/buses/foo-bus").buses
490 assert isinstance(edt.get_node("/buses/foo-bus").on_buses, list)
491 assert not edt.get_node("/buses/foo-bus").on_buses
492 assert edt.get_node("/buses/foo-bus").bus_node is None
495 assert isinstance(edt.get_node("/buses/foo-bus/node1").buses, list)
496 assert not edt.get_node("/buses/foo-bus/node1").buses
498 assert isinstance(edt.get_node("/buses/foo-bus/node1").on_buses, list)
499 assert "foo" in edt.get_node("/buses/foo-bus/node1").on_buses
500 assert edt.get_node("/buses/foo-bus/node1").bus_node.path == \
504 assert isinstance(edt.get_node("/buses/foo-bus/node2").buses, list)
505 assert not edt.get_node("/buses/foo-bus/node2").buses
507 assert isinstance(edt.get_node("/buses/foo-bus/node2").on_buses, list)
508 assert "foo" in edt.get_node("/buses/foo-bus/node2").on_buses
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
519 assert str(edt.get_node("/buses/foo-bus/node1").binding_path) == \
521 assert str(edt.get_node("/buses/foo-bus/node2").binding_path) == \
523 assert str(edt.get_node("/buses/bar-bus/node").binding_path) == \
525 assert str(edt.get_node("/buses/no-bus-node").binding_path) == \
529 assert isinstance(edt.get_node("/buses/foo-bus/node1/nested").on_buses, list)
530 assert "foo" in edt.get_node("/buses/foo-bus/node1/nested").on_buses
531 assert str(edt.get_node("/buses/foo-bus/node1/nested").binding_path) == \
538 child1 = edt.get_node("/child-binding/child-1")
539 child2 = edt.get_node("/child-binding/child-2")
540 grandchild = edt.get_node("/child-binding/child-1/grandchild")
577 props_node = edt.get_node('/props')
578 ctrl_1, ctrl_2 = [edt.get_node(path) for path in ['/ctrl-1', '/ctrl-2']]
605 verify_phandle_array_prop(edt.get_node("/props-2"),
607 [(edt.get_node('/ctrl-0-1'), {}),
609 (edt.get_node('/ctrl-0-2'), {})])
620 source = edt.get_node("/gpio-map/source")
621 destination = edt.get_node('/gpio-map/destination')
634 verify_props(edt.get_node("/defaults"),
653 props = edt.get_node('/enums').props
705 assert str(edt.get_node("/zephyr,user").props) == '{}'
710 ctrl_1 = edt.get_node('/ctrl-1')
711 ctrl_2 = edt.get_node('/ctrl-2')
712 zephyr_user = edt.get_node("/zephyr,user")
732 [(edt.get_node('/ctrl-2'), {'one': 1, 'two': 2})])
739 assert str(edt.get_node("/in-dir-1").binding_path) == \
742 assert str(edt.get_node("/in-dir-2").binding_path) == \
750 assert edt.get_node("/").dep_ordinal == 0
751 assert edt.get_node("/in-dir-1").dep_ordinal == 1
752 assert edt.get_node("/") in edt.get_node("/in-dir-1").depends_on
753 assert edt.get_node("/in-dir-1") in edt.get_node("/").required_by
760 dep_node = edt.get_node("/child-binding-dep")
762 assert dep_node in edt.get_node("/child-binding").depends_on
763 assert dep_node in edt.get_node("/child-binding/child-1/grandchild").depends_on
764 assert dep_node in edt.get_node("/child-binding/child-2").depends_on
765 assert edt.get_node("/child-binding") in dep_node.required_by
766 assert edt.get_node("/child-binding/child-1/grandchild") in dep_node.required_by
767 assert edt.get_node("/child-binding/child-2") in dep_node.required_by