loongson64-2k1000.dtsi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/interrupt-controller/irq.h>
  4. / {
  5. compatible = "loongson,loongson2k1000";
  6. #address-cells = <2>;
  7. #size-cells = <2>;
  8. cpus {
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. cpu0: cpu@0 {
  12. device_type = "cpu";
  13. compatible = "loongson,gs264";
  14. reg = <0x0>;
  15. #clock-cells = <1>;
  16. clocks = <&cpu_clk>;
  17. };
  18. };
  19. memory@200000 {
  20. compatible = "memory";
  21. device_type = "memory";
  22. reg = <0x00000000 0x00200000 0x00000000 0x0ee00000>, /* 238 MB at 2 MB */
  23. <0x00000000 0x20000000 0x00000000 0x1f000000>, /* 496 MB at 512 MB */
  24. <0x00000001 0x10000000 0x00000001 0xb0000000>; /* 6912 MB at 4352MB */
  25. };
  26. cpu_clk: cpu_clk {
  27. #clock-cells = <0>;
  28. compatible = "fixed-clock";
  29. clock-frequency = <800000000>;
  30. };
  31. cpuintc: interrupt-controller {
  32. #address-cells = <0>;
  33. #interrupt-cells = <1>;
  34. interrupt-controller;
  35. compatible = "mti,cpu-interrupt-controller";
  36. };
  37. package0: bus@10000000 {
  38. compatible = "simple-bus";
  39. #address-cells = <2>;
  40. #size-cells = <2>;
  41. ranges = <0 0x10000000 0 0x10000000 0 0x10000000 /* ioports */
  42. 0 0x40000000 0 0x40000000 0 0x40000000
  43. 0xfe 0x00000000 0xfe 0x00000000 0 0x40000000>;
  44. pm: reset-controller@1fe07000 {
  45. compatible = "loongson,ls2k-pm";
  46. reg = <0 0x1fe07000 0 0x422>;
  47. };
  48. liointc0: interrupt-controller@1fe11400 {
  49. compatible = "loongson,liointc-2.0";
  50. reg = <0 0x1fe11400 0 0x40>,
  51. <0 0x1fe11040 0 0x8>,
  52. <0 0x1fe11140 0 0x8>;
  53. reg-names = "main", "isr0", "isr1";
  54. interrupt-controller;
  55. #interrupt-cells = <2>;
  56. interrupt-parent = <&cpuintc>;
  57. interrupts = <2>;
  58. interrupt-names = "int0";
  59. loongson,parent_int_map = <0xffffffff>, /* int0 */
  60. <0x00000000>, /* int1 */
  61. <0x00000000>, /* int2 */
  62. <0x00000000>; /* int3 */
  63. };
  64. liointc1: interrupt-controller@1fe11440 {
  65. compatible = "loongson,liointc-2.0";
  66. reg = <0 0x1fe11440 0 0x40>,
  67. <0 0x1fe11048 0 0x8>,
  68. <0 0x1fe11148 0 0x8>;
  69. reg-names = "main", "isr0", "isr1";
  70. interrupt-controller;
  71. #interrupt-cells = <2>;
  72. interrupt-parent = <&cpuintc>;
  73. interrupts = <3>;
  74. interrupt-names = "int1";
  75. loongson,parent_int_map = <0x00000000>, /* int0 */
  76. <0xffffffff>, /* int1 */
  77. <0x00000000>, /* int2 */
  78. <0x00000000>; /* int3 */
  79. };
  80. uart0: serial@1fe00000 {
  81. compatible = "ns16550a";
  82. reg = <0 0x1fe00000 0 0x8>;
  83. clock-frequency = <125000000>;
  84. interrupt-parent = <&liointc0>;
  85. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  86. no-loopback-test;
  87. };
  88. pci@1a000000 {
  89. compatible = "loongson,ls2k-pci";
  90. device_type = "pci";
  91. #address-cells = <3>;
  92. #size-cells = <2>;
  93. #interrupt-cells = <2>;
  94. reg = <0 0x1a000000 0 0x02000000>,
  95. <0xfe 0x00000000 0 0x20000000>;
  96. ranges = <0x01000000 0x0 0x00000000 0x0 0x18000000 0x0 0x00010000>,
  97. <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
  98. gmac@3,0 {
  99. compatible = "pci0014,7a03.0",
  100. "pci0014,7a03",
  101. "pciclass0c0320",
  102. "pciclass0c03",
  103. "loongson, pci-gmac";
  104. reg = <0x1800 0x0 0x0 0x0 0x0>;
  105. interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
  106. <13 IRQ_TYPE_LEVEL_LOW>;
  107. interrupt-names = "macirq", "eth_lpi";
  108. interrupt-parent = <&liointc0>;
  109. phy-mode = "rgmii";
  110. mdio {
  111. #address-cells = <1>;
  112. #size-cells = <0>;
  113. compatible = "snps,dwmac-mdio";
  114. phy0: ethernet-phy@0 {
  115. reg = <0>;
  116. };
  117. };
  118. };
  119. gmac@3,1 {
  120. compatible = "pci0014,7a03.0",
  121. "pci0014,7a03",
  122. "pciclass0c0320",
  123. "pciclass0c03",
  124. "loongson, pci-gmac";
  125. reg = <0x1900 0x0 0x0 0x0 0x0>;
  126. interrupts = <14 IRQ_TYPE_LEVEL_LOW>,
  127. <15 IRQ_TYPE_LEVEL_LOW>;
  128. interrupt-names = "macirq", "eth_lpi";
  129. interrupt-parent = <&liointc0>;
  130. phy-mode = "rgmii";
  131. mdio {
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. compatible = "snps,dwmac-mdio";
  135. phy1: ethernet-phy@1 {
  136. reg = <0>;
  137. };
  138. };
  139. };
  140. ehci@4,1 {
  141. compatible = "pci0014,7a14.0",
  142. "pci0014,7a14",
  143. "pciclass0c0320",
  144. "pciclass0c03";
  145. reg = <0x2100 0x0 0x0 0x0 0x0>;
  146. interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
  147. interrupt-parent = <&liointc1>;
  148. };
  149. ohci@4,2 {
  150. compatible = "pci0014,7a24.0",
  151. "pci0014,7a24",
  152. "pciclass0c0310",
  153. "pciclass0c03";
  154. reg = <0x2200 0x0 0x0 0x0 0x0>;
  155. interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
  156. interrupt-parent = <&liointc1>;
  157. };
  158. sata@8,0 {
  159. compatible = "pci0014,7a08.0",
  160. "pci0014,7a08",
  161. "pciclass010601",
  162. "pciclass0106";
  163. reg = <0x4000 0x0 0x0 0x0 0x0>;
  164. interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
  165. interrupt-parent = <&liointc0>;
  166. };
  167. pci_bridge@9,0 {
  168. compatible = "pci0014,7a19.0",
  169. "pci0014,7a19",
  170. "pciclass060400",
  171. "pciclass0604";
  172. reg = <0x4800 0x0 0x0 0x0 0x0>;
  173. #interrupt-cells = <1>;
  174. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  175. interrupt-parent = <&liointc1>;
  176. interrupt-map-mask = <0 0 0 0>;
  177. interrupt-map = <0 0 0 0 &liointc1 0 IRQ_TYPE_LEVEL_LOW>;
  178. external-facing;
  179. };
  180. pci_bridge@a,0 {
  181. compatible = "pci0014,7a09.0",
  182. "pci0014,7a09",
  183. "pciclass060400",
  184. "pciclass0604";
  185. reg = <0x5000 0x0 0x0 0x0 0x0>;
  186. #interrupt-cells = <1>;
  187. interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
  188. interrupt-parent = <&liointc1>;
  189. interrupt-map-mask = <0 0 0 0>;
  190. interrupt-map = <0 0 0 0 &liointc1 1 IRQ_TYPE_LEVEL_LOW>;
  191. external-facing;
  192. };
  193. pci_bridge@b,0 {
  194. compatible = "pci0014,7a09.0",
  195. "pci0014,7a09",
  196. "pciclass060400",
  197. "pciclass0604";
  198. reg = <0x5800 0x0 0x0 0x0 0x0>;
  199. #interrupt-cells = <1>;
  200. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  201. interrupt-parent = <&liointc1>;
  202. interrupt-map-mask = <0 0 0 0>;
  203. interrupt-map = <0 0 0 0 &liointc1 2 IRQ_TYPE_LEVEL_LOW>;
  204. external-facing;
  205. };
  206. pci_bridge@c,0 {
  207. compatible = "pci0014,7a09.0",
  208. "pci0014,7a09",
  209. "pciclass060400",
  210. "pciclass0604";
  211. reg = <0x6000 0x0 0x0 0x0 0x0>;
  212. #interrupt-cells = <1>;
  213. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  214. interrupt-parent = <&liointc1>;
  215. interrupt-map-mask = <0 0 0 0>;
  216. interrupt-map = <0 0 0 0 &liointc1 3 IRQ_TYPE_LEVEL_LOW>;
  217. external-facing;
  218. };
  219. pci_bridge@d,0 {
  220. compatible = "pci0014,7a19.0",
  221. "pci0014,7a19",
  222. "pciclass060400",
  223. "pciclass0604";
  224. reg = <0x6800 0x0 0x0 0x0 0x0>;
  225. #interrupt-cells = <1>;
  226. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  227. interrupt-parent = <&liointc1>;
  228. interrupt-map-mask = <0 0 0 0>;
  229. interrupt-map = <0 0 0 0 &liointc1 4 IRQ_TYPE_LEVEL_LOW>;
  230. external-facing;
  231. };
  232. pci_bridge@e,0 {
  233. compatible = "pci0014,7a09.0",
  234. "pci0014,7a09",
  235. "pciclass060400",
  236. "pciclass0604";
  237. reg = <0x7000 0x0 0x0 0x0 0x0>;
  238. #interrupt-cells = <1>;
  239. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  240. interrupt-parent = <&liointc1>;
  241. interrupt-map-mask = <0 0 0 0>;
  242. interrupt-map = <0 0 0 0 &liointc1 5 IRQ_TYPE_LEVEL_LOW>;
  243. external-facing;
  244. };
  245. };
  246. };
  247. };