tests-interrupts.dtsi 1.4 KB

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