axc003_idu.dtsi 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 = <2>;
  15. #size-cells = <2>;
  16. cpu_card {
  17. compatible = "simple-bus";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
  21. input_clk: input-clk {
  22. #clock-cells = <0>;
  23. compatible = "fixed-clock";
  24. clock-frequency = <33333333>;
  25. };
  26. core_clk: core-clk@80 {
  27. compatible = "snps,axs10x-arc-pll-clock";
  28. reg = <0x80 0x10>, <0x100 0x10>;
  29. #clock-cells = <0>;
  30. clocks = <&input_clk>;
  31. /*
  32. * Set initial core pll output frequency to 100MHz.
  33. * It will be applied at the core pll driver probing
  34. * on early boot.
  35. */
  36. assigned-clocks = <&core_clk>;
  37. assigned-clock-rates = <100000000>;
  38. };
  39. core_intc: archs-intc@cpu {
  40. compatible = "snps,archs-intc";
  41. interrupt-controller;
  42. #interrupt-cells = <1>;
  43. };
  44. idu_intc: idu-interrupt-controller {
  45. compatible = "snps,archs-idu-intc";
  46. interrupt-controller;
  47. interrupt-parent = <&core_intc>;
  48. #interrupt-cells = <1>;
  49. };
  50. /*
  51. * this GPIO block ORs all interrupts on CPU card (creg,..)
  52. * to uplink only 1 IRQ to ARC core intc
  53. */
  54. dw-apb-gpio@0x2000 {
  55. compatible = "snps,dw-apb-gpio";
  56. reg = < 0x2000 0x80 >;
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. ictl_intc: gpio-controller@0 {
  60. compatible = "snps,dw-apb-gpio-port";
  61. gpio-controller;
  62. #gpio-cells = <2>;
  63. snps,nr-gpios = <30>;
  64. reg = <0>;
  65. interrupt-controller;
  66. #interrupt-cells = <2>;
  67. interrupt-parent = <&idu_intc>;
  68. interrupts = <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. * Mark DMA peripherals connected via IOC port as dma-coherent. We do
  90. * it via overlay because peripherals defined in axs10x_mb.dtsi are
  91. * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
  92. * only AXS103 board has HW-coherent DMA peripherals)
  93. * We don't need to mark pgu@17000 as dma-coherent because it uses
  94. * external DMA buffer located outside of IOC aperture.
  95. */
  96. axs10x_mb {
  97. ethernet@0x18000 {
  98. dma-coherent;
  99. };
  100. ehci@0x40000 {
  101. dma-coherent;
  102. };
  103. ohci@0x60000 {
  104. dma-coherent;
  105. };
  106. mmc@0x15000 {
  107. dma-coherent;
  108. };
  109. };
  110. /*
  111. * This INTC is actually connected to DW APB GPIO
  112. * which acts as a wire between MB INTC and CPU INTC.
  113. * GPIO INTC is configured in platform init code
  114. * and here we mimic direct connection from MB INTC to
  115. * CPU INTC, thus we set "interrupts = <0 1>" instead of
  116. * "interrupts = <12>"
  117. *
  118. * This intc actually resides on MB, but we move it here to
  119. * avoid duplicating the MB dtsi file given that IRQ from
  120. * this intc to cpu intc are different for axs101 and axs103
  121. */
  122. mb_intc: dw-apb-ictl@0xe0012000 {
  123. #interrupt-cells = <1>;
  124. compatible = "snps,dw-apb-ictl";
  125. reg = < 0x0 0xe0012000 0x0 0x200 >;
  126. interrupt-controller;
  127. interrupt-parent = <&idu_intc>;
  128. interrupts = <0>;
  129. };
  130. memory {
  131. device_type = "memory";
  132. /* CONFIG_LINUX_RAM_BASE needs to match low mem start */
  133. reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
  134. 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
  135. };
  136. reserved-memory {
  137. #address-cells = <2>;
  138. #size-cells = <2>;
  139. ranges;
  140. /*
  141. * Move frame buffer out of IOC aperture (0x8z-0xAz).
  142. */
  143. frame_buffer: frame_buffer@be000000 {
  144. compatible = "shared-dma-pool";
  145. reg = <0x0 0xbe000000 0x0 0x2000000>;
  146. no-map;
  147. };
  148. };
  149. };