sead3.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. /memreserve/ 0x00000000 0x00001000; // reserved
  4. /memreserve/ 0x00001000 0x000ef000; // ROM data
  5. /memreserve/ 0x000f0000 0x004cc000; // reserved
  6. #include <dt-bindings/interrupt-controller/mips-gic.h>
  7. / {
  8. #address-cells = <1>;
  9. #size-cells = <1>;
  10. compatible = "mti,sead-3";
  11. model = "MIPS SEAD-3";
  12. chosen {
  13. stdout-path = "serial1:115200";
  14. };
  15. aliases {
  16. serial0 = &uart0;
  17. serial1 = &uart1;
  18. };
  19. cpus {
  20. cpu@0 {
  21. compatible = "mti,mips14KEc", "mti,mips14Kc";
  22. };
  23. };
  24. memory {
  25. device_type = "memory";
  26. reg = <0x0 0x08000000>;
  27. };
  28. cpu_intc: interrupt-controller {
  29. compatible = "mti,cpu-interrupt-controller";
  30. interrupt-controller;
  31. #interrupt-cells = <1>;
  32. };
  33. gic: interrupt-controller@1b1c0000 {
  34. compatible = "mti,gic";
  35. reg = <0x1b1c0000 0x20000>;
  36. interrupt-controller;
  37. #interrupt-cells = <3>;
  38. /*
  39. * Declare the interrupt-parent even though the mti,gic
  40. * binding doesn't require it, such that the kernel can
  41. * figure out that cpu_intc is the root interrupt
  42. * controller & should be probed first.
  43. */
  44. interrupt-parent = <&cpu_intc>;
  45. };
  46. ehci@1b200000 {
  47. compatible = "generic-ehci";
  48. reg = <0x1b200000 0x1000>;
  49. interrupt-parent = <&gic>;
  50. interrupts = <GIC_SHARED 0 IRQ_TYPE_LEVEL_HIGH>; /* GIC 0 or CPU 6 */
  51. has-transaction-translator;
  52. };
  53. flash@1c000000 {
  54. compatible = "intel,28f128j3", "cfi-flash";
  55. reg = <0x1c000000 0x2000000>;
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. bank-width = <4>;
  59. partitions {
  60. compatible = "fixed-partitions";
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. user-fs@0 {
  64. label = "User FS";
  65. reg = <0x0 0x1fc0000>;
  66. };
  67. board-config@3e0000 {
  68. label = "Board Config";
  69. reg = <0x1fc0000 0x40000>;
  70. };
  71. };
  72. };
  73. fpga_regs: system-controller@1f000000 {
  74. compatible = "mti,sead3-fpga", "syscon", "simple-mfd";
  75. reg = <0x1f000000 0x200>;
  76. reboot {
  77. compatible = "syscon-reboot";
  78. regmap = <&fpga_regs>;
  79. offset = <0x50>;
  80. mask = <0x4d>;
  81. };
  82. poweroff {
  83. compatible = "restart-poweroff";
  84. };
  85. };
  86. system-controller@1f000200 {
  87. compatible = "mti,sead3-cpld", "syscon", "simple-mfd";
  88. reg = <0x1f000200 0x300>;
  89. led@10.0 {
  90. compatible = "register-bit-led";
  91. offset = <0x10>;
  92. mask = <0x1>;
  93. label = "pled0";
  94. };
  95. led@10.1 {
  96. compatible = "register-bit-led";
  97. offset = <0x10>;
  98. mask = <0x2>;
  99. label = "pled1";
  100. };
  101. led@10.2 {
  102. compatible = "register-bit-led";
  103. offset = <0x10>;
  104. mask = <0x4>;
  105. label = "pled2";
  106. };
  107. led@10.3 {
  108. compatible = "register-bit-led";
  109. offset = <0x10>;
  110. mask = <0x8>;
  111. label = "pled3";
  112. };
  113. led@10.4 {
  114. compatible = "register-bit-led";
  115. offset = <0x10>;
  116. mask = <0x10>;
  117. label = "pled4";
  118. };
  119. led@10.5 {
  120. compatible = "register-bit-led";
  121. offset = <0x10>;
  122. mask = <0x20>;
  123. label = "pled5";
  124. };
  125. led@10.6 {
  126. compatible = "register-bit-led";
  127. offset = <0x10>;
  128. mask = <0x40>;
  129. label = "pled6";
  130. };
  131. led@10.7 {
  132. compatible = "register-bit-led";
  133. offset = <0x10>;
  134. mask = <0x80>;
  135. label = "pled7";
  136. };
  137. led@18.0 {
  138. compatible = "register-bit-led";
  139. offset = <0x18>;
  140. mask = <0x1>;
  141. label = "fled0";
  142. };
  143. led@18.1 {
  144. compatible = "register-bit-led";
  145. offset = <0x18>;
  146. mask = <0x2>;
  147. label = "fled1";
  148. };
  149. led@18.2 {
  150. compatible = "register-bit-led";
  151. offset = <0x18>;
  152. mask = <0x4>;
  153. label = "fled2";
  154. };
  155. led@18.3 {
  156. compatible = "register-bit-led";
  157. offset = <0x18>;
  158. mask = <0x8>;
  159. label = "fled3";
  160. };
  161. led@18.4 {
  162. compatible = "register-bit-led";
  163. offset = <0x18>;
  164. mask = <0x10>;
  165. label = "fled4";
  166. };
  167. led@18.5 {
  168. compatible = "register-bit-led";
  169. offset = <0x18>;
  170. mask = <0x20>;
  171. label = "fled5";
  172. };
  173. led@18.6 {
  174. compatible = "register-bit-led";
  175. offset = <0x18>;
  176. mask = <0x40>;
  177. label = "fled6";
  178. };
  179. led@18.7 {
  180. compatible = "register-bit-led";
  181. offset = <0x18>;
  182. mask = <0x80>;
  183. label = "fled7";
  184. };
  185. lcd@200 {
  186. compatible = "mti,sead3-lcd";
  187. offset = <0x200>;
  188. };
  189. };
  190. /* UART connected to FTDI & miniUSB socket */
  191. uart0: uart@1f000900 {
  192. compatible = "ns16550a";
  193. reg = <0x1f000900 0x20>;
  194. reg-io-width = <4>;
  195. reg-shift = <2>;
  196. clock-frequency = <14745600>;
  197. interrupt-parent = <&gic>;
  198. interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; /* GIC 3 or CPU 4 */
  199. no-loopback-test;
  200. };
  201. /* UART connected to RS232 socket */
  202. uart1: uart@1f000800 {
  203. compatible = "ns16550a";
  204. reg = <0x1f000800 0x20>;
  205. reg-io-width = <4>;
  206. reg-shift = <2>;
  207. clock-frequency = <14745600>;
  208. interrupt-parent = <&gic>;
  209. interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>; /* GIC 2 or CPU 4 */
  210. no-loopback-test;
  211. };
  212. eth@1f010000 {
  213. compatible = "smsc,lan9115";
  214. reg = <0x1f010000 0x10000>;
  215. reg-io-width = <4>;
  216. interrupt-parent = <&gic>;
  217. interrupts = <GIC_SHARED 0 IRQ_TYPE_LEVEL_HIGH>; /* GIC 0 or CPU 6 */
  218. phy-mode = "mii";
  219. smsc,irq-push-pull;
  220. smsc,save-mac-address;
  221. };
  222. };