WNDR3700V5.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Netgear WNDR3700v5";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x8000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600 maxcpus=2";
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. wps {
  16. label = "wndr3700v5:green:wps";
  17. gpios = <&gpio0 12 1>;
  18. };
  19. power {
  20. label = "wndr3700v5:green:power";
  21. gpios = <&gpio0 18 1>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. wps {
  30. label = "wndr3700v5:wps";
  31. gpios = <&gpio0 7 0>;
  32. linux,code = <KEY_WPS_BUTTON>;
  33. };
  34. wifi {
  35. label = "wndr3700v5:wifi";
  36. gpios = <&gpio0 8 0>;
  37. linux,code = <KEY_RFKILL>;
  38. };
  39. reset {
  40. label = "wndr3700v5:reset";
  41. gpios = <&gpio0 14 0>;
  42. linux,code = <KEY_RESTART>;
  43. };
  44. };
  45. gpio_export {
  46. compatible = "gpio-export";
  47. #size-cells = <0>;
  48. usbpower {
  49. gpio-export,name = "usbpower";
  50. gpio-export,output = <1>;
  51. gpios = <&gpio0 10 1>;
  52. };
  53. };
  54. };
  55. &spi0 {
  56. status = "okay";
  57. mx25l12805d@0 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "jedec,spi-nor";
  61. reg = <0>;
  62. spi-max-frequency = <10000000>;
  63. m25p,chunked-io = <32>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. read-only;
  68. };
  69. partition@30000 {
  70. label = "u-boot-env";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. factory: partition@f30000 {
  75. label = "factory";
  76. reg = <0xf30000 0x10000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. label = "firmware";
  81. reg = <0x50000 0xee0000>;
  82. };
  83. };
  84. };
  85. &pcie {
  86. status = "okay";
  87. pcie0 {
  88. mt76@0,0 {
  89. reg = <0x0000 0 0 0 0>;
  90. device_type = "pci";
  91. mediatek,mtd-eeprom = <&factory 0x8000>;
  92. ieee80211-freq-limit = <5000000 6000000>;
  93. };
  94. };
  95. pcie1 {
  96. mt76@1,0 {
  97. reg = <0x0000 0 0 0 0>;
  98. device_type = "pci";
  99. mediatek,mtd-eeprom = <&factory 0x0000>;
  100. };
  101. };
  102. };
  103. &ethernet {
  104. mtd-mac-address = <&factory 0x0000000c>;
  105. };
  106. &pinctrl {
  107. state_default: pinctrl0 {
  108. gpio {
  109. ralink,group = "rgmii2", "mdio", "wdt";
  110. ralink,function = "gpio";
  111. };
  112. };
  113. };