mt7620n.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. / {
  2. #address-cells = <1>;
  3. #size-cells = <1>;
  4. compatible = "ralink,mtk7620n-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,mt7620a-sysc", "ralink,rt3050-sysc";
  27. reg = <0x0 0x100>;
  28. };
  29. timer@100 {
  30. compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
  31. reg = <0x100 0x20>;
  32. interrupt-parent = <&intc>;
  33. interrupts = <1>;
  34. };
  35. watchdog@120 {
  36. compatible = "ralink,mt7620a-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,mt7620a-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,mt7620a-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. gpio0: gpio@600 {
  62. compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
  63. reg = <0x600 0x34>;
  64. resets = <&rstctrl 13>;
  65. reset-names = "pio";
  66. interrupt-parent = <&intc>;
  67. interrupts = <6>;
  68. gpio-controller;
  69. #gpio-cells = <2>;
  70. ralink,gpio-base = <0>;
  71. ralink,num-gpios = <24>;
  72. ralink,register-map = [ 00 04 08 0c
  73. 20 24 28 2c
  74. 30 34 ];
  75. };
  76. gpio1: gpio@638 {
  77. compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
  78. reg = <0x638 0x24>;
  79. interrupt-parent = <&intc>;
  80. interrupts = <6>;
  81. gpio-controller;
  82. #gpio-cells = <2>;
  83. ralink,gpio-base = <24>;
  84. ralink,num-gpios = <16>;
  85. ralink,register-map = [ 00 04 08 0c
  86. 10 14 18 1c
  87. 20 24 ];
  88. status = "disabled";
  89. };
  90. gpio2: gpio@660 {
  91. compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
  92. reg = <0x660 0x24>;
  93. interrupt-parent = <&intc>;
  94. interrupts = <6>;
  95. gpio-controller;
  96. #gpio-cells = <2>;
  97. ralink,gpio-base = <40>;
  98. ralink,num-gpios = <32>;
  99. ralink,register-map = [ 00 04 08 0c
  100. 10 14 18 1c
  101. 20 24 ];
  102. status = "disabled";
  103. };
  104. gpio3: gpio@688 {
  105. compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
  106. reg = <0x688 0x24>;
  107. interrupt-parent = <&intc>;
  108. interrupts = <6>;
  109. gpio-controller;
  110. #gpio-cells = <2>;
  111. ralink,gpio-base = <72>;
  112. ralink,num-gpios = <1>;
  113. ralink,register-map = [ 00 04 08 0c
  114. 10 14 18 1c
  115. 20 24 ];
  116. status = "disabled";
  117. };
  118. spi@b00 {
  119. compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
  120. reg = <0xb00 0x100>;
  121. resets = <&rstctrl 18>;
  122. reset-names = "spi";
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. status = "disabled";
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&spi_pins>;
  128. };
  129. uartlite@c00 {
  130. compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
  131. reg = <0xc00 0x100>;
  132. resets = <&rstctrl 19>;
  133. reset-names = "uartl";
  134. interrupt-parent = <&intc>;
  135. interrupts = <12>;
  136. reg-shift = <2>;
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&uartlite_pins>;
  139. };
  140. systick@d00 {
  141. compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
  142. reg = <0xd00 0x10>;
  143. resets = <&rstctrl 28>;
  144. reset-names = "intc";
  145. interrupt-parent = <&cpuintc>;
  146. interrupts = <7>;
  147. };
  148. };
  149. pinctrl {
  150. compatible = "ralink,rt2880-pinmux";
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&state_default>;
  153. state_default: pinctrl0 {
  154. };
  155. spi_pins: spi {
  156. spi {
  157. ralink,group = "spi";
  158. ralink,function = "spi";
  159. };
  160. };
  161. uartlite_pins: uartlite {
  162. uart {
  163. ralink,group = "uartlite";
  164. ralink,function = "uartlite";
  165. };
  166. };
  167. };
  168. rstctrl: rstctrl {
  169. compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
  170. #reset-cells = <1>;
  171. };
  172. usbphy: usbphy {
  173. compatible = "ralink,mt7620a-usbphy";
  174. #phy-cells = <1>;
  175. resets = <&rstctrl 22 &rstctrl 25>;
  176. reset-names = "host", "device";
  177. };
  178. ethernet@10100000 {
  179. compatible = "ralink,mt7620a-eth";
  180. reg = <0x10100000 10000>;
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. interrupt-parent = <&cpuintc>;
  184. interrupts = <5>;
  185. resets = <&rstctrl 21 &rstctrl 23>;
  186. reset-names = "fe", "esw";
  187. mdio-bus {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. status = "disabled";
  191. };
  192. };
  193. gsw@10110000 {
  194. compatible = "ralink,mt7620a-gsw";
  195. reg = <0x10110000 8000>;
  196. resets = <&rstctrl 23>;
  197. reset-names = "esw";
  198. interrupt-parent = <&intc>;
  199. interrupts = <17>;
  200. ralink,port4 = "gmac";
  201. };
  202. ehci@101c0000 {
  203. compatible = "ralink,rt3xxx-ehci";
  204. reg = <0x101c0000 0x1000>;
  205. interrupt-parent = <&intc>;
  206. interrupts = <18>;
  207. phys = <&usbphy 1>;
  208. phy-names = "usb";
  209. status = "disabled";
  210. };
  211. ohci@101c1000 {
  212. compatible = "ralink,rt3xxx-ohci";
  213. reg = <0x101c1000 0x1000>;
  214. phys = <&usbphy 1>;
  215. phy-names = "usb";
  216. interrupt-parent = <&intc>;
  217. interrupts = <18>;
  218. status = "disabled";
  219. };
  220. wmac@10180000 {
  221. compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac";
  222. reg = <0x10180000 40000>;
  223. interrupt-parent = <&cpuintc>;
  224. interrupts = <6>;
  225. ralink,eeprom = "soc_wmac.eeprom";
  226. };
  227. };