axc003_idu.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright (C) 2014, 2015 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /*
  9. * Device tree for AXC003 CPU card: HS38x2 (Dual Core) with IDU intc
  10. */
  11. /include/ "skeleton_hs_idu.dtsi"
  12. / {
  13. compatible = "snps,arc";
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. cpu_card {
  17. compatible = "simple-bus";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges = <0x00000000 0xf0000000 0x10000000>;
  21. core_clk: core_clk {
  22. #clock-cells = <0>;
  23. compatible = "fixed-clock";
  24. clock-frequency = <100000000>;
  25. };
  26. core_intc: archs-intc@cpu {
  27. compatible = "snps,archs-intc";
  28. interrupt-controller;
  29. #interrupt-cells = <1>;
  30. };
  31. idu_intc: idu-interrupt-controller {
  32. compatible = "snps,archs-idu-intc";
  33. interrupt-controller;
  34. interrupt-parent = <&core_intc>;
  35. /*
  36. * <hwirq distribution>
  37. * distribution: 0=RR; 1=cpu0, 2=cpu1, 4=cpu2, 8=cpu3
  38. */
  39. #interrupt-cells = <2>;
  40. /*
  41. * upstream irqs to core intc - downstream these are
  42. * "COMMON" irq 0,1..
  43. */
  44. interrupts = <24 25>;
  45. };
  46. /*
  47. * this GPIO block ORs all interrupts on CPU card (creg,..)
  48. * to uplink only 1 IRQ to ARC core intc
  49. */
  50. dw-apb-gpio@0x2000 {
  51. compatible = "snps,dw-apb-gpio";
  52. reg = < 0x2000 0x80 >;
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. ictl_intc: gpio-controller@0 {
  56. compatible = "snps,dw-apb-gpio-port";
  57. gpio-controller;
  58. #gpio-cells = <2>;
  59. snps,nr-gpios = <30>;
  60. reg = <0>;
  61. interrupt-controller;
  62. #interrupt-cells = <2>;
  63. interrupt-parent = <&idu_intc>;
  64. /*
  65. * cmn irq 1 -> cpu irq 25
  66. * Distribute to cpu0 only
  67. */
  68. interrupts = <1 1>;
  69. };
  70. };
  71. debug_uart: dw-apb-uart@0x5000 {
  72. compatible = "snps,dw-apb-uart";
  73. reg = <0x5000 0x100>;
  74. clock-frequency = <33333000>;
  75. interrupt-parent = <&ictl_intc>;
  76. interrupts = <2 4>;
  77. baud = <115200>;
  78. reg-shift = <2>;
  79. reg-io-width = <4>;
  80. };
  81. arcpct0: pct {
  82. compatible = "snps,archs-pct";
  83. #interrupt-cells = <1>;
  84. interrupt-parent = <&core_intc>;
  85. interrupts = <20>;
  86. };
  87. };
  88. /*
  89. * This INTC is actually connected to DW APB GPIO
  90. * which acts as a wire between MB INTC and CPU INTC.
  91. * GPIO INTC is configured in platform init code
  92. * and here we mimic direct connection from MB INTC to
  93. * CPU INTC, thus we set "interrupts = <0 1>" instead of
  94. * "interrupts = <12>"
  95. *
  96. * This intc actually resides on MB, but we move it here to
  97. * avoid duplicating the MB dtsi file given that IRQ from
  98. * this intc to cpu intc are different for axs101 and axs103
  99. */
  100. mb_intc: dw-apb-ictl@0xe0012000 {
  101. #interrupt-cells = <1>;
  102. compatible = "snps,dw-apb-ictl";
  103. reg = < 0xe0012000 0x200 >;
  104. interrupt-controller;
  105. interrupt-parent = <&idu_intc>;
  106. interrupts = <0 1>; /* cmn irq 0 -> cpu irq 24
  107. distribute to cpu0 only */
  108. };
  109. memory {
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. ranges = <0x00000000 0x80000000 0x40000000>;
  113. device_type = "memory";
  114. reg = <0x80000000 0x20000000>; /* 512MiB */
  115. };
  116. reserved-memory {
  117. #address-cells = <1>;
  118. #size-cells = <1>;
  119. ranges;
  120. /*
  121. * Move frame buffer out of IOC aperture (0x8z-0xAz).
  122. */
  123. frame_buffer: frame_buffer@be000000 {
  124. compatible = "shared-dma-pool";
  125. reg = <0xbe000000 0x2000000>;
  126. no-map;
  127. };
  128. };
  129. };