2
0

EX3700.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /* This file is released into the public domain */
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "mt7620a.dtsi"
  6. / {
  7. compatible = "ralink,mt7620a-soc";
  8. model = "Netgear EX3700";
  9. chosen {
  10. bootargs = "console=ttyS0,57600";
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. power_g {
  15. label = "ex3700:green:power";
  16. gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
  17. default-state = "on";
  18. };
  19. power_a {
  20. label = "ex3700:amber:power";
  21. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  22. default-state = "off";
  23. };
  24. router_g {
  25. label = "ex3700:green:router";
  26. gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
  27. };
  28. router_r {
  29. label = "ex3700:red:router";
  30. gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
  31. };
  32. device_g {
  33. label = "ex3700:green:device";
  34. gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
  35. };
  36. device_r {
  37. label = "ex3700:red:device";
  38. gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
  39. };
  40. wps {
  41. label = "ex3700:green:wps";
  42. gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
  43. };
  44. };
  45. gpio-keys-polled {
  46. compatible = "gpio-keys-polled";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. poll-interval = <20>;
  50. reset {
  51. label = "reset";
  52. gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_RESTART>;
  54. };
  55. wps {
  56. label = "wps";
  57. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  58. linux,code = <KEY_WPS_BUTTON>;
  59. };
  60. };
  61. };
  62. &gpio0 {
  63. status = "okay";
  64. };
  65. &gpio2 {
  66. status = "okay";
  67. };
  68. &spi0 {
  69. status = "okay";
  70. m25p80@0 {
  71. #address-cells = <1>;
  72. #size-cells = <1>;
  73. compatible = "jedec,spi-nor";
  74. reg = <0>;
  75. spi-max-frequency = <10000000>;
  76. partition@0 {
  77. label = "u-boot";
  78. reg = <0x0 0x30000>;
  79. read-only;
  80. };
  81. partition@30000 {
  82. label = "config";
  83. reg = <0x30000 0x10000>;
  84. read-only;
  85. };
  86. factory: partition@40000 {
  87. label = "factory";
  88. reg = <0x40000 0x10000>;
  89. read-only;
  90. };
  91. partition@50000 {
  92. label = "firmware";
  93. reg = <0x50000 0x790000>;
  94. };
  95. partition@7e0000 {
  96. label = "board_data";
  97. reg = <0x7e0000 0x10000>;
  98. read-only;
  99. };
  100. partition@7f0000 {
  101. label = "nvram";
  102. reg = <0x7f0000 0x10000>;
  103. read-only;
  104. };
  105. };
  106. };
  107. &pcie {
  108. status = "okay";
  109. pcie-bridge {
  110. mt76@0,0 {
  111. reg = <0x0000 0 0 0 0 >;
  112. device_type = "pci";
  113. mediatek,mtd-eeprom = <&factory 0x8000>;
  114. ieee80211-freq-limit = <5000000 6000000>;
  115. };
  116. };
  117. };
  118. &ethernet {
  119. mtd-mac-address = <&factory 0x28>;
  120. };
  121. &wmac {
  122. ralink,mtd-eeprom = <&factory 0x0>;
  123. };
  124. &pinctrl {
  125. state_default: pinctrl0 {
  126. default {
  127. ralink,group = "i2c", "rgmii2", "spi refclk";
  128. ralink,function = "gpio";
  129. };
  130. };
  131. };