1
0

rt3883.dtsi 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. / {
  2. #address-cells = <1>;
  3. #size-cells = <1>;
  4. compatible = "ralink,rt3883-soc";
  5. cpus {
  6. cpu@0 {
  7. compatible = "mips,mips74Kc";
  8. };
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. aliases {
  14. spi0 = &spi0;
  15. spi1 = &spi1;
  16. serial0 = &uartlite;
  17. };
  18. cpuintc: cpuintc@0 {
  19. #address-cells = <0>;
  20. #interrupt-cells = <1>;
  21. interrupt-controller;
  22. compatible = "mti,cpu-interrupt-controller";
  23. };
  24. palmbus: palmbus@10000000 {
  25. compatible = "palmbus";
  26. reg = <0x10000000 0x200000>;
  27. ranges = <0x0 0x10000000 0x1FFFFF>;
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. sysc: sysc@0 {
  31. compatible = "ralink,rt3883-sysc", "ralink,rt3050-sysc";
  32. reg = <0x0 0x100>;
  33. };
  34. timer: timer@100 {
  35. compatible = "ralink,rt3883-timer", "ralink,rt2880-timer";
  36. reg = <0x100 0x20>;
  37. interrupt-parent = <&intc>;
  38. interrupts = <1>;
  39. };
  40. watchdog: watchdog@120 {
  41. compatible = "ralink,rt3883-wdt", "ralink,rt2880-wdt";
  42. reg = <0x120 0x10>;
  43. resets = <&rstctrl 8>;
  44. reset-names = "wdt";
  45. interrupt-parent = <&intc>;
  46. interrupts = <1>;
  47. };
  48. intc: intc@200 {
  49. compatible = "ralink,rt3883-intc", "ralink,rt2880-intc";
  50. reg = <0x200 0x100>;
  51. resets = <&rstctrl 19>;
  52. reset-names = "intc";
  53. interrupt-controller;
  54. #interrupt-cells = <1>;
  55. interrupt-parent = <&cpuintc>;
  56. interrupts = <2>;
  57. };
  58. memc: memc@300 {
  59. compatible = "ralink,rt3883-memc", "ralink,rt3050-memc";
  60. reg = <0x300 0x100>;
  61. resets = <&rstctrl 20>;
  62. reset-names = "mc";
  63. interrupt-parent = <&intc>;
  64. interrupts = <3>;
  65. };
  66. uart: uart@500 {
  67. compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
  68. reg = <0x500 0x100>;
  69. resets = <&rstctrl 12>;
  70. reset-names = "uart";
  71. interrupt-parent = <&intc>;
  72. interrupts = <5>;
  73. reg-shift = <2>;
  74. status = "disabled";
  75. };
  76. gpio0: gpio@600 {
  77. compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
  78. reg = <0x600 0x34>;
  79. resets = <&rstctrl 13>;
  80. reset-names = "pio";
  81. interrupt-parent = <&intc>;
  82. interrupts = <6>;
  83. gpio-controller;
  84. #gpio-cells = <2>;
  85. ralink,gpio-base = <0>;
  86. ralink,num-gpios = <24>;
  87. ralink,register-map = [ 00 04 08 0c
  88. 20 24 28 2c
  89. 30 34 ];
  90. };
  91. gpio1: gpio@638 {
  92. compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
  93. reg = <0x638 0x24>;
  94. gpio-controller;
  95. #gpio-cells = <2>;
  96. ralink,gpio-base = <24>;
  97. ralink,num-gpios = <16>;
  98. ralink,register-map = [ 00 04 08 0c
  99. 10 14 18 1c
  100. 20 24 ];
  101. status = "disabled";
  102. };
  103. gpio2: gpio@660 {
  104. compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
  105. reg = <0x660 0x24>;
  106. gpio-controller;
  107. #gpio-cells = <2>;
  108. ralink,gpio-base = <40>;
  109. ralink,num-gpios = <32>;
  110. ralink,register-map = [ 00 04 08 0c
  111. 10 14 18 1c
  112. 20 24 ];
  113. status = "disabled";
  114. };
  115. gpio3: gpio@688 {
  116. compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
  117. reg = <0x688 0x24>;
  118. gpio-controller;
  119. #gpio-cells = <2>;
  120. ralink,gpio-base = <72>;
  121. ralink,num-gpios = <24>;
  122. ralink,register-map = [ 00 04 08 0c
  123. 10 14 18 1c
  124. 20 24 ];
  125. status = "disabled";
  126. };
  127. i2c@900 {
  128. compatible = "ralink,rt2880-i2c";
  129. reg = <0x900 0x100>;
  130. resets = <&rstctrl 16>;
  131. reset-names = "i2c";
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. status = "disabled";
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&i2c_pins>;
  137. };
  138. i2s@a00 {
  139. compatible = "ralink,rt3883-i2s";
  140. reg = <0xa00 0x100>;
  141. resets = <&rstctrl 17>;
  142. reset-names = "i2s";
  143. interrupt-parent = <&intc>;
  144. interrupts = <10>;
  145. txdma-req = <2>;
  146. rxdma-req = <3>;
  147. dmas = <&gdma 4>,
  148. <&gdma 6>;
  149. dma-names = "tx", "rx";
  150. status = "disabled";
  151. };
  152. spi0: spi@b00 {
  153. compatible = "ralink,rt3883-spi", "ralink,rt2880-spi";
  154. reg = <0xb00 0x40>;
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. resets = <&rstctrl 18>;
  158. reset-names = "spi";
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&spi_pins>;
  161. status = "disabled";
  162. };
  163. spi1: spi@b40 {
  164. compatible = "ralink,rt3883-spi", "ralink,rt2880-spi";
  165. reg = <0xb40 0x60>;
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. resets = <&rstctrl 18>;
  169. reset-names = "spi";
  170. pinctrl-names = "default";
  171. pinctrl-0 = <&spi_cs1>;
  172. status = "disabled";
  173. };
  174. uartlite: uartlite@c00 {
  175. compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
  176. reg = <0xc00 0x100>;
  177. resets = <&rstctrl 19>;
  178. reset-names = "uartl";
  179. interrupt-parent = <&intc>;
  180. interrupts = <12>;
  181. reg-shift = <2>;
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&uartlite_pins>;
  184. };
  185. gdma: gdma@2800 {
  186. compatible = "ralink,rt3883-gdma";
  187. reg = <0x2800 0x800>;
  188. resets = <&rstctrl 14>;
  189. reset-names = "dma";
  190. interrupt-parent = <&intc>;
  191. interrupts = <7>;
  192. #dma-cells = <1>;
  193. #dma-channels = <16>;
  194. #dma-requests = <16>;
  195. status = "disabled";
  196. };
  197. };
  198. pinctrl: pinctrl {
  199. compatible = "ralink,rt2880-pinmux";
  200. pinctrl-names = "default";
  201. pinctrl-0 = <&state_default>;
  202. state_default: pinctrl0 {
  203. };
  204. i2c_pins: i2c {
  205. i2c {
  206. ralink,group = "i2c";
  207. ralink,function = "i2c";
  208. };
  209. };
  210. spi_pins: spi {
  211. spi {
  212. ralink,group = "spi";
  213. ralink,function = "spi";
  214. };
  215. };
  216. spi_cs1: spi1 {
  217. spi1 {
  218. ralink,group = "spi_cs1";
  219. ralink,function = "spi_cs1";
  220. };
  221. };
  222. uartlite_pins: uartlite {
  223. uart {
  224. ralink,group = "uartlite";
  225. ralink,function = "uartlite";
  226. };
  227. };
  228. };
  229. ethernet: ethernet@10100000 {
  230. compatible = "ralink,rt3883-eth";
  231. #address-cells = <1>;
  232. #size-cells = <0>;
  233. reg = <0x10100000 0x10000>;
  234. resets = <&rstctrl 21>;
  235. reset-names = "fe";
  236. interrupt-parent = <&cpuintc>;
  237. interrupts = <5>;
  238. port@0 {
  239. compatible = "ralink,rt3883-port", "mediatek,eth-port";
  240. reg = <0>;
  241. };
  242. mdio-bus {
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. status = "disabled";
  246. };
  247. };
  248. rstctrl: rstctrl {
  249. compatible = "ralink,rt3883-reset", "ralink,rt2880-reset";
  250. #reset-cells = <1>;
  251. };
  252. clkctrl: clkctrl {
  253. compatible = "ralink,rt2880-clock";
  254. #clock-cells = <1>;
  255. };
  256. pci: pci@10140000 {
  257. compatible = "ralink,rt3883-pci";
  258. reg = <0x10140000 0x20000>;
  259. #address-cells = <1>;
  260. #size-cells = <1>;
  261. ranges; /* direct mapping */
  262. status = "disabled";
  263. pciintc: interrupt-controller {
  264. interrupt-controller;
  265. #address-cells = <0>;
  266. #interrupt-cells = <1>;
  267. interrupt-parent = <&cpuintc>;
  268. interrupts = <4>;
  269. };
  270. host-bridge {
  271. #address-cells = <3>;
  272. #size-cells = <2>;
  273. #interrupt-cells = <1>;
  274. device_type = "pci";
  275. bus-range = <0 255>;
  276. ranges = <
  277. 0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */
  278. 0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */
  279. >;
  280. interrupt-map-mask = <0xf800 0 0 7>;
  281. interrupt-map = <
  282. /* IDSEL 17 */
  283. 0x8800 0 0 1 &pciintc 18
  284. 0x8800 0 0 2 &pciintc 18
  285. 0x8800 0 0 3 &pciintc 18
  286. 0x8800 0 0 4 &pciintc 18
  287. /* IDSEL 18 */
  288. 0x9000 0 0 1 &pciintc 19
  289. 0x9000 0 0 2 &pciintc 19
  290. 0x9000 0 0 3 &pciintc 19
  291. 0x9000 0 0 4 &pciintc 19
  292. >;
  293. pci-bridge@1 {
  294. reg = <0x0800 0 0 0 0>;
  295. device_type = "pci";
  296. #interrupt-cells = <1>;
  297. #address-cells = <3>;
  298. #size-cells = <2>;
  299. status = "disabled";
  300. ralink,pci-slot = <1>;
  301. interrupt-map-mask = <0x0 0 0 0>;
  302. interrupt-map = <0x0 0 0 0 &pciintc 20>;
  303. };
  304. pci-slot@17 {
  305. reg = <0x8800 0 0 0 0>;
  306. device_type = "pci";
  307. #interrupt-cells = <1>;
  308. #address-cells = <3>;
  309. #size-cells = <2>;
  310. ralink,pci-slot = <17>;
  311. status = "disabled";
  312. };
  313. pci-slot@18 {
  314. reg = <0x9000 0 0 0 0>;
  315. device_type = "pci";
  316. #interrupt-cells = <1>;
  317. #address-cells = <3>;
  318. #size-cells = <2>;
  319. ralink,pci-slot = <18>;
  320. status = "disabled";
  321. };
  322. };
  323. };
  324. usbphy: usbphy {
  325. compatible = "ralink,rt3352-usbphy";
  326. #phy-cells = <1>;
  327. resets = <&rstctrl 22 &rstctrl 25>;
  328. reset-names = "host", "device";
  329. clocks = <&clkctrl 22 &clkctrl 25>;
  330. clock-names = "host", "device";
  331. };
  332. wmac: wmac@10180000 {
  333. compatible = "ralink,rt3883-wmac", "ralink,rt2880-wmac";
  334. reg = <0x10180000 0x40000>;
  335. interrupt-parent = <&cpuintc>;
  336. interrupts = <6>;
  337. ralink,eeprom = "soc_wmac.eeprom";
  338. };
  339. ehci: ehci@101c0000 {
  340. compatible = "generic-ehci";
  341. reg = <0x101c0000 0x1000>;
  342. phys = <&usbphy 1>;
  343. phy-names = "usb";
  344. interrupt-parent = <&intc>;
  345. interrupts = <18>;
  346. status = "disabled";
  347. };
  348. ohci: ohci@101c1000 {
  349. compatible = "generic-ohci";
  350. reg = <0x101c1000 0x1000>;
  351. phys = <&usbphy 1>;
  352. phy-names = "usb";
  353. interrupt-parent = <&intc>;
  354. interrupts = <18>;
  355. status = "disabled";
  356. };
  357. };