blob: da4695f60351ad4c7c24aecf791a5a6c2b71edfc [file] [log] [blame]
Grant Likelya9f10ca2013-10-11 22:04:23 +01001
2/ {
3 testcase-data {
4 interrupts {
Grant Likely78119fd2013-11-01 10:50:50 -07005 #address-cells = <1>;
6 #size-cells = <1>;
Grant Likelya9f10ca2013-10-11 22:04:23 +01007 test_intc0: intc0 {
8 interrupt-controller;
9 #interrupt-cells = <1>;
10 };
11
12 test_intc1: intc1 {
13 interrupt-controller;
14 #interrupt-cells = <3>;
15 };
16
17 test_intc2: intc2 {
18 interrupt-controller;
19 #interrupt-cells = <2>;
20 };
21
22 test_intmap0: intmap0 {
23 #interrupt-cells = <1>;
24 #address-cells = <0>;
25 interrupt-map = <1 &test_intc0 9>,
26 <2 &test_intc1 10 11 12>,
27 <3 &test_intc2 13 14>,
28 <4 &test_intc2 15 16>;
29 };
30
Grant Likely79d97012013-09-19 16:47:37 -050031 test_intmap1: intmap1 {
32 #interrupt-cells = <2>;
Grant Likely78119fd2013-11-01 10:50:50 -070033 interrupt-map = <0x5000 1 2 &test_intc0 15>;
Grant Likely79d97012013-09-19 16:47:37 -050034 };
35
Grant Likelya9f10ca2013-10-11 22:04:23 +010036 interrupts0 {
37 interrupt-parent = <&test_intc0>;
38 interrupts = <1>, <2>, <3>, <4>;
39 };
40
41 interrupts1 {
42 interrupt-parent = <&test_intmap0>;
43 interrupts = <1>, <2>, <3>, <4>;
44 };
Grant Likely79d97012013-09-19 16:47:37 -050045
46 interrupts-extended0 {
Grant Likely78119fd2013-11-01 10:50:50 -070047 reg = <0x5000 0x100>;
Grant Likely79d97012013-09-19 16:47:37 -050048 interrupts-extended = <&test_intc0 1>,
49 <&test_intc1 2 3 4>,
50 <&test_intc2 5 6>,
51 <&test_intmap0 1>,
52 <&test_intmap0 2>,
53 <&test_intmap0 3>,
54 <&test_intmap1 1 2>;
55 };
Grant Likelya9f10ca2013-10-11 22:04:23 +010056 };
Rob Herring82c0f582014-04-23 17:57:40 -050057
58 testcase-device1 {
59 compatible = "testcase-device";
60 interrupt-parent = <&test_intc0>;
61 interrupts = <1>;
62 };
63
64 testcase-device2 {
65 compatible = "testcase-device";
66 interrupt-parent = <&test_intc2>;
67 interrupts = <1>; /* invalid specifier - too short */
68 };
Grant Likelya9f10ca2013-10-11 22:04:23 +010069 };
Rob Herring82c0f582014-04-23 17:57:40 -050070
Grant Likelya9f10ca2013-10-11 22:04:23 +010071};