WNDR3700V5.dts 2.4 KB

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