aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/testcases/tests-interrupts.dtsi41
-rw-r--r--arch/arm/boot/dts/testcases/tests.dtsi1
2 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/testcases/tests-interrupts.dtsi b/arch/arm/boot/dts/testcases/tests-interrupts.dtsi
new file mode 100644
index 000000000000..6ecda716e9d4
--- /dev/null
+++ b/arch/arm/boot/dts/testcases/tests-interrupts.dtsi
@@ -0,0 +1,41 @@
1
2/ {
3 testcase-data {
4 interrupts {
5 #address-cells = <0>;
6 test_intc0: intc0 {
7 interrupt-controller;
8 #interrupt-cells = <1>;
9 };
10
11 test_intc1: intc1 {
12 interrupt-controller;
13 #interrupt-cells = <3>;
14 };
15
16 test_intc2: intc2 {
17 interrupt-controller;
18 #interrupt-cells = <2>;
19 };
20
21 test_intmap0: intmap0 {
22 #interrupt-cells = <1>;
23 #address-cells = <0>;
24 interrupt-map = <1 &test_intc0 9>,
25 <2 &test_intc1 10 11 12>,
26 <3 &test_intc2 13 14>,
27 <4 &test_intc2 15 16>;
28 };
29
30 interrupts0 {
31 interrupt-parent = <&test_intc0>;
32 interrupts = <1>, <2>, <3>, <4>;
33 };
34
35 interrupts1 {
36 interrupt-parent = <&test_intmap0>;
37 interrupts = <1>, <2>, <3>, <4>;
38 };
39 };
40 };
41};
diff --git a/arch/arm/boot/dts/testcases/tests.dtsi b/arch/arm/boot/dts/testcases/tests.dtsi
index a7c5067622e8..3f123ecc9dd7 100644
--- a/arch/arm/boot/dts/testcases/tests.dtsi
+++ b/arch/arm/boot/dts/testcases/tests.dtsi
@@ -1 +1,2 @@
1/include/ "tests-phandle.dtsi" 1/include/ "tests-phandle.dtsi"
2/include/ "tests-interrupts.dtsi"