1
0

EX2700.dts 2.4 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. #include <dt-bindings/input/input.h>
  13. #include <dt-bindings/gpio/gpio.h>
  14. / {
  15. compatible = "ralink,mt7620a-soc";
  16. model = "Netgear EX2700";
  17. chosen {
  18. bootargs = "console=ttyS0,57600";
  19. };
  20. gpio-leds {
  21. compatible = "gpio-leds";
  22. power_g {
  23. label = "ex2700:green:power";
  24. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  25. default-state = "on";
  26. };
  27. power_r {
  28. label = "ex2700:red:power";
  29. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  30. };
  31. device_g {
  32. label = "ex2700:green:device";
  33. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  34. };
  35. device_r {
  36. label = "ex2700:red:device";
  37. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  38. };
  39. router_g {
  40. label = "ex2700:green:router";
  41. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  42. };
  43. router_r {
  44. label = "ex2700:red:router";
  45. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  46. };
  47. wps {
  48. label = "ex2700:green:wps";
  49. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  50. };
  51. };
  52. gpio-keys-polled {
  53. compatible = "gpio-keys-polled";
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. poll-interval = <20>;
  57. reset {
  58. label = "reset";
  59. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  60. linux,code = <KEY_RESTART>;
  61. };
  62. wps {
  63. label = "wps";
  64. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  65. linux,code = <KEY_WPS_BUTTON>;
  66. };
  67. };
  68. };
  69. &gpio0 {
  70. status = "okay";
  71. };
  72. &gpio1 {
  73. status = "okay";
  74. };
  75. &spi0 {
  76. status = "okay";
  77. m25p80@0 {
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. compatible = "jedec,spi-nor";
  81. reg = <0>;
  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. mtd-mac-address = <&art 0x6>;
  109. ralink,mtd-eeprom = <&art 0x1000>;
  110. };
  111. &pinctrl {
  112. state_default: pinctrl0 {
  113. default {
  114. ralink,group = "i2c", "uartf", "spi refclk";
  115. ralink,function = "gpio";
  116. };
  117. };
  118. };