WSR-1166.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /dts-v1/;
  2. /include/ "mt7621.dtsi"
  3. / {
  4. compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
  5. model = "Buffalo WSR-1166DHP";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x8000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. palmbus@1E000000 {
  14. spi@b00 {
  15. status = "okay";
  16. m25p80@0 {
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. compatible = "mx25l12805d";
  20. reg = <0 0>;
  21. linux,modalias = "m25p80";
  22. spi-max-frequency = <10000000>;
  23. partition@0 {
  24. label = "u-boot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "u-boot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@50000 {
  39. label = "firmware";
  40. reg = <0x50000 0xf90000>;
  41. };
  42. partition@fe00000 {
  43. label = "board_data";
  44. reg = <0xfe0000 0x10000>;
  45. };
  46. };
  47. };
  48. };
  49. pinctrl {
  50. state_default: pinctrl0 {
  51. gpio {
  52. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  53. ralink,function = "gpio";
  54. };
  55. };
  56. };
  57. gpio-leds {
  58. compatible = "gpio-leds";
  59. internet_g {
  60. label = "buffalo:green:internet";
  61. gpios = <&gpio1 9 1>;
  62. };
  63. router_g {
  64. label = "buffalo:green:router";
  65. gpios = <&gpio1 10 1>;
  66. };
  67. router_o {
  68. label = "buffalo:orange:router";
  69. gpios = <&gpio1 11 1>;
  70. };
  71. internet_o {
  72. label = "buffalo:orange:internet";
  73. gpios = <&gpio1 12 1>;
  74. };
  75. wifi_o {
  76. label = "buffalo:orange:wifi";
  77. gpios = <&gpio1 13 1>;
  78. };
  79. power {
  80. label = "buffalo:green:power";
  81. gpios = <&gpio1 14 1>;
  82. };
  83. diag {
  84. label = "buffalo:orange:diag";
  85. gpios = <&gpio1 15 1>;
  86. };
  87. wifi_g {
  88. label = "buffalo:green:wifi";
  89. gpios = <&gpio1 16 1>;
  90. };
  91. };
  92. gpio-keys-polled {
  93. compatible = "gpio-keys-polled";
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. poll-interval = <20>;
  97. power {
  98. label = "power";
  99. gpios = <&gpio0 18 1>;
  100. linux,code = <0x74>;
  101. };
  102. reset {
  103. label = "reset";
  104. gpios = <&gpio0 3 1>;
  105. linux,code = <0x198>;
  106. };
  107. aoss {
  108. label = "aoss";
  109. gpios = <&gpio0 6 1>;
  110. linux,code = <0x211>;
  111. };
  112. auto {
  113. label = "mode";
  114. gpios = <&gpio0 7 0>;
  115. linux,code = <0x100>;
  116. linux,input-type = <5>; /* EV_SW */
  117. };
  118. ap {
  119. label = "ap";
  120. gpios = <&gpio0 10 0>;
  121. linux,code = <0x100>;
  122. linux,input-type = <5>; /* EV_SW */
  123. };
  124. router {
  125. label = "router";
  126. gpios = <&gpio0 12 0>;
  127. linux,code = <0x100>;
  128. linux,input-type = <5>; /* EV_SW */
  129. };
  130. };
  131. gpio_poweroff {
  132. compatible = "gpio-poweroff";
  133. gpios = <&gpio0 0 1>;
  134. };
  135. pcie@1e140000 {
  136. status = "okay";
  137. pcie0 {
  138. mt76@0,0 {
  139. reg = <0x0000 0 0 0 0>;
  140. device_type = "pci";
  141. mediatek,mtd-eeprom = <&factory 0x8000>;
  142. mediatek,2ghz = <0>;
  143. };
  144. };
  145. pcie1 {
  146. mt76@1,0 {
  147. reg = <0x0000 0 0 0 0>;
  148. device_type = "pci";
  149. mediatek,mtd-eeprom = <&factory 0x0000>;
  150. mediatek,5ghz = <0>;
  151. };
  152. };
  153. };
  154. };