EX2700.dts 2.4 KB

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