Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 
0003 / {
0004         testcase-data {
0005                 interrupts {
0006                         #address-cells = <1>;
0007                         #size-cells = <1>;
0008                         test_intc0: intc0 {
0009                                 interrupt-controller;
0010                                 #interrupt-cells = <1>;
0011                         };
0012 
0013                         test_intc1: intc1 {
0014                                 interrupt-controller;
0015                                 #interrupt-cells = <3>;
0016                         };
0017 
0018                         test_intc2: intc2 {
0019                                 interrupt-controller;
0020                                 #interrupt-cells = <2>;
0021                         };
0022 
0023                         test_intmap0: intmap0 {
0024                                 #interrupt-cells = <1>;
0025                                 #address-cells = <0>;
0026                                 interrupt-map = <1 &test_intc0 9>,
0027                                                 <2 &test_intc1 10 11 12>,
0028                                                 <3 &test_intc2 13 14>,
0029                                                 <4 &test_intc2 15 16>;
0030                         };
0031 
0032                         test_intmap1: intmap1 {
0033                                 #interrupt-cells = <2>;
0034                                 /*
0035                                  * #address-cells is required
0036                                  *
0037                                  * The property is not provided in this node to
0038                                  * test that the code will properly handle
0039                                  * this case for legacy .dts files.
0040                                  *
0041                                  * Not having #address-cells will result in a
0042                                  * warning from dtc starting with
0043                                  * version v1.6.1-19-g0a3a9d3449c8
0044                                  * The warning is suppressed by adding
0045                                  * -Wno-interrupt_map to the Makefile for all
0046                                  * .dts files this include this .dtsi
0047                                 #address-cells = <1>;
0048                                  */
0049                                 interrupt-map = <0x5000 1 2 &test_intc0 15>;
0050                         };
0051 
0052                         interrupts0 {
0053                                 interrupt-parent = <&test_intc0>;
0054                                 interrupts = <1>, <2>, <3>, <4>;
0055                         };
0056 
0057                         interrupts1 {
0058                                 interrupt-parent = <&test_intmap0>;
0059                                 interrupts = <1>, <2>, <3>, <4>;
0060                         };
0061 
0062                         interrupts-extended0 {
0063                                 reg = <0x5000 0x100>;
0064                                 /*
0065                                  * Do not remove &test_intmap1 from this
0066                                  * property - see comment in node intmap1
0067                                  */
0068                                 interrupts-extended = <&test_intc0 1>,
0069                                                       <&test_intc1 2 3 4>,
0070                                                       <&test_intc2 5 6>,
0071                                                       <&test_intmap0 1>,
0072                                                       <&test_intmap0 2>,
0073                                                       <&test_intmap0 3>,
0074                                                       <&test_intmap1 1 2>;
0075                         };
0076                 };
0077 
0078                 testcase-device1 {
0079                         compatible = "testcase-device";
0080                         interrupt-parent = <&test_intc0>;
0081                         interrupts = <1>;
0082                 };
0083 
0084                 /*
0085                  * testcase data that intentionally results in an error is
0086                  * located in testcases.dts instead of in this file so that the
0087                  * static overlay apply tests will not include the error.
0088                  */
0089         };
0090 };