^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) / {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) testcase-data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) interrupts {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #size-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) test_intc0: intc0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #interrupt-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) test_intc1: intc1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #interrupt-cells = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) test_intc2: intc2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #interrupt-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) test_intmap0: intmap0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #interrupt-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #address-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) interrupt-map = <1 &test_intc0 9>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) <2 &test_intc1 10 11 12>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) <3 &test_intc2 13 14>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) <4 &test_intc2 15 16>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) test_intmap1: intmap1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #interrupt-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) interrupt-map = <0x5000 1 2 &test_intc0 15>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) interrupts0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) interrupt-parent = <&test_intc0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) interrupts = <1>, <2>, <3>, <4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) interrupts1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) interrupt-parent = <&test_intmap0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) interrupts = <1>, <2>, <3>, <4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) interrupts-extended0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) reg = <0x5000 0x100>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) interrupts-extended = <&test_intc0 1>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) <&test_intc1 2 3 4>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) <&test_intc2 5 6>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) <&test_intmap0 1>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) <&test_intmap0 2>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) <&test_intmap0 3>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) <&test_intmap1 1 2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) testcase-device1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) compatible = "testcase-device";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) interrupt-parent = <&test_intc0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) interrupts = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) testcase-device2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) compatible = "testcase-device";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) interrupt-parent = <&test_intc2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) interrupts = <1>; /* invalid specifier - too short */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) };