2
0

EX2700.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Device Tree file for the Netgear EX2700
  3. *
  4. * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. #include "mt7620a.dtsi"
  12. #include <dt-bindings/input/input.h>
  13. / {
  14. compatible = "ralink,mt7620a-soc";
  15. model = "Netgear EX2700";
  16. chosen {
  17. bootargs = "console=ttyS0,57600";
  18. };
  19. gpio-leds {
  20. compatible = "gpio-leds";
  21. power_g {
  22. label = "ex2700:green:power";
  23. gpios = <&gpio0 9 1>;
  24. default-state = "on";
  25. };
  26. power_r {
  27. label = "ex2700:red:power";
  28. gpios = <&gpio0 11 1>;
  29. };
  30. device_g {
  31. label = "ex2700:green:device";
  32. gpios = <&gpio0 13 1>;
  33. };
  34. device_r {
  35. label = "ex2700:red:device";
  36. gpios = <&gpio0 10 1>;
  37. };
  38. router_g {
  39. label = "ex2700:green:router";
  40. gpios = <&gpio0 12 1>;
  41. };
  42. router_r {
  43. label = "ex2700:red:router";
  44. gpios = <&gpio0 14 1>;
  45. };
  46. wps {
  47. label = "ex2700:green:wps";
  48. gpios = <&gpio1 15 1>;
  49. };
  50. };
  51. gpio-keys-polled {
  52. compatible = "gpio-keys-polled";
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. poll-interval = <20>;
  56. reset {
  57. label = "reset";
  58. gpios = <&gpio0 1 1>;
  59. linux,code = <KEY_RESTART>;
  60. };
  61. wps {
  62. label = "wps";
  63. gpios = <&gpio0 2 1>;
  64. linux,code = <KEY_WPS_BUTTON>;
  65. };
  66. };
  67. };
  68. &gpio0 {
  69. status = "okay";
  70. };
  71. &gpio1 {
  72. status = "okay";
  73. };
  74. &spi0 {
  75. status = "okay";
  76. m25p80@0 {
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. compatible = "jedec,spi-nor";
  80. reg = <0>;
  81. linux,modalias = "m25p80", "mx25l3205d";
  82. spi-max-frequency = <10000000>;
  83. partition@0 {
  84. label = "u-boot";
  85. reg = <0x0 0x30000>;
  86. read-only;
  87. };
  88. partition@30000 {
  89. label = "u-boot-env";
  90. reg = <0x30000 0x10000>;
  91. read-only;
  92. };
  93. partition@40000 {
  94. label = "firmware";
  95. reg = <0x40000 0x3b0000>;
  96. };
  97. art: partition@3f0000 {
  98. label = "art";
  99. reg = <0x3f0000 0x10000>;
  100. read-only;
  101. };
  102. };
  103. };
  104. &ethernet {
  105. mtd-mac-address = <&art 0x0>;
  106. };
  107. &wmac {
  108. ralink,mtd-eeprom = <&art 0x1000>;
  109. };
  110. &pinctrl {
  111. state_default: pinctrl0 {
  112. default {
  113. // spi refclk: pins 37, 38, 39
  114. // uartf: pins 8, 9, 10, 11, 12, 13, 14
  115. // i2c: pins 1, 2
  116. ralink,group = "i2c", "uartf", "spi refclk";
  117. ralink,function = "gpio";
  118. };
  119. };
  120. };