rt5350.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. / {
  2. #address-cells = <1>;
  3. #size-cells = <1>;
  4. compatible = "ralink,rt5350-soc";
  5. cpus {
  6. cpu@0 {
  7. compatible = "mips,mips24KEc";
  8. };
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. cpuintc: cpuintc@0 {
  14. #address-cells = <0>;
  15. #interrupt-cells = <1>;
  16. interrupt-controller;
  17. compatible = "mti,cpu-interrupt-controller";
  18. };
  19. aliases {
  20. spi0 = &spi0;
  21. spi1 = &spi1;
  22. serial0 = &uartlite;
  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,rt5350-sysc", "ralink,rt3050-sysc";
  32. reg = <0x0 0x100>;
  33. };
  34. timer: timer@100 {
  35. compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
  36. reg = <0x100 0x20>;
  37. interrupt-parent = <&intc>;
  38. interrupts = <1>;
  39. };
  40. watchdog: watchdog@120 {
  41. compatible = "ralink,rt5350-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,rt5350-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,rt5350-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,rt5350-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,rt5350-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 = <22>;
  87. ralink,register-map = [ 00 04 08 0c
  88. 20 24 28 2c
  89. 30 34 ];
  90. };
  91. gpio1: gpio@660 {
  92. compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
  93. reg = <0x660 0x24>;
  94. interrupt-parent = <&intc>;
  95. interrupts = <6>;
  96. gpio-controller;
  97. #gpio-cells = <2>;
  98. ralink,gpio-base = <22>;
  99. ralink,num-gpios = <6>;
  100. ralink,register-map = [ 00 04 08 0c
  101. 10 14 18 1c
  102. 20 24 ];
  103. status = "disabled";
  104. };
  105. i2c: i2c@900 {
  106. compatible = "ralink,rt2880-i2c";
  107. reg = <0x900 0x100>;
  108. resets = <&rstctrl 16>;
  109. reset-names = "i2c";
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&i2c_pins>;
  114. status = "disabled";
  115. };
  116. i2s: i2s@a00 {
  117. compatible = "ralink,rt3352-i2s";
  118. reg = <0xa00 0x100>;
  119. resets = <&rstctrl 17>;
  120. reset-names = "i2s";
  121. interrupt-parent = <&intc>;
  122. interrupts = <10>;
  123. txdma-req = <2>;
  124. rxdma-req = <3>;
  125. dmas = <&gdma 4>,
  126. <&gdma 6>;
  127. dma-names = "tx", "rx";
  128. status = "disabled";
  129. };
  130. spi0: spi@b00 {
  131. compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
  132. reg = <0xb00 0x40>;
  133. resets = <&rstctrl 18>;
  134. reset-names = "spi";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&spi_pins>;
  139. status = "disabled";
  140. };
  141. spi1: spi@b40 {
  142. compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
  143. reg = <0xb40 0x60>;
  144. resets = <&rstctrl 18>;
  145. reset-names = "spi";
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&spi_cs1>;
  150. status = "disabled";
  151. };
  152. uartlite: uartlite@c00 {
  153. compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
  154. reg = <0xc00 0x100>;
  155. resets = <&rstctrl 19>;
  156. reset-names = "uartl";
  157. interrupt-parent = <&intc>;
  158. interrupts = <12>;
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&uartlite_pins>;
  161. reg-shift = <2>;
  162. };
  163. systick: systick@d00 {
  164. compatible = "ralink,rt5350-systick", "ralink,cevt-systick";
  165. reg = <0xd00 0x10>;
  166. interrupt-parent = <&cpuintc>;
  167. interrupts = <7>;
  168. };
  169. gdma: gdma@2800 {
  170. compatible = "ralink,rt3883-gdma";
  171. reg = <0x2800 0x800>;
  172. resets = <&rstctrl 14>;
  173. reset-names = "dma";
  174. interrupt-parent = <&intc>;
  175. interrupts = <7>;
  176. #dma-cells = <1>;
  177. #dma-channels = <16>;
  178. #dma-requests = <16>;
  179. status = "disabled";
  180. };
  181. };
  182. pinctrl: pinctrl {
  183. compatible = "ralink,rt2880-pinmux";
  184. pinctrl-names = "default";
  185. pinctrl-0 = <&state_default>;
  186. state_default: pinctrl0 {
  187. };
  188. i2c_pins: i2c {
  189. i2c {
  190. ralink,group = "i2c";
  191. ralink,function = "i2c";
  192. };
  193. };
  194. spi_pins: spi {
  195. spi {
  196. ralink,group = "spi";
  197. ralink,function = "spi";
  198. };
  199. };
  200. phy_led_pins: phy_led {
  201. phy_led {
  202. ralink,group = "led";
  203. ralink,function = "led";
  204. };
  205. };
  206. uartlite_pins: uartlite {
  207. uart {
  208. ralink,group = "uartlite";
  209. ralink,function = "uartlite";
  210. };
  211. };
  212. uartf_pins: uartf {
  213. uartf {
  214. ralink,group = "uartf";
  215. ralink,function = "uartf";
  216. };
  217. };
  218. spi_cs1: spi1 {
  219. spi1 {
  220. ralink,group = "spi_cs1";
  221. ralink,function = "spi_cs1";
  222. };
  223. };
  224. };
  225. rstctrl: rstctrl {
  226. compatible = "ralink,rt5350-reset", "ralink,rt2880-reset";
  227. #reset-cells = <1>;
  228. };
  229. clkctrl: clkctrl {
  230. compatible = "ralink,rt2880-clock";
  231. #clock-cells = <1>;
  232. };
  233. usbphy: usbphy {
  234. compatible = "ralink,rt3352-usbphy";
  235. #phy-cells = <1>;
  236. resets = <&rstctrl 22 &rstctrl 25>;
  237. reset-names = "host", "device";
  238. clocks = <&clkctrl 18>;
  239. clock-names = "host";
  240. };
  241. ethernet: ethernet@10100000 {
  242. compatible = "ralink,rt5350-eth";
  243. reg = <0x10100000 0x10000>;
  244. resets = <&rstctrl 21 &rstctrl 23>;
  245. reset-names = "fe", "esw";
  246. interrupt-parent = <&cpuintc>;
  247. interrupts = <5>;
  248. mediatek,switch = <&esw>;
  249. };
  250. esw: esw@10110000 {
  251. compatible = "ralink,rt5350-esw", "ralink,rt3050-esw";
  252. reg = <0x10110000 0x8000>;
  253. resets = <&rstctrl 23>;
  254. reset-names = "esw";
  255. interrupt-parent = <&intc>;
  256. interrupts = <17>;
  257. };
  258. wmac: wmac@10180000 {
  259. compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
  260. reg = <0x10180000 0x40000>;
  261. interrupt-parent = <&cpuintc>;
  262. interrupts = <6>;
  263. ralink,eeprom = "soc_wmac.eeprom";
  264. };
  265. ehci: ehci@101c0000 {
  266. compatible = "generic-ehci";
  267. reg = <0x101c0000 0x1000>;
  268. phys = <&usbphy 1>;
  269. phy-names = "usb";
  270. interrupt-parent = <&intc>;
  271. interrupts = <18>;
  272. };
  273. ohci: ohci@101c1000 {
  274. compatible = "generic-ohci";
  275. reg = <0x101c1000 0x1000>;
  276. phys = <&usbphy 1>;
  277. phy-names = "usb";
  278. interrupt-parent = <&intc>;
  279. interrupts = <18>;
  280. };
  281. };