mt7621.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. / {
  2. #address-cells = <1>;
  3. #size-cells = <1>;
  4. compatible = "mediatek,mtk7621-soc";
  5. cpus {
  6. cpu@0 {
  7. compatible = "mips,mips1004Kc";
  8. };
  9. cpu@1 {
  10. compatible = "mips,mips1004Kc";
  11. };
  12. };
  13. cpuintc: cpuintc@0 {
  14. #address-cells = <0>;
  15. #interrupt-cells = <1>;
  16. interrupt-controller;
  17. compatible = "mti,cpu-interrupt-controller";
  18. };
  19. palmbus@1E000000 {
  20. compatible = "palmbus";
  21. reg = <0x1E000000 0x100000>;
  22. ranges = <0x0 0x1E000000 0x0FFFFF>;
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. sysc@0 {
  26. compatible = "mtk,mt7621-sysc";
  27. reg = <0x0 0x100>;
  28. };
  29. wdt@100 {
  30. compatible = "mtk,mt7621-wdt";
  31. reg = <0x100 0x100>;
  32. };
  33. gpio@600 {
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. compatible = "mtk,mt7621-gpio";
  37. reg = <0x600 0x100>;
  38. gpio0: bank@0 {
  39. reg = <0>;
  40. compatible = "mtk,mt7621-gpio-bank";
  41. gpio-controller;
  42. #gpio-cells = <2>;
  43. };
  44. gpio1: bank@1 {
  45. reg = <1>;
  46. compatible = "mtk,mt7621-gpio-bank";
  47. gpio-controller;
  48. #gpio-cells = <2>;
  49. };
  50. gpio2: bank@2 {
  51. reg = <2>;
  52. compatible = "mtk,mt7621-gpio-bank";
  53. gpio-controller;
  54. #gpio-cells = <2>;
  55. };
  56. };
  57. memc@5000 {
  58. compatible = "mtk,mt7621-memc";
  59. reg = <0x300 0x100>;
  60. };
  61. uartlite@c00 {
  62. compatible = "ns16550a";
  63. reg = <0xc00 0x100>;
  64. interrupt-parent = <&gic>;
  65. interrupts = <26>;
  66. reg-shift = <2>;
  67. reg-io-width = <4>;
  68. no-loopback-test;
  69. };
  70. spi@b00 {
  71. status = "okay";
  72. compatible = "ralink,mt7621-spi";
  73. reg = <0xb00 0x100>;
  74. resets = <&rstctrl 18>;
  75. reset-names = "spi";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&spi_pins>;
  80. m25p80@0 {
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. reg = <0 0>;
  84. spi-max-frequency = <10000000>;
  85. m25p,chunked-io = <32>;
  86. };
  87. };
  88. };
  89. pinctrl {
  90. compatible = "ralink,rt2880-pinmux";
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&state_default>;
  93. state_default: pinctrl0 {
  94. };
  95. spi_pins: spi {
  96. spi {
  97. ralink,group = "spi";
  98. ralink,function = "spi";
  99. };
  100. };
  101. i2c_pins: i2c {
  102. i2c {
  103. ralink,group = "i2c";
  104. ralink,function = "i2c";
  105. };
  106. };
  107. uart1_pins: uart1 {
  108. uart1 {
  109. ralink,group = "uart1";
  110. ralink,function = "uart";
  111. };
  112. };
  113. uart2_pins: uart2 {
  114. uart2 {
  115. ralink,group = "uart2";
  116. ralink,function = "uart";
  117. };
  118. };
  119. uart3_pins: uart3 {
  120. uart3 {
  121. ralink,group = "uart3";
  122. ralink,function = "uart";
  123. };
  124. };
  125. rgmii1_pins: rgmii1 {
  126. rgmii1 {
  127. ralink,group = "rgmii1";
  128. ralink,function = "rgmii";
  129. };
  130. };
  131. rgmii2_pins: rgmii2 {
  132. rgmii2 {
  133. ralink,group = "rgmii2";
  134. ralink,function = "rgmii";
  135. };
  136. };
  137. mdio_pins: mdio {
  138. mdio {
  139. ralink,group = "mdio";
  140. ralink,function = "mdio";
  141. };
  142. };
  143. pcie_pins: pcie {
  144. pcie {
  145. ralink,group = "pcie";
  146. ralink,function = "pcie rst";
  147. };
  148. };
  149. nand_pins: nand {
  150. spi-nand {
  151. ralink,group = "spi";
  152. ralink,function = "nand";
  153. };
  154. sdhci-nand {
  155. ralink,group = "sdhci";
  156. ralink,function = "nand";
  157. };
  158. };
  159. sdhci_pins: sdhci {
  160. sdhci {
  161. ralink,group = "sdhci";
  162. ralink,function = "sdhci";
  163. };
  164. };
  165. };
  166. rstctrl: rstctrl {
  167. compatible = "ralink,rt2880-reset";
  168. #reset-cells = <1>;
  169. };
  170. sdhci@1E130000 {
  171. compatible = "ralink,mt7620-sdhci";
  172. reg = <0x1E130000 4000>;
  173. interrupt-parent = <&gic>;
  174. interrupts = <20>;
  175. };
  176. xhci@1E1C0000 {
  177. status = "disabled";
  178. compatible = "xhci-platform";
  179. reg = <0x1E1C0000 4000>;
  180. interrupt-parent = <&gic>;
  181. interrupts = <22>;
  182. };
  183. gic: gic@1fbc0000 {
  184. #address-cells = <0>;
  185. #interrupt-cells = <1>;
  186. interrupt-controller;
  187. compatible = "ralink,mt7621-gic";
  188. reg = < 0x1fbc0000 0x80 /* gic */
  189. 0x1fbf0000 0x8000 /* cpc */
  190. 0x1fbf8000 0x8000 /* gpmc */
  191. >;
  192. };
  193. nand@1e003000 {
  194. compatible = "mtk,mt7621-nand";
  195. bank-width = <2>;
  196. reg = <0x1e003000 0x800
  197. 0x1e003800 0x800>;
  198. #address-cells = <1>;
  199. #size-cells = <1>;
  200. partition@0 {
  201. label = "uboot";
  202. reg = <0x00000 0x80000>; /* 64 KB */
  203. };
  204. partition@80000 {
  205. label = "uboot_env";
  206. reg = <0x80000 0x80000>; /* 64 KB */
  207. };
  208. partition@100000 {
  209. label = "factory";
  210. reg = <0x100000 0x40000>;
  211. };
  212. partition@140000 {
  213. label = "rootfs";
  214. reg = <0x140000 0xec0000>;
  215. };
  216. };
  217. ethernet@1e100000 {
  218. compatible = "ralink,mt7621-eth";
  219. reg = <0x1e100000 10000>;
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. resets = <&rstctrl 6 &rstctrl 23>;
  223. reset-names = "fe", "eth";
  224. interrupt-parent = <&gic>;
  225. interrupts = <3>;
  226. mdio-bus {
  227. #address-cells = <1>;
  228. #size-cells = <0>;
  229. phy1f: ethernet-phy@1f {
  230. reg = <0x1f>;
  231. phy-mode = "rgmii";
  232. };
  233. };
  234. };
  235. gsw@1e110000 {
  236. compatible = "ralink,mt7620a-gsw";
  237. reg = <0x1e110000 8000>;
  238. interrupt-parent = <&gic>;
  239. interrupts = <23>;
  240. };
  241. pcie@1e140000 {
  242. compatible = "mediatek,mt7621-pci";
  243. reg = <0x1e140000 0x100
  244. 0x1e142000 0x100>;
  245. #address-cells = <3>;
  246. #size-cells = <2>;
  247. pinctrl-names = "default";
  248. pinctrl-0 = <&pcie_pins>;
  249. device_type = "pci";
  250. bus-range = <0 255>;
  251. ranges = <
  252. 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
  253. 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
  254. >;
  255. status = "okay";
  256. pcie0 {
  257. reg = <0x0000 0 0 0 0>;
  258. #address-cells = <3>;
  259. #size-cells = <2>;
  260. device_type = "pci";
  261. };
  262. pcie1 {
  263. reg = <0x0800 0 0 0 0>;
  264. #address-cells = <3>;
  265. #size-cells = <2>;
  266. device_type = "pci";
  267. };
  268. pcie2 {
  269. reg = <0x1000 0 0 0 0>;
  270. #address-cells = <3>;
  271. #size-cells = <2>;
  272. device_type = "pci";
  273. };
  274. };
  275. };