ArcherMR200.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. compatible = "ralink,mt7620a-soc";
  7. model = "TP-Link Archer MR200";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. gpio-leds {
  12. compatible = "gpio-leds";
  13. lan {
  14. label = "mr200:white:lan";
  15. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  16. };
  17. wan {
  18. label = "mr200:white:wan";
  19. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  20. };
  21. power {
  22. label = "mr200:white:power";
  23. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  24. };
  25. 4g {
  26. label = "mr200:white:4g";
  27. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  28. };
  29. wps {
  30. label = "mr200:white:wps";
  31. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  32. };
  33. signal1 {
  34. label = "mr200:white:signal1";
  35. gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  36. };
  37. signal2 {
  38. label = "mr200:white:signal2";
  39. gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
  40. };
  41. signal3 {
  42. label = "mr200:white:signal3";
  43. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  44. };
  45. signal4 {
  46. label = "mr200:white:signal4";
  47. gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
  48. };
  49. wlan {
  50. label = "mr200:white:wlan";
  51. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. gpio-keys {
  55. compatible = "gpio-keys";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. reset {
  59. label = "reset";
  60. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  61. linux,code = <KEY_RESTART>;
  62. };
  63. rfkill {
  64. label = "rfkill";
  65. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  66. linux,code = <KEY_RFKILL>;
  67. };
  68. };
  69. gpio_export {
  70. compatible = "gpio-export";
  71. #size-cells = <0>;
  72. power_usb {
  73. gpio-export,name = "power_usb1";
  74. gpio-export,output = <1>;
  75. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  76. };
  77. };
  78. };
  79. &gpio1 {
  80. status = "okay";
  81. };
  82. &gpio2 {
  83. status = "okay";
  84. };
  85. &gpio3 {
  86. status = "okay";
  87. };
  88. &spi0 {
  89. status = "okay";
  90. m25p80@0 {
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. compatible = "jedec,spi-nor";
  94. reg = <0>;
  95. spi-max-frequency = <10000000>;
  96. partition@0 {
  97. label = "u-boot";
  98. reg = <0x0 0x20000>;
  99. read-only;
  100. };
  101. partition@20000 {
  102. label = "firmware";
  103. reg = <0x20000 0x7b0000>;
  104. };
  105. rom: partition@7d0000 {
  106. label = "rom";
  107. reg = <0x7d0000 0x10000>;
  108. read-only;
  109. };
  110. partition@7e0000 {
  111. label = "romfile";
  112. reg = <0x7e0000 0x10000>;
  113. read-only;
  114. };
  115. radio: partition@7f0000 {
  116. label = "radio";
  117. reg = <0x7f0000 0x10000>;
  118. read-only;
  119. };
  120. };
  121. };
  122. &pinctrl {
  123. state_default: pinctrl0 {
  124. gpio {
  125. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
  126. ralink,function = "gpio";
  127. };
  128. };
  129. };
  130. &ethernet {
  131. mtd-mac-address = <&rom 0xf100>;
  132. mediatek,portmap = "llll";
  133. };
  134. &ehci {
  135. status = "okay";
  136. };
  137. &ohci {
  138. status = "okay";
  139. };
  140. &gsw {
  141. mediatek,port4 = "ephy";
  142. };
  143. &wmac {
  144. ralink,mtd-eeprom = <&radio 0>;
  145. };
  146. &pcie {
  147. status = "okay";
  148. pcie-bridge {
  149. mt76@0,0 {
  150. reg = <0x0000 0 0 0 0>;
  151. device_type = "pci";
  152. mediatek,mtd-eeprom = <&radio 32768>;
  153. mediatek,2ghz = <0>;
  154. };
  155. };
  156. };