E1700.dts 2.5 KB

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