Lines Matching +full:dts +full:- +full:node
1 # SPDX-License-Identifier: GPL-2.0+
46 #include <dt-structs.h>
52 """Compile a .dts file to a .dtb
55 dts_fname: Filename of .dts file in the current directory
107 conv_name_to_c('vendor,clock-frequency'))
109 conv_name_to_c('rockchip,rk3399-sdhci-5.1'))
134 Node = collections.namedtuple('Node', ['props'])
136 prop = Prop(['rockchip,rk3399-sdhci-5.1', 'arasan,sdhci-5.1'])
137 node = Node({'compatible': prop})
139 get_compat_name(node))
141 prop = Prop(['rockchip,rk3399-sdhci-5.1'])
142 node = Node({'compatible': prop})
144 get_compat_name(node))
146 prop = Prop(['rockchip,rk3399-sdhci-5.1', 'arasan,sdhci-5.1', 'third'])
147 node = Node({'compatible': prop})
150 get_compat_name(node))
154 dtb_file = get_dtb_file('dtoc_test_empty.dts')
168 dtb_file = get_dtb_file('dtoc_test_simple.dts')
209 \t.stringarray\t\t= {"multi-word", "message", ""},
225 \t.stringarray\t\t= {"another", "multi-word", "message"},
271 """Test output from a node containing a phandle reference"""
272 dtb_file = get_dtb_file('dtoc_test_phandle.dts')
343 """Test output from a node containing a phandle reference"""
344 dtb_file = get_dtb_file('dtoc_test_phandle_single.dts')
360 dtb_file = get_dtb_file('dtoc_test_phandle_reorder.dts')
387 """Test a node containing an invalid phandle fails"""
388 dtb_file = get_dtb_file('dtoc_test_phandle_bad.dts',
393 self.assertIn("Cannot parse 'clocks' in node 'phandle-source'",
397 """Test a phandle target missing its #*-cells property"""
398 dtb_file = get_dtb_file('dtoc_test_phandle_bad2.dts',
403 self.assertIn("Node 'phandle-target' has no '#clock-cells' property",
407 """Test output from a node with multiple compatible strings"""
408 dtb_file = get_dtb_file('dtoc_test_aliases.dts')
437 """Test output from a node with a 'reg' property with na=2, ns=2"""
438 dtb_file = get_dtb_file('dtoc_test_addr64.dts')
489 """Test output from a node with a 'reg' property with na=1, ns=1"""
490 dtb_file = get_dtb_file('dtoc_test_addr32.dts')
529 """Test output from a node with a 'reg' property with na=2, ns=1"""
530 dtb_file = get_dtb_file('dtoc_test_addr64_32.dts')
581 """Test output from a node with a 'reg' property with na=1, ns=2"""
582 dtb_file = get_dtb_file('dtoc_test_addr32_64.dts')
635 dtb_file = get_dtb_file('dtoc_test_bad_reg.dts', capture_stderr=True)
639 self.assertIn("Node 'spl-test' reg property is not an int",
645 dtb_file = get_dtb_file('dtoc_test_bad_reg2.dts', capture_stderr=True)
649 …self.assertIn("Node 'spl-test' reg property has 3 cells which is not a multiple of na + ns = 1 + 1…
653 """Test that a subequent node can add a new property to a struct"""
654 dtb_file = get_dtb_file('dtoc_test_add_prop.dts')
692 dtb_file = get_dtb_file('dtoc_test_simple.dts')
694 dtb_platdata.run_steps(['struct'], dtb_file, False, '-')
705 dtb_file = get_dtb_file('dtoc_test_simple.dts')
708 dtb_platdata.run_steps(['invalid-cmd'], dtb_file, False, output)
709 self.assertIn("Unknown command 'invalid-cmd': (use: struct, platdata)",