rt5350.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. palmbus@10000000 {
  20. compatible = "palmbus";
  21. reg = <0x10000000 0x200000>;
  22. ranges = <0x0 0x10000000 0x1FFFFF>;
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. sysc@0 {
  26. compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
  27. reg = <0x0 0x100>;
  28. };
  29. timer@100 {
  30. compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
  31. reg = <0x100 0x20>;
  32. interrupt-parent = <&intc>;
  33. interrupts = <1>;
  34. };
  35. watchdog@120 {
  36. compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt";
  37. reg = <0x120 0x10>;
  38. resets = <&rstctrl 8>;
  39. reset-names = "wdt";
  40. interrupt-parent = <&intc>;
  41. interrupts = <1>;
  42. };
  43. intc: intc@200 {
  44. compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
  45. reg = <0x200 0x100>;
  46. resets = <&rstctrl 19>;
  47. reset-names = "intc";
  48. interrupt-controller;
  49. #interrupt-cells = <1>;
  50. interrupt-parent = <&cpuintc>;
  51. interrupts = <2>;
  52. };
  53. memc@300 {
  54. compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
  55. reg = <0x300 0x100>;
  56. resets = <&rstctrl 20>;
  57. reset-names = "mc";
  58. interrupt-parent = <&intc>;
  59. interrupts = <3>;
  60. };
  61. uart@500 {
  62. compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
  63. reg = <0x500 0x100>;
  64. resets = <&rstctrl 12>;
  65. reset-names = "uart";
  66. interrupt-parent = <&intc>;
  67. interrupts = <5>;
  68. reg-shift = <2>;
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&uartf_pins>;
  71. status = "disabled";
  72. };
  73. gpio0: gpio@600 {
  74. compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
  75. reg = <0x600 0x34>;
  76. resets = <&rstctrl 13>;
  77. reset-names = "pio";
  78. interrupt-parent = <&intc>;
  79. interrupts = <6>;
  80. gpio-controller;
  81. #gpio-cells = <2>;
  82. ralink,gpio-base = <0>;
  83. ralink,num-gpios = <22>;
  84. ralink,register-map = [ 00 04 08 0c
  85. 20 24 28 2c
  86. 30 34 ];
  87. };
  88. gpio1: gpio@660 {
  89. compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
  90. reg = <0x660 0x24>;
  91. interrupt-parent = <&intc>;
  92. interrupts = <6>;
  93. gpio-controller;
  94. #gpio-cells = <2>;
  95. ralink,gpio-base = <22>;
  96. ralink,num-gpios = <6>;
  97. ralink,register-map = [ 00 04 08 0c
  98. 10 14 18 1c
  99. 20 24 ];
  100. status = "disabled";
  101. };
  102. i2c@900 {
  103. compatible = "link,rt5350-i2c", "ralink,rt2880-i2c";
  104. reg = <0x900 0x100>;
  105. resets = <&rstctrl 16>;
  106. reset-names = "i2c";
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&i2c_pins>;
  111. status = "disabled";
  112. };
  113. spi@b00 {
  114. compatible = "ralink,rt5350-spi";
  115. reg = <0xb00 0x100>;
  116. resets = <&rstctrl 18>;
  117. reset-names = "spi";
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&spi_pins &spi_cs1>;
  122. status = "disabled";
  123. };
  124. uartlite@c00 {
  125. compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
  126. reg = <0xc00 0x100>;
  127. resets = <&rstctrl 19>;
  128. reset-names = "uartl";
  129. interrupt-parent = <&intc>;
  130. interrupts = <12>;
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&uartlite_pins>;
  133. reg-shift = <2>;
  134. };
  135. systick@d00 {
  136. compatible = "ralink,rt5350-systick", "ralink,cevt-systick";
  137. reg = <0xd00 0x10>;
  138. interrupt-parent = <&cpuintc>;
  139. interrupts = <7>;
  140. };
  141. };
  142. pinctrl {
  143. compatible = "ralink,rt2880-pinmux";
  144. pinctrl-names = "default";
  145. pinctrl-0 = <&state_default>;
  146. state_default: pinctrl0 {
  147. };
  148. spi_pins: spi {
  149. spi {
  150. ralink,group = "spi";
  151. ralink,function = "spi";
  152. };
  153. };
  154. i2c_pins: i2c {
  155. i2c {
  156. ralink,group = "i2c";
  157. ralink,function = "i2c";
  158. };
  159. };
  160. phy_led_pins: phy_led {
  161. phy_led {
  162. ralink,group = "led";
  163. ralink,function = "led";
  164. };
  165. };
  166. uartlite_pins: uartlite {
  167. uart {
  168. ralink,group = "uartlite";
  169. ralink,function = "uartlite";
  170. };
  171. };
  172. uartf_pins: uartf {
  173. uartf {
  174. ralink,group = "uartf";
  175. ralink,function = "uartf";
  176. };
  177. };
  178. spi_cs1: spi1 {
  179. spi1 {
  180. ralink,group = "spi_cs1";
  181. ralink,function = "spi_cs1";
  182. };
  183. };
  184. };
  185. rstctrl: rstctrl {
  186. compatible = "ralink,rt5350-reset", "ralink,rt2880-reset";
  187. #reset-cells = <1>;
  188. };
  189. usbphy: usbphy {
  190. compatible = "ralink,rt3xxx-usbphy";
  191. #phy-cells = <1>;
  192. resets = <&rstctrl 22 &rstctrl 25>;
  193. reset-names = "host", "device";
  194. };
  195. ethernet@10100000 {
  196. compatible = "ralink,rt5350-eth";
  197. reg = <0x10100000 10000>;
  198. resets = <&rstctrl 21 &rstctrl 23>;
  199. reset-names = "fe", "esw";
  200. interrupt-parent = <&cpuintc>;
  201. interrupts = <5>;
  202. };
  203. esw@10110000 {
  204. compatible = "ralink,rt3050-esw";
  205. reg = <0x10110000 8000>;
  206. resets = <&rstctrl 23>;
  207. reset-names = "esw";
  208. interrupt-parent = <&intc>;
  209. interrupts = <17>;
  210. };
  211. wmac@10180000 {
  212. compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
  213. reg = <0x10180000 40000>;
  214. interrupt-parent = <&cpuintc>;
  215. interrupts = <6>;
  216. ralink,eeprom = "soc_wmac.eeprom";
  217. };
  218. ehci@101c0000 {
  219. compatible = "ralink,rt3xxx-ehci", "ehci-platform";
  220. reg = <0x101c0000 0x1000>;
  221. phys = <&usbphy 1>;
  222. phy-names = "usb";
  223. interrupt-parent = <&intc>;
  224. interrupts = <18>;
  225. };
  226. ohci@101c1000 {
  227. compatible = "ralink,rt3xxx-ohci", "ohci-platform";
  228. reg = <0x101c1000 0x1000>;
  229. phys = <&usbphy 1>;
  230. phy-names = "usb";
  231. interrupt-parent = <&intc>;
  232. interrupts = <18>;
  233. };
  234. };