Lines Matching +full:grandchild +full:- +full:prop +full:- +full:1

4  * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 test-alias = &test_nodelabel;
28 #address-cells = < 0x1 >;
29 #size-cells = < 0x1 >;
30 interrupt-parent = <&test_intc>;
32 test_cpu_intc: interrupt-controller {
33 compatible = "vnd,cpu-intc";
34 #address-cells = <0>;
35 #interrupt-cells = < 0x01 >;
36 interrupt-controller;
39 test_pinctrl: pin-controller {
41 test_pincfg_a: pincfg-a {};
42 test_pincfg_b: pincfg-b {};
43 test_pincfg_c: pincfg-c {};
44 test_pincfg_d: pincfg-d {};
47 test_arrays: array-holder {
49 * vnd,undefined-compat is for DT_NODE_HAS_COMPAT_STATUS(..,okay).
50 * There should only be one vnd,array-holder in the entire DTS.
52 compatible = "vnd,array-holder", "vnd,undefined-compat";
58 test_phandles: phandle-holder-0 {
60 * There should only be one vnd,phandle-holder in the entire DTS.
62 compatible = "vnd,phandle-holder";
69 phs-or = <&test_enum_default_0 &test_enum_default_1>;
71 pha-gpios = <&test_gpio_1 50 60>, <0>, <&test_gpio_3 70>, <&test_gpio_2 80 90>;
73 foo-names = "A", "b-c";
74 pwms = <&test_pwm1 8 200 3>, <&test_pwm2 5 100 1>;
75 pwm-names = "red", "green";
77 baz-names = "john", "doe";
80 test_enum_0: enum-0 {
81 compatible = "vnd,enum-holder";
85 test_enum_1: enum-1 {
86 compatible = "vnd,enum-holder";
90 test_enum_default_0: enum-2 {
91 compatible = "vnd,enum-required-false-holder";
95 test_enum_default_1: enum-3 {
96 compatible = "vnd,enum-required-false-holder";
99 test_enum_int_default_0: enum-4 {
100 compatible = "vnd,enum-int-required-false-holder";
104 test_enum_int_default_1: enum-5 {
105 compatible = "vnd,enum-int-required-false-holder";
108 enum-6 {
109 compatible = "vnd,enum-holder-inst";
113 enum-7 {
114 compatible = "vnd,enum-required-false-holder-inst";
117 test_enum_string_array: enum-8 {
118 compatible = "vnd,enum-string-array-holder";
122 test_enum_int_array: enum-9 {
123 compatible = "vnd,enum-int-array-holder";
131 disabled-node@0 {
132 compatible = "vnd,disabled-compat";
137 reserved-node@0 {
138 compatible = "vnd,reserved-node";
144 compatible = "vnd,gpio-device";
145 gpio-controller;
147 interrupts = <3 1>;
148 #gpio-cells = < 0x2 >;
152 reserved_gpio: gpio@1 {
153 compatible = "vnd,gpio-device";
154 gpio-controller;
156 interrupts = <3 1>;
157 #gpio-cells = < 0x2 >;
164 interrupt-controller;
165 #interrupt-cells = <2>;
169 compatible = "vnd,gpio-device";
170 gpio-controller;
172 #gpio-cells = < 0x2 >;
173 #foo-cells = < 0x1 >;
174 #baz-cells = < 0x1 >;
180 gpio-hog;
182 output-high;
186 gpio-hog;
188 output-low;
193 compatible = "vnd,gpio-device";
194 gpio-controller;
196 reg-names = "one", "two";
197 #gpio-cells = < 0x2 >;
198 #foo-cells = < 0x1 >;
199 #baz-cells = < 0x1 >;
205 gpio-hog;
208 line-name = "TEST_GPIO_HOG_3";
213 compatible = "vnd,gpio-one-cell";
214 gpio-controller;
216 #gpio-cells = < 0x1 >;
221 compatible = "vnd,gpio-intc-device";
223 gpio-controller;
224 #gpio-cells = <0x2>;
225 interrupt-controller;
226 #interrupt-cells = <0x2>;
231 #address-cells = < 1 >;
232 #size-cells = < 0 >;
236 clock-frequency = < 100000 >;
237 interrupts = <6 2 7 1>;
238 interrupt-names = "status", "error";
240 test-i2c-dev@10 {
241 compatible = "vnd,i2c-device";
246 gpio-controller;
247 #gpio-cells = <2>;
248 compatible = "vnd,gpio-expander";
252 test_i2c_mux: i2c-mux@12 {
253 compatible = "vnd,i2c-mux";
255 i2c-mux-ctlr-1 {
256 compatible = "vnd,i2c-mux-controller";
257 #address-cells = <1>;
258 #size-cells = <0>;
259 test_muxed_i2c_dev_1: muxed-i2c-dev@10 {
260 compatible = "vnd,i2c-device";
265 i2c-mux-ctlr-2 {
266 compatible = "vnd,i2c-mux-controller";
267 #address-cells = <1>;
268 #size-cells = <0>;
269 test_muxed_i2c_dev_2: muxed-i2c-dev@10 {
270 compatible = "vnd,i2c-device";
279 #address-cells = < 1 >;
280 #size-cells = < 0 >;
283 clock-frequency = < 100000 >;
285 test-i2c-dev@12 {
286 compatible = "vnd,i2c-device";
292 #address-cells = < 3 >;
293 #size-cells = < 0 >;
298 test-i3c-dev@420000ABCD12345678 {
299 compatible = "vnd,i3c-device";
303 test-i3c-i2c-dev@380000000000000050 {
304 compatible = "vnd,i3c-i2c-device";
311 #mbox-cells = <1>;
316 compatible = "vnd,mbox-zero-cell";
317 #mbox-cells = <0>;
322 #address-cells = < 1 >;
323 #size-cells = < 0 >;
326 interrupts = <8 3 9 0 10 1>;
328 clock-frequency = < 2000000 >;
330 cs-gpios = <&test_gpio_1 0x10 0x20>,
334 /* all vnd,spi-device instances should have CS */
336 test-spi-dev@0 {
337 compatible = "vnd,spi-device";
339 spi-max-frequency = < 2000000 >;
342 test-spi-dev@1 {
343 compatible = "vnd,spi-device";
344 reg = <1>;
345 spi-max-frequency = < 2000000 >;
349 gpio-controller;
350 #gpio-cells = <2>;
351 compatible = "vnd,gpio-expander";
353 spi-max-frequency = <(1 * 1000 * 1000)>;
358 #address-cells = < 1 >;
359 #size-cells = < 0 >;
363 clock-frequency = < 2000000 >;
366 * There should only be one spi-device-2 node.
369 test_spi_dev_no_cs: test-spi-dev@0 {
370 compatible = "vnd,spi-device-2";
372 spi-max-frequency = < 2000000 >;
377 #address-cells = < 1 >;
378 #size-cells = < 0 >;
382 clock-frequency = < 100000 >;
384 interrupt-names = "status", "error";
391 #io-channel-cells = <1>;
398 #io-channel-cells = <1>;
402 test_temp_sensor: temperature-sensor {
403 compatible = "vnd,adc-temp-sensor";
404 io-channels = <&test_adc_1 10>, <&test_adc_2 20>;
405 io-channel-names = "ch1", "ch2";
406 dmas = <&test_dma1 1 2>, <&test_dma2 3 4>;
407 dma-names = "tx", "rx";
409 clock-names = "clk-a", "clk-fixed", "clk-b";
411 reset-names = "reset-a", "reset-b";
412 pinctrl-0 = <&test_pincfg_a &test_pincfg_b>;
413 pinctrl-1 = <&test_pincfg_c &test_pincfg_d>;
414 pinctrl-2 = <&test_pincfg_d>;
415 pinctrl-names = "default", "sleep", "f.o.o2";
416 mboxes = <&test_mbox 1>, <&test_mbox 2>, <&test_mbox_zero_cell>;
417 mbox-names = "tx", "rx", "zero";
421 test_reg: reg-holder@9999aaaa {
422 compatible = "vnd,reg-holder";
425 reg-names = "first", "second";
426 misc-prop = <1234>;
434 test_intc: interrupt-controller@bbbbcccc {
437 interrupt-controller;
438 #interrupt-cells = <2>;
440 interrupt-parent = <&test_cpu_intc>;
447 test_intc2: interrupt-controller@bbbbdccc {
450 interrupt-controller;
451 #interrupt-cells = <2>;
453 interrupt-parent = <&test_cpu_intc>;
457 test_irq: interrupt-holder {
458 compatible = "vnd,interrupt-holder";
461 interrupt-parent = <&test_intc>;
462 interrupt-names = "err", "stat", "done";
466 test_irq_extended: interrupt-holder-extended {
467 compatible = "vnd,interrupt-holder-extended";
469 interrupts-extended = <&test_intc 70 7>,
472 interrupt-names = "int1", "int2", "int3";
475 test_fixed_clk: test-fixed-clock {
476 compatible = "fixed-clock";
477 clock-frequency = <25000000>;
478 #clock-cells = <0>;
481 test_clk: test-clock {
483 #clock-cells = <2>;
486 test_reset: test-reset@abcd1234 {
488 reg-width = <4>;
490 #reset-cells = <1>;
495 #dma-cells = <2>;
503 #dma-cells = <2>;
510 compatible = "vnd,video-single-port";
515 remote-endpoint-label = "test_video2_port0_in0";
521 compatible = "vnd,video-single-port";
525 #address-cells = <1>;
526 #size-cells = <0>;
530 remote-endpoint-label = "test_video2_port0_in1";
533 test_video1_out1: endpoint@1 {
535 remote-endpoint-label = "test_video2_port1_in";
541 compatible = "vnd,video-multi-port";
545 #address-cells = <1>;
546 #size-cells = <0>;
550 #address-cells = <1>;
551 #size-cells = <0>;
555 remote-endpoint-label = "test_video0_out";
558 test_video2_port0_in1: endpoint@1 {
560 remote-endpoint-label = "test_video1_out0";
564 test_video2_port1: port@1 {
568 remote-endpoint-label = "test_video1_out1";
576 #pwm-cells = <3>;
583 #pwm-cells = <3>;
588 test_transceiver0: can-phy0 {
589 compatible = "vnd,can-transceiver";
591 #phy-cells = <0>;
592 min-bitrate = <10000>;
593 max-bitrate = <5000000>;
596 test_transceiver1: can-phy1 {
597 compatible = "vnd,can-transceiver";
599 #phy-cells = <0>;
600 max-bitrate = <1000000>;
604 compatible = "vnd,can-controller";
611 compatible = "vnd,can-controller";
615 can-transceiver {
616 min-bitrate = <50000>;
617 max-bitrate = <2000000>;
622 compatible = "vnd,can-controller";
626 can-transceiver {
627 max-bitrate = <1000000>;
632 compatible = "vnd,can-controller";
638 test_parent: test-parent {
639 compatible = "vnd,parent-bindings";
641 test_parent_a: parent-a {
644 test_parent_b: parent-b {
651 test_children: test-children {
652 compatible = "vnd,child-bindings";
654 test_child_a: child-a {
658 test_child_b: child-b {
659 val = <1>;
662 test_child_c: child-c {
668 test-great-grandchildren {
669 compatible = "vnd,great-grandchild-bindings";
672 grandchild {
673 test_ggc: great-grandchild {
674 ggc-prop = <42>;
680 test-ranges {
681 #address-cells = <2>;
682 #size-cells = <1>;
686 reg = <0 0 1>;
687 #address-cells = <3>;
688 #size-cells = <2>;
695 test_ranges_other: other@1 {
696 reg = <0 1 1>;
697 #address-cells = <2>;
698 #size-cells = <1>;
705 reg = <0 2 1>;
706 #address-cells = <2>;
707 #size-cells = <1>;
713 device-with-props-0 {
714 compatible = "vnd,device-with-props";
716 foo = <1>;
718 bool-foo;
719 bool-bar;
722 device-with-props-1 {
723 compatible = "vnd,device-with-props";
726 bool-foo;
729 device-with-props-2 {
730 compatible = "vnd,device-with-props";
732 baz = <1>;
733 bool-baz;
736 test_string_token_0: string-token-0 {
737 compatible = "vnd,string-token";
741 test_string_token_1: string-token-1 {
742 compatible = "vnd,string-token";
746 test_string_token_2: string-token-2 {
747 compatible = "vnd,string-token";
751 test_str_array_token_0: string-array-token-0 {
752 compatible = "vnd,string-array-token";
758 test_str_array_token_1: string-array-token-1 {
759 compatible = "vnd,string-array-token";
766 test_str_unquoted_f0: string-unquoted-f0 {
767 compatible = "vnd,string-unquoted";
771 test_str_unquoted_f1: string-unquoted-f1 {
772 compatible = "vnd,string-unquoted";
773 val = "0.9e-3";
776 test_str_unquoted_t: string-unquoted-t {
777 compatible = "vnd,string-unquoted";
781 test_str_unquoted_esc_t: string-unquoted-escape-t {
782 compatible = "vnd,string-unquoted";
787 * Tests expect all vnd,string-unquoted instances to evaluate to doubles,
790 test_str_unquoted_esc_s: string-unquoted-escape-s {
795 test_stra_unquoted_f0: string-array-unquoted-f0 {
796 compatible = "vnd,string-array-unquoted";
800 test_stra_unquoted_f1: string-array-unquoted-f1 {
801 compatible = "vnd,string-array-unquoted";
805 test_stra_unquoted_t: string-array-unquoted-t {
806 compatible = "vnd,string-array-unquoted";
811 * Tests expect all vnd,string-array-unquoted instances to evaluate to doubles,
812 * so use vnd,string-array instead.
814 test_stra_unquoted_esc: string-array-unquoted-escape {
815 compatible = "vnd,string-array";
819 test_str_escape_0: string-escape-0 {
824 test_str_escape_1: string-escape-1 {
829 test_str_escape_2: string-escape-2 {
834 test_str_escape_3: string-escape-3 {
839 test_stra_escape: string-array-escape {
840 compatible = "vnd,string-array";
847 test-mtd@ffeeddcc {
849 #address-cells = < 1 >;
850 #size-cells = < 1 >;
853 compatible = "soc-nv-flash";
856 compatible = "fixed-partitions";
857 #address-cells = < 1 >;
858 #size-cells = < 1 >;
862 label = "test-partition-0";
866 label = "test-partition-1";
872 test-mtd@33221100 {
876 compatible = "fixed-partitions";
877 #address-cells = < 1 >;
878 #size-cells = < 1 >;
882 label = "test-partition-2";
889 #address-cells = < 2 >;
890 #size-cells = < 0 >;
892 test_reg_64: reg-holder-64@ffffffff11223344 {
893 compatible = "vnd,reg-holder-64";
896 reg-names = "test_name";
900 non-deprecated-label {
901 compatible = "vnd,non-deprecated-label";