xref: /linux/drivers/of/unittest-data/tests-interrupts.dtsi (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1
2/ {
3	testcase-data {
4		interrupts {
5			#address-cells = <1>;
6			#size-cells = <1>;
7			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
31			test_intmap1: intmap1 {
32				#interrupt-cells = <2>;
33				interrupt-map = <0x5000 1 2 &test_intc0 15>;
34			};
35
36			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			};
45
46			interrupts-extended0 {
47				reg = <0x5000 0x100>;
48				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			};
56		};
57
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		};
69	};
70
71};
72