1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0 219fd7487SGrant Likely 319fd7487SGrant Likely/ { 419fd7487SGrant Likely testcase-data { 519fd7487SGrant Likely interrupts { 619fd7487SGrant Likely #address-cells = <1>; 719fd7487SGrant Likely #size-cells = <1>; 819fd7487SGrant Likely test_intc0: intc0 { 919fd7487SGrant Likely interrupt-controller; 1019fd7487SGrant Likely #interrupt-cells = <1>; 1119fd7487SGrant Likely }; 1219fd7487SGrant Likely 1319fd7487SGrant Likely test_intc1: intc1 { 1419fd7487SGrant Likely interrupt-controller; 1519fd7487SGrant Likely #interrupt-cells = <3>; 1619fd7487SGrant Likely }; 1719fd7487SGrant Likely 1819fd7487SGrant Likely test_intc2: intc2 { 1919fd7487SGrant Likely interrupt-controller; 2019fd7487SGrant Likely #interrupt-cells = <2>; 2119fd7487SGrant Likely }; 2219fd7487SGrant Likely 2319fd7487SGrant Likely test_intmap0: intmap0 { 2419fd7487SGrant Likely #interrupt-cells = <1>; 2519fd7487SGrant Likely #address-cells = <0>; 2619fd7487SGrant Likely interrupt-map = <1 &test_intc0 9>, 2719fd7487SGrant Likely <2 &test_intc1 10 11 12>, 2819fd7487SGrant Likely <3 &test_intc2 13 14>, 2919fd7487SGrant Likely <4 &test_intc2 15 16>; 3019fd7487SGrant Likely }; 3119fd7487SGrant Likely 3219fd7487SGrant Likely test_intmap1: intmap1 { 3319fd7487SGrant Likely #interrupt-cells = <2>; 34*95265655SFrank Rowand /* 35*95265655SFrank Rowand * #address-cells is required 36*95265655SFrank Rowand * 37*95265655SFrank Rowand * The property is not provided in this node to 38*95265655SFrank Rowand * test that the code will properly handle 39*95265655SFrank Rowand * this case for legacy .dts files. 40*95265655SFrank Rowand * 41*95265655SFrank Rowand * Not having #address-cells will result in a 42*95265655SFrank Rowand * warning from dtc starting with 43*95265655SFrank Rowand * version v1.6.1-19-g0a3a9d3449c8 44*95265655SFrank Rowand * The warning is suppressed by adding 45*95265655SFrank Rowand * -Wno-interrupt_map to the Makefile for all 46*95265655SFrank Rowand * .dts files this include this .dtsi 47*95265655SFrank Rowand #address-cells = <1>; 48*95265655SFrank Rowand */ 4919fd7487SGrant Likely interrupt-map = <0x5000 1 2 &test_intc0 15>; 5019fd7487SGrant Likely }; 5119fd7487SGrant Likely 5219fd7487SGrant Likely interrupts0 { 5319fd7487SGrant Likely interrupt-parent = <&test_intc0>; 5419fd7487SGrant Likely interrupts = <1>, <2>, <3>, <4>; 5519fd7487SGrant Likely }; 5619fd7487SGrant Likely 5719fd7487SGrant Likely interrupts1 { 5819fd7487SGrant Likely interrupt-parent = <&test_intmap0>; 5919fd7487SGrant Likely interrupts = <1>, <2>, <3>, <4>; 6019fd7487SGrant Likely }; 6119fd7487SGrant Likely 6219fd7487SGrant Likely interrupts-extended0 { 6319fd7487SGrant Likely reg = <0x5000 0x100>; 64*95265655SFrank Rowand /* 65*95265655SFrank Rowand * Do not remove &test_intmap1 from this 66*95265655SFrank Rowand * property - see comment in node intmap1 67*95265655SFrank Rowand */ 6819fd7487SGrant Likely interrupts-extended = <&test_intc0 1>, 6919fd7487SGrant Likely <&test_intc1 2 3 4>, 7019fd7487SGrant Likely <&test_intc2 5 6>, 7119fd7487SGrant Likely <&test_intmap0 1>, 7219fd7487SGrant Likely <&test_intmap0 2>, 7319fd7487SGrant Likely <&test_intmap0 3>, 7419fd7487SGrant Likely <&test_intmap1 1 2>; 7519fd7487SGrant Likely }; 7619fd7487SGrant Likely }; 7719fd7487SGrant Likely 7819fd7487SGrant Likely testcase-device1 { 7919fd7487SGrant Likely compatible = "testcase-device"; 8019fd7487SGrant Likely interrupt-parent = <&test_intc0>; 8119fd7487SGrant Likely interrupts = <1>; 8219fd7487SGrant Likely }; 8319fd7487SGrant Likely 84d92e2443SViresh Kumar /* 85d92e2443SViresh Kumar * testcase data that intentionally results in an error is 86d92e2443SViresh Kumar * located in testcases.dts instead of in this file so that the 87d92e2443SViresh Kumar * static overlay apply tests will not include the error. 88d92e2443SViresh Kumar */ 8919fd7487SGrant Likely }; 9019fd7487SGrant Likely}; 91