EX2700.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. / {
  13. compatible = "ralink,mt7620a-soc";
  14. model = "Netgear EX2700";
  15. chosen {
  16. bootargs = "console=ttyS0,57600";
  17. };
  18. gpio-leds {
  19. compatible = "gpio-leds";
  20. power_g {
  21. label = "ex2700:green:power";
  22. gpios = <&gpio0 9 1>;
  23. default-state = "on";
  24. };
  25. power_r {
  26. label = "ex2700:red:power";
  27. gpios = <&gpio0 11 1>;
  28. };
  29. device_g {
  30. label = "ex2700:green:device";
  31. gpios = <&gpio0 13 1>;
  32. };
  33. device_r {
  34. label = "ex2700:red:device";
  35. gpios = <&gpio0 10 1>;
  36. };
  37. router_g {
  38. label = "ex2700:green:router";
  39. gpios = <&gpio0 12 1>;
  40. };
  41. router_r {
  42. label = "ex2700:red:router";
  43. gpios = <&gpio0 14 1>;
  44. };
  45. wps {
  46. label = "ex2700:green:wps";
  47. gpios = <&gpio1 15 1>;
  48. };
  49. };
  50. gpio-keys-polled {
  51. compatible = "gpio-keys-polled";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. poll-interval = <20>;
  55. reset {
  56. label = "reset";
  57. gpios = <&gpio0 1 1>;
  58. linux,code = <0x198>;
  59. };
  60. wps {
  61. label = "wps";
  62. gpios = <&gpio0 2 1>;
  63. linux,code = <0x211>;
  64. };
  65. };
  66. };
  67. &gpio0 {
  68. status = "okay";
  69. };
  70. &gpio1 {
  71. status = "okay";
  72. };
  73. &spi0 {
  74. status = "okay";
  75. m25p80@0 {
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. compatible = "jedec,spi-nor";
  79. reg = <0>;
  80. linux,modalias = "m25p80", "mx25l3205d";
  81. spi-max-frequency = <10000000>;
  82. partition@0 {
  83. label = "u-boot";
  84. reg = <0x0 0x30000>;
  85. read-only;
  86. };
  87. partition@30000 {
  88. label = "u-boot-env";
  89. reg = <0x30000 0x10000>;
  90. read-only;
  91. };
  92. partition@40000 {
  93. label = "firmware";
  94. reg = <0x40000 0x3b0000>;
  95. };
  96. art: partition@3f0000 {
  97. label = "art";
  98. reg = <0x3f0000 0x10000>;
  99. read-only;
  100. };
  101. };
  102. };
  103. &ethernet {
  104. mtd-mac-address = <&art 0x0>;
  105. };
  106. &wmac {
  107. ralink,mtd-eeprom = <&art 0x1000>;
  108. };
  109. &pinctrl {
  110. state_default: pinctrl0 {
  111. default {
  112. // spi refclk: pins 37, 38, 39
  113. // uartf: pins 8, 9, 10, 11, 12, 13, 14
  114. // i2c: pins 1, 2
  115. ralink,group = "i2c", "uartf", "spi refclk";
  116. ralink,function = "gpio";
  117. };
  118. };
  119. };