WNDR3700V5.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";
  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 = <0x211>;
  33. };
  34. wifi {
  35. label = "wndr3700v5:wifi";
  36. gpios = <&gpio0 8 0>;
  37. linux,code = <0xf7>;
  38. };
  39. reset {
  40. label = "wndr3700v5:reset";
  41. gpios = <&gpio0 14 0>;
  42. linux,code = <0x198>;
  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. m25p80@0 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "mx25l12805d";
  61. reg = <0>;
  62. linux,modalias = "m25p80", "w25q128";
  63. spi-max-frequency = <10000000>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. };
  68. partition@30000 {
  69. label = "u-boot-env";
  70. reg = <0x30000 0x10000>;
  71. read-only;
  72. };
  73. factory: partition@f30000 {
  74. label = "factory";
  75. reg = <0xf30000 0x10000>;
  76. read-only;
  77. };
  78. partition@50000 {
  79. label = "firmware";
  80. reg = <0x50000 0xfb0000>;
  81. };
  82. };
  83. };
  84. &pcie {
  85. status = "okay";
  86. pcie0 {
  87. mt76@0,0 {
  88. reg = <0x0000 0 0 0 0>;
  89. device_type = "pci";
  90. mediatek,mtd-eeprom = <&factory 0x0004>;
  91. mediatek,2ghz = <0>;
  92. };
  93. };
  94. pcie2 {
  95. mt76@2,0 {
  96. reg = <0x1000 0 0 0 0>;
  97. device_type = "pci";
  98. mediatek,mtd-eeprom = <&factory 0x8004>;
  99. mediatek,5ghz = <0>;
  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. };