Lines Matching +full:address +full:- +full:1

4  * SPDX-License-Identifier: BSD-3-Clause
9 /dts-v1/;
16 interrupt-parent-test {
18 compatible = "interrupt-three-cell";
19 #interrupt-cells = <3>;
20 interrupt-controller;
23 interrupts = <1 2 3 4 5 6>;
24 interrupt-names = "foo", "bar";
25 interrupt-parent = <&{/interrupt-parent-test/controller}>;
28 interrupts-extended-test {
29 controller-0 {
30 compatible = "interrupt-one-cell";
31 #interrupt-cells = <1>;
32 interrupt-controller;
34 controller-1 {
35 compatible = "interrupt-two-cell";
36 #interrupt-cells = <2>;
37 interrupt-controller;
39 controller-2 {
40 compatible = "interrupt-three-cell";
41 #interrupt-cells = <3>;
42 interrupt-controller;
45 interrupts-extended = <
46 &{/interrupts-extended-test/controller-0} 1
47 &{/interrupts-extended-test/controller-1} 2 3
48 &{/interrupts-extended-test/controller-2} 4 5 6>;
51 interrupt-map-test {
52 #address-cells = <2>;
53 #size-cells = <0>;
55 controller-0 {
56 compatible = "interrupt-one-cell";
57 #address-cells = <1>;
58 #interrupt-cells = <1>;
59 interrupt-controller;
61 controller-1 {
62 compatible = "interrupt-two-cell";
63 #address-cells = <2>;
64 #interrupt-cells = <2>;
65 interrupt-controller;
67 controller-2 {
68 compatible = "interrupt-three-cell";
69 #address-cells = <3>;
70 #interrupt-cells = <3>;
71 interrupt-controller;
74 #interrupt-cells = <2>;
75 interrupt-map = <
76 0 0 0 0 &{/interrupt-map-test/controller-0} 0 0
77 0 0 0 1 &{/interrupt-map-test/controller-1} 0 0 0 1
78 0 0 0 2 &{/interrupt-map-test/controller-2} 0 0 0 0 0 2
79 0 1 0 0 &{/interrupt-map-test/controller-0} 0 3
80 0 1 0 1 &{/interrupt-map-test/controller-1} 0 0 0 4
81 0 1 0 2 &{/interrupt-map-test/controller-2} 0 0 0 0 0 5>;
85 interrupts = <0 0 0 1 0 2>;
86 interrupt-parent = <&{/interrupt-map-test/nexus}>;
88 node@1 {
89 reg = <0 1>;
90 interrupts-extended = <
91 &{/interrupt-map-test/nexus} 0 0
92 &{/interrupt-map-test/nexus} 0 1
93 &{/interrupt-map-test/nexus} 0 2>;
96 interrupt-map-bitops-test {
97 #address-cells = <2>;
98 #size-cells = <0>;
101 compatible = "interrupt-two-cell";
102 #address-cells = <0>;
103 #interrupt-cells = <2>;
104 interrupt-controller;
107 #interrupt-cells = <2>;
108 interrupt-map = <
109 6 6 6 6 &{/interrupt-map-bitops-test/controller} 2 1
111 interrupt-map-mask = <0xE 0x7 0xE 0x7>;
114 interrupt-map-pass-thru = <1 2 3 3>;
118 // Pass-thru: 00000001 00000002 00000003 00000003
121 interrupt-parent = <&{/interrupt-map-bitops-test/nexus}>;
130 ranges-zero-cells {
131 #address-cells = <0>;
134 #address-cells = <0>;
135 #size-cells = <0>;
141 ranges-zero-parent-cells {
142 #address-cells = <0>;
145 #address-cells = <1>;
146 #size-cells = <0>;
154 ranges-one-address-cells {
155 #address-cells = <0>;
158 reg = <1>;
159 #address-cells = <1>;
167 ranges-one-address-two-size-cells {
168 #address-cells = <0>;
171 reg = <1>;
172 #address-cells = <1>;
173 #size-cells = <2>;
181 ranges-two-address-cells {
182 #address-cells = <1>;
184 node@1 {
185 reg = <1 2>;
193 ranges-two-address-two-size-cells {
194 #address-cells = <1>;
196 node@1 {
197 reg = <1 2>;
198 #size-cells = <2>;
206 ranges-three-address-cells {
207 node@1 {
208 reg = <0 1 2>;
209 #address-cells = <3>;
217 ranges-three-address-two-size-cells {
218 node@1 {
219 reg = <0 1 2>;
220 #address-cells = <3>;
221 #size-cells = <2>;
234 reg-zero-address-cells {
235 #address-cells = <0>;
236 #size-cells = <1>;
239 reg = <1 2>;
240 reg-names = "foo", "bar";
243 reg-zero-size-cells {
244 #address-cells = <1>;
245 #size-cells = <0>;
248 reg = <1 2>;
251 // Use implied #size-cells = <1>
252 reg-ranges {
253 #address-cells = <2>;
256 #address-cells = <1>;
257 ranges = <1 0xA 0xB 1 /* 1 -> 0xA 0xB */
258 2 0xC 0xD 2 /* 2..3 -> 0xC 0xD */
259 4 0xE 0xF 1 /* 4 -> 0xE 0xF */
263 reg = <5 1 /* Matches no range */
264 4 1 /* Matches third range */
265 3 1 /* Matches second range */
266 2 1 /* Matches second range */
267 1 1 /* Matches first range */
268 0 1 /* Matches no range */
273 // Build up <3 2 1> address with nested 'ranges'
274 reg-nested-ranges {
275 #address-cells = <3>;
278 #address-cells = <2>;
279 #size-cells = <2>;
283 #address-cells = <1>;
287 reg = <1 1>;
294 // 'pinctrl-<index>'
299 pinctrl-0 = <>;
300 pinctrl-1 = <&{/pinctrl/pincontroller/state-1}>;
301 pinctrl-2 = <&{/pinctrl/pincontroller/state-1}
302 &{/pinctrl/pincontroller/state-2}>;
303 pinctrl-names = "zero", "one", "two";
306 state-1 {
308 state-2 {
318 child-1 {
320 child-2 {
330 binding-include {
331 compatible = "binding-include-test";
333 bar = <1>;
339 bar = <1>;
351 existent-boolean;
352 int = <1>;
353 array = <1 2 3>;
354 uint8-array = [ 12 34 ];
356 string-array = "foo", "bar", "baz";
357 phandle-ref = < &{/ctrl-1} >;
358 phandle-refs = < &{/ctrl-1} &{/ctrl-2} >;
359 phandle-array-foos = < &{/ctrl-1} 1 &{/ctrl-2} 2 3 >;
360 foo-gpios = < &{/ctrl-1} 1 >;
361 path = &{/ctrl-1};
364 ctrl-1 {
365 compatible = "phandle-array-controller-1";
366 #phandle-array-foo-cells = <1>;
367 #gpio-cells = <1>;
370 ctrl-2 {
371 compatible = "phandle-array-controller-2";
372 #phandle-array-foo-cells = <2>;
375 props-2 {
377 phandle-array-foos = < &{/ctrl-0-1} 0 &{/ctrl-0-2} >;
378 phandle-array-foo-names = "a", "missing", "b";
381 ctrl-0-1 {
382 compatible = "phandle-array-controller-0";
383 #phandle-array-foo-cells = <0>;
386 ctrl-0-2 {
387 compatible = "phandle-array-controller-0";
388 #phandle-array-foo-cells = <0>;
392 // Test <prefix>-map, via gpio-map
395 gpio-map {
397 compatible = "gpio-src";
398 foo-gpios = <&{/gpio-map/connector} 3 4
399 &{/gpio-map/connector} 1 2>;
402 #gpio-cells = <2>;
405 gpio-map = <1 2 &{/gpio-map/destination} 5
406 3 4 &{/gpio-map/destination} 6>;
409 compatible = "gpio-dst";
410 gpio-controller;
411 #gpio-cells = <1>;
422 default-not-used = <234>;
431 int-enum = <1>;
432 string-enum = "foo_bar";
433 tokenizable-enum = "123 is ok";
434 tokenizable-lower-enum = "bar";
435 array-enum = <0 40 40 10>;
436 string-array-enum = "foo", "bar";
437 no-enum = "baz";
441 // For testing 'bus:' and 'on-bus:'
447 foo-bus {
448 compatible = "foo-bus";
450 compatible = "on-bus", "on-any-bus";
452 compatible = "on-bus";
456 compatible = "on-any-bus", "on-bus";
459 bar-bus {
460 compatible = "bar-bus";
462 compatible = "on-bus";
465 no-bus-node {
466 compatible = "on-any-bus";
471 // Node with 'child-binding:' in binding (along with a recursive
472 // 'child-binding:')
475 child-binding-dep {
478 child-binding {
479 compatible = "top-binding";
480 child-1 {
481 child-prop = <1>;
483 grandchild-prop = <2>;
484 grandchild-ref = < &{/child-binding-dep} >;
487 child-2 {
488 child-prop = <3>;
489 child-ref = < &{/child-binding-dep} >;
501 numbers = <1>, <2>, <3>;
504 handle = <&{/ctrl-1}>;
505 phandles = <&{/ctrl-1}>, <&{/ctrl-2}>;
506 phandle-array-foos = <&{/ctrl-2} 1 2>;
515 include-order {
516 node-1 {
517 compatible = "order-1";
518 foo = <1>;
520 node-2 {
521 compatible = "order-2";
529 test-deprecated {
530 compatible = "test-deprecated";
542 required = <1>;
543 required-2 = <2>;
544 #foo-cells = <2>;
545 sub-node {
546 foos = <&{/deprecated} 1 2>;