Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 1 | |
| 2 | / { |
| 3 | testcase-data { |
| 4 | interrupts { |
Grant Likely | 78119fd | 2013-11-01 10:50:50 -0700 | [diff] [blame] | 5 | #address-cells = <1>; |
| 6 | #size-cells = <1>; |
Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 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 | |
Grant Likely | 79d9701 | 2013-09-19 16:47:37 -0500 | [diff] [blame] | 31 | test_intmap1: intmap1 { |
| 32 | #interrupt-cells = <2>; |
Grant Likely | 78119fd | 2013-11-01 10:50:50 -0700 | [diff] [blame] | 33 | interrupt-map = <0x5000 1 2 &test_intc0 15>; |
Grant Likely | 79d9701 | 2013-09-19 16:47:37 -0500 | [diff] [blame] | 34 | }; |
| 35 | |
Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 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 | }; |
Grant Likely | 79d9701 | 2013-09-19 16:47:37 -0500 | [diff] [blame] | 45 | |
| 46 | interrupts-extended0 { |
Grant Likely | 78119fd | 2013-11-01 10:50:50 -0700 | [diff] [blame] | 47 | reg = <0x5000 0x100>; |
Grant Likely | 79d9701 | 2013-09-19 16:47:37 -0500 | [diff] [blame] | 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 | }; |
Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 56 | }; |
Rob Herring | 82c0f58 | 2014-04-23 17:57:40 -0500 | [diff] [blame] | 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 | }; |
Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 69 | }; |
Rob Herring | 82c0f58 | 2014-04-23 17:57:40 -0500 | [diff] [blame] | 70 | |
Grant Likely | a9f10ca | 2013-10-11 22:04:23 +0100 | [diff] [blame] | 71 | }; |