hsdk.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. };
  72. /* TIMER0 with interrupt for clockevent */
  73. timer {
  74. compatible = "snps,arc-timer";
  75. interrupts = <16>;
  76. interrupt-parent = <&cpu_intc>;
  77. clocks = <&core_clk>;
  78. };
  79. /* 64-bit Global Free Running Counter */
  80. gfrc {
  81. compatible = "snps,archs-timer-gfrc";
  82. clocks = <&core_clk>;
  83. };
  84. soc {
  85. compatible = "simple-bus";
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. interrupt-parent = <&idu_intc>;
  89. ranges = <0x00000000 0xf0000000 0x10000000>;
  90. cgu_rst: reset-controller@8a0 {
  91. compatible = "snps,hsdk-reset";
  92. #reset-cells = <1>;
  93. reg = <0x8A0 0x4>, <0xFF0 0x4>;
  94. };
  95. core_clk: core-clk@0 {
  96. compatible = "snps,hsdk-core-pll-clock";
  97. reg = <0x00 0x10>, <0x14B8 0x4>;
  98. #clock-cells = <0>;
  99. clocks = <&input_clk>;
  100. /*
  101. * Set initial core pll output frequency to 1GHz.
  102. * It will be applied at the core pll driver probing
  103. * on early boot.
  104. */
  105. assigned-clocks = <&core_clk>;
  106. assigned-clock-rates = <1000000000>;
  107. };
  108. serial: serial@5000 {
  109. compatible = "snps,dw-apb-uart";
  110. reg = <0x5000 0x100>;
  111. clock-frequency = <33330000>;
  112. interrupts = <6>;
  113. baud = <115200>;
  114. reg-shift = <2>;
  115. reg-io-width = <4>;
  116. };
  117. gmacclk: gmacclk {
  118. compatible = "fixed-clock";
  119. clock-frequency = <400000000>;
  120. #clock-cells = <0>;
  121. };
  122. mmcclk_ciu: mmcclk-ciu {
  123. compatible = "fixed-clock";
  124. /*
  125. * DW sdio controller has external ciu clock divider
  126. * controlled via register in SDIO IP. Due to its
  127. * unexpected default value (it should divide by 1
  128. * but it divides by 8) SDIO IP uses wrong clock and
  129. * works unstable (see STAR 9001204800)
  130. * We switched to the minimum possible value of the
  131. * divisor (div-by-2) in HSDK platform code.
  132. * So add temporary fix and change clock frequency
  133. * to 50000000 Hz until we fix dw sdio driver itself.
  134. */
  135. clock-frequency = <50000000>;
  136. #clock-cells = <0>;
  137. };
  138. mmcclk_biu: mmcclk-biu {
  139. compatible = "fixed-clock";
  140. clock-frequency = <400000000>;
  141. #clock-cells = <0>;
  142. };
  143. gmac: ethernet@8000 {
  144. #interrupt-cells = <1>;
  145. compatible = "snps,dwmac";
  146. reg = <0x8000 0x2000>;
  147. interrupts = <10>;
  148. interrupt-names = "macirq";
  149. phy-mode = "rgmii";
  150. snps,pbl = <32>;
  151. snps,multicast-filter-bins = <256>;
  152. clocks = <&gmacclk>;
  153. clock-names = "stmmaceth";
  154. phy-handle = <&phy0>;
  155. resets = <&cgu_rst HSDK_ETH_RESET>;
  156. reset-names = "stmmaceth";
  157. mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
  158. dma-coherent;
  159. tx-fifo-depth = <4096>;
  160. rx-fifo-depth = <4096>;
  161. mdio {
  162. #address-cells = <1>;
  163. #size-cells = <0>;
  164. compatible = "snps,dwmac-mdio";
  165. phy0: ethernet-phy@0 {
  166. reg = <0>;
  167. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  168. ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  169. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  170. };
  171. };
  172. };
  173. ohci@60000 {
  174. compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
  175. reg = <0x60000 0x100>;
  176. interrupts = <15>;
  177. dma-coherent;
  178. };
  179. ehci@40000 {
  180. compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
  181. reg = <0x40000 0x100>;
  182. interrupts = <15>;
  183. dma-coherent;
  184. };
  185. mmc@a000 {
  186. compatible = "altr,socfpga-dw-mshc";
  187. reg = <0xa000 0x400>;
  188. num-slots = <1>;
  189. fifo-depth = <16>;
  190. card-detect-delay = <200>;
  191. clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
  192. clock-names = "biu", "ciu";
  193. interrupts = <12>;
  194. bus-width = <4>;
  195. dma-coherent;
  196. };
  197. };
  198. memory@80000000 {
  199. #address-cells = <1>;
  200. #size-cells = <1>;
  201. device_type = "memory";
  202. reg = <0x80000000 0x40000000>; /* 1 GiB */
  203. };
  204. };