hsdk.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /*
  2. * Copyright (C) 2017 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 ARC HS Development Kit
  10. */
  11. /dts-v1/;
  12. #include <dt-bindings/net/ti-dp83867.h>
  13. #include <dt-bindings/reset/snps,hsdk-reset.h>
  14. / {
  15. model = "snps,hsdk";
  16. compatible = "snps,hsdk";
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. chosen {
  20. bootargs = "earlycon=uart8250,mmio32,0xf0005000,115200n8 console=ttyS0,115200n8 debug print-fatal-signals=1";
  21. };
  22. aliases {
  23. ethernet = &gmac;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. cpu@0 {
  29. device_type = "cpu";
  30. compatible = "snps,archs38";
  31. reg = <0>;
  32. clocks = <&core_clk>;
  33. };
  34. cpu@1 {
  35. device_type = "cpu";
  36. compatible = "snps,archs38";
  37. reg = <1>;
  38. clocks = <&core_clk>;
  39. };
  40. cpu@2 {
  41. device_type = "cpu";
  42. compatible = "snps,archs38";
  43. reg = <2>;
  44. clocks = <&core_clk>;
  45. };
  46. cpu@3 {
  47. device_type = "cpu";
  48. compatible = "snps,archs38";
  49. reg = <3>;
  50. clocks = <&core_clk>;
  51. };
  52. };
  53. input_clk: input-clk {
  54. #clock-cells = <0>;
  55. compatible = "fixed-clock";
  56. clock-frequency = <33333333>;
  57. };
  58. cpu_intc: cpu-interrupt-controller {
  59. compatible = "snps,archs-intc";
  60. interrupt-controller;
  61. #interrupt-cells = <1>;
  62. };
  63. idu_intc: idu-interrupt-controller {
  64. compatible = "snps,archs-idu-intc";
  65. interrupt-controller;
  66. #interrupt-cells = <1>;
  67. interrupt-parent = <&cpu_intc>;
  68. };
  69. arcpct: pct {
  70. compatible = "snps,archs-pct";
  71. interrupt-parent = <&cpu_intc>;
  72. interrupts = <20>;
  73. };
  74. /* TIMER0 with interrupt for clockevent */
  75. timer {
  76. compatible = "snps,arc-timer";
  77. interrupts = <16>;
  78. interrupt-parent = <&cpu_intc>;
  79. clocks = <&core_clk>;
  80. };
  81. /* 64-bit Global Free Running Counter */
  82. gfrc {
  83. compatible = "snps,archs-timer-gfrc";
  84. clocks = <&core_clk>;
  85. };
  86. soc {
  87. compatible = "simple-bus";
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. interrupt-parent = <&idu_intc>;
  91. ranges = <0x00000000 0xf0000000 0x10000000>;
  92. cgu_rst: reset-controller@8a0 {
  93. compatible = "snps,hsdk-reset";
  94. #reset-cells = <1>;
  95. reg = <0x8A0 0x4>, <0xFF0 0x4>;
  96. };
  97. core_clk: core-clk@0 {
  98. compatible = "snps,hsdk-core-pll-clock";
  99. reg = <0x00 0x10>, <0x14B8 0x4>;
  100. #clock-cells = <0>;
  101. clocks = <&input_clk>;
  102. /*
  103. * Set initial core pll output frequency to 1GHz.
  104. * It will be applied at the core pll driver probing
  105. * on early boot.
  106. */
  107. assigned-clocks = <&core_clk>;
  108. assigned-clock-rates = <1000000000>;
  109. };
  110. serial: serial@5000 {
  111. compatible = "snps,dw-apb-uart";
  112. reg = <0x5000 0x100>;
  113. clock-frequency = <33330000>;
  114. interrupts = <6>;
  115. baud = <115200>;
  116. reg-shift = <2>;
  117. reg-io-width = <4>;
  118. };
  119. gmacclk: gmacclk {
  120. compatible = "fixed-clock";
  121. clock-frequency = <400000000>;
  122. #clock-cells = <0>;
  123. };
  124. mmcclk_ciu: mmcclk-ciu {
  125. compatible = "fixed-clock";
  126. /*
  127. * DW sdio controller has external ciu clock divider
  128. * controlled via register in SDIO IP. Due to its
  129. * unexpected default value (it should divide by 1
  130. * but it divides by 8) SDIO IP uses wrong clock and
  131. * works unstable (see STAR 9001204800)
  132. * We switched to the minimum possible value of the
  133. * divisor (div-by-2) in HSDK platform code.
  134. * So add temporary fix and change clock frequency
  135. * to 50000000 Hz until we fix dw sdio driver itself.
  136. */
  137. clock-frequency = <50000000>;
  138. #clock-cells = <0>;
  139. };
  140. mmcclk_biu: mmcclk-biu {
  141. compatible = "fixed-clock";
  142. clock-frequency = <400000000>;
  143. #clock-cells = <0>;
  144. };
  145. gmac: ethernet@8000 {
  146. #interrupt-cells = <1>;
  147. compatible = "snps,dwmac";
  148. reg = <0x8000 0x2000>;
  149. interrupts = <10>;
  150. interrupt-names = "macirq";
  151. phy-mode = "rgmii-id";
  152. snps,pbl = <32>;
  153. snps,multicast-filter-bins = <256>;
  154. clocks = <&gmacclk>;
  155. clock-names = "stmmaceth";
  156. phy-handle = <&phy0>;
  157. resets = <&cgu_rst HSDK_ETH_RESET>;
  158. reset-names = "stmmaceth";
  159. mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
  160. dma-coherent;
  161. tx-fifo-depth = <4096>;
  162. rx-fifo-depth = <4096>;
  163. mdio {
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. compatible = "snps,dwmac-mdio";
  167. phy0: ethernet-phy@0 { /* Micrel KSZ9031 */
  168. reg = <0>;
  169. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  170. ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  171. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  172. };
  173. };
  174. };
  175. ohci@60000 {
  176. compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
  177. reg = <0x60000 0x100>;
  178. interrupts = <15>;
  179. dma-coherent;
  180. };
  181. ehci@40000 {
  182. compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
  183. reg = <0x40000 0x100>;
  184. interrupts = <15>;
  185. dma-coherent;
  186. };
  187. mmc@a000 {
  188. compatible = "altr,socfpga-dw-mshc";
  189. reg = <0xa000 0x400>;
  190. num-slots = <1>;
  191. fifo-depth = <16>;
  192. card-detect-delay = <200>;
  193. clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
  194. clock-names = "biu", "ciu";
  195. interrupts = <12>;
  196. bus-width = <4>;
  197. dma-coherent;
  198. };
  199. };
  200. memory@80000000 {
  201. #address-cells = <1>;
  202. #size-cells = <1>;
  203. device_type = "memory";
  204. reg = <0x80000000 0x40000000>; /* 1 GiB */
  205. };
  206. };