axc003_idu.dtsi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014, 2015 Synopsys, Inc. (www.synopsys.com)
  4. */
  5. /*
  6. * Device tree for AXC003 CPU card: HS38x2 (Dual Core) with IDU intc
  7. */
  8. /include/ "skeleton_hs_idu.dtsi"
  9. / {
  10. compatible = "snps,arc";
  11. #address-cells = <2>;
  12. #size-cells = <2>;
  13. cpu_card {
  14. compatible = "simple-bus";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
  18. input_clk: input-clk {
  19. #clock-cells = <0>;
  20. compatible = "fixed-clock";
  21. clock-frequency = <33333333>;
  22. };
  23. core_clk: core-clk@80 {
  24. compatible = "snps,axs10x-arc-pll-clock";
  25. reg = <0x80 0x10>, <0x100 0x10>;
  26. #clock-cells = <0>;
  27. clocks = <&input_clk>;
  28. /*
  29. * Set initial core pll output frequency to 100MHz.
  30. * It will be applied at the core pll driver probing
  31. * on early boot.
  32. */
  33. assigned-clocks = <&core_clk>;
  34. assigned-clock-rates = <100000000>;
  35. };
  36. core_intc: archs-intc@cpu {
  37. compatible = "snps,archs-intc";
  38. interrupt-controller;
  39. #interrupt-cells = <1>;
  40. };
  41. idu_intc: idu-interrupt-controller {
  42. compatible = "snps,archs-idu-intc";
  43. interrupt-controller;
  44. interrupt-parent = <&core_intc>;
  45. #interrupt-cells = <1>;
  46. };
  47. /*
  48. * this GPIO block ORs all interrupts on CPU card (creg,..)
  49. * to uplink only 1 IRQ to ARC core intc
  50. */
  51. dw-apb-gpio@2000 {
  52. compatible = "snps,dw-apb-gpio";
  53. reg = < 0x2000 0x80 >;
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. ictl_intc: gpio-controller@0 {
  57. compatible = "snps,dw-apb-gpio-port";
  58. gpio-controller;
  59. #gpio-cells = <2>;
  60. snps,nr-gpios = <30>;
  61. reg = <0>;
  62. interrupt-controller;
  63. #interrupt-cells = <2>;
  64. interrupt-parent = <&idu_intc>;
  65. interrupts = <1>;
  66. };
  67. };
  68. debug_uart: dw-apb-uart@5000 {
  69. compatible = "snps,dw-apb-uart";
  70. reg = <0x5000 0x100>;
  71. clock-frequency = <33333000>;
  72. interrupt-parent = <&ictl_intc>;
  73. interrupts = <2 4>;
  74. baud = <115200>;
  75. reg-shift = <2>;
  76. reg-io-width = <4>;
  77. };
  78. arcpct0: pct {
  79. compatible = "snps,archs-pct";
  80. #interrupt-cells = <1>;
  81. interrupt-parent = <&core_intc>;
  82. interrupts = <20>;
  83. };
  84. };
  85. /*
  86. * Mark DMA peripherals connected via IOC port as dma-coherent. We do
  87. * it via overlay because peripherals defined in axs10x_mb.dtsi are
  88. * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
  89. * only AXS103 board has HW-coherent DMA peripherals)
  90. * We don't need to mark pgu@17000 as dma-coherent because it uses
  91. * external DMA buffer located outside of IOC aperture.
  92. */
  93. axs10x_mb {
  94. ethernet@18000 {
  95. dma-coherent;
  96. };
  97. usb@40000 {
  98. dma-coherent;
  99. };
  100. usb@60000 {
  101. dma-coherent;
  102. };
  103. mmc@15000 {
  104. dma-coherent;
  105. };
  106. };
  107. /*
  108. * This INTC is actually connected to DW APB GPIO
  109. * which acts as a wire between MB INTC and CPU INTC.
  110. * GPIO INTC is configured in platform init code
  111. * and here we mimic direct connection from MB INTC to
  112. * CPU INTC, thus we set "interrupts = <0 1>" instead of
  113. * "interrupts = <12>"
  114. *
  115. * This intc actually resides on MB, but we move it here to
  116. * avoid duplicating the MB dtsi file given that IRQ from
  117. * this intc to cpu intc are different for axs101 and axs103
  118. */
  119. mb_intc: interrupt-controller@e0012000 {
  120. #interrupt-cells = <1>;
  121. compatible = "snps,dw-apb-ictl";
  122. reg = < 0x0 0xe0012000 0x0 0x200 >;
  123. interrupt-controller;
  124. interrupt-parent = <&idu_intc>;
  125. interrupts = <0>;
  126. };
  127. memory {
  128. device_type = "memory";
  129. /* CONFIG_LINUX_RAM_BASE needs to match low mem start */
  130. reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
  131. 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
  132. };
  133. reserved-memory {
  134. #address-cells = <2>;
  135. #size-cells = <2>;
  136. ranges;
  137. /*
  138. * Move frame buffer out of IOC aperture (0x8z-0xaz).
  139. */
  140. frame_buffer: frame_buffer@be000000 {
  141. compatible = "shared-dma-pool";
  142. reg = <0x0 0xbe000000 0x0 0x2000000>;
  143. no-map;
  144. };
  145. };
  146. };