hsdk.dts 4.6 KB

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