2
0

E1700.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * Device Tree file for the Linksys E1700
  3. *
  4. * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
  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 = "linksys,e1700", "ralink,mt7620a-soc";
  15. model = "Linksys E1700";
  16. gpio-keys-polled {
  17. compatible = "gpio-keys-polled";
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. poll-interval = <20>;
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio0 1 0>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. wps {
  27. label = "wps";
  28. gpios = <&gpio0 2 0>;
  29. linux,code = <KEY_WPS_BUTTON>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. power {
  35. label = "e1700:green:power";
  36. gpios = <&gpio0 10 1>;
  37. };
  38. wan {
  39. label = "e1700:green:wps";
  40. gpios = <&gpio0 12 1>;
  41. };
  42. };
  43. };
  44. &spi0 {
  45. status = "okay";
  46. m25p80@0 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. linux,modalias = "m25p80", "mx25l6405d";
  52. spi-max-frequency = <10000000>;
  53. partition@0 {
  54. label = "u-boot";
  55. reg = <0x0 0x30000>;
  56. read-only;
  57. };
  58. partition@30000 {
  59. label = "config";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0x7b0000>;
  71. };
  72. };
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. gpio {
  77. ralink,group = "i2c", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };
  82. &ethernet {
  83. status = "okay";
  84. mtd-mac-address = <&factory 0x28>;
  85. pinctrl-names = "default";
  86. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  87. port@5 {
  88. status = "okay";
  89. mediatek,fixed-link = <1000 1 1 1>;
  90. phy-mode = "rgmii";
  91. };
  92. mdio-bus {
  93. status = "okay";
  94. phy0: ethernet-phy@0 {
  95. reg = <0>;
  96. phy-mode = "rgmii";
  97. };
  98. phy1: ethernet-phy@1 {
  99. reg = <1>;
  100. phy-mode = "rgmii";
  101. };
  102. phy2: ethernet-phy@2 {
  103. reg = <2>;
  104. phy-mode = "rgmii";
  105. };
  106. phy3: ethernet-phy@3 {
  107. reg = <3>;
  108. phy-mode = "rgmii";
  109. };
  110. phy4: ethernet-phy@4 {
  111. reg = <4>;
  112. phy-mode = "rgmii";
  113. };
  114. phy1f: ethernet-phy@1f {
  115. reg = <0x1f>;
  116. phy-mode = "rgmii";
  117. };
  118. };
  119. };
  120. &gsw {
  121. mediatek,port4 = "gmac";
  122. mediatek,mt7530 = <1>;
  123. };
  124. &wmac {
  125. ralink,mtd-eeprom = <&factory 0>;
  126. };