WHR-1166D.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "Buffalo WHR-1166D";
  6. palmbus@10000000 {
  7. gpio2: gpio@660 {
  8. status = "okay";
  9. };
  10. spi@b00 {
  11. status = "okay";
  12. m25p80@0 {
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. compatible = "en25q64";
  16. reg = <0 0>;
  17. linux,modalias = "m25p80", "mx25l6405d";
  18. spi-max-frequency = <10000000>;
  19. partition@0 {
  20. label = "u-boot";
  21. reg = <0x0 0x30000>;
  22. read-only;
  23. };
  24. partition@30000 {
  25. label = "u-boot-env";
  26. reg = <0x30000 0x10000>;
  27. read-only;
  28. };
  29. factory: partition@40000 {
  30. label = "factory";
  31. reg = <0x40000 0x10000>;
  32. read-only;
  33. };
  34. partition@50000 {
  35. label = "firmware";
  36. reg = <0x50000 0xfb0000>;
  37. };
  38. };
  39. };
  40. };
  41. pinctrl {
  42. state_default: pinctrl0 {
  43. gpio {
  44. ralink,group = "i2c", "uartf", "wled", "nd_sd";
  45. ralink,function = "gpio";
  46. };
  47. };
  48. };
  49. ethernet@10100000 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&rgmii1_pins &mdio_pins>;
  52. port@5 {
  53. status = "okay";
  54. phy-handle = <&phy5>;
  55. phy-mode = "rgmii";
  56. };
  57. mdio-bus {
  58. status = "okay";
  59. phy5: ethernet-phy@5 {
  60. reg = <5>;
  61. phy-mode = "rgmii";
  62. };
  63. };
  64. };
  65. gsw@10110000 {
  66. ralink,port4 = "ephy";
  67. };
  68. wmac@10180000 {
  69. ralink,mtd-eeprom = <&factory 0>;
  70. };
  71. pcie@10140000 {
  72. status = "okay";
  73. pcie-bridge {
  74. mt76@0,0 {
  75. reg = <0x0000 0 0 0 0>;
  76. device_type = "pci";
  77. mediatek,mtd-eeprom = <&factory 32768>;
  78. mediatek,2ghz = <0>;
  79. };
  80. };
  81. };
  82. gpio-leds {
  83. compatible = "gpio-leds";
  84. power {
  85. label = "buffalo:red:power";
  86. gpios = <&gpio0 7 1>;
  87. };
  88. wifi {
  89. label = "buffalo:green:wifi";
  90. gpios = <&gpio0 8 1>;
  91. };
  92. power2 {
  93. label = "buffalo:green:power";
  94. gpios = <&gpio0 9 1>;
  95. };
  96. wifi2 {
  97. label = "buffalo:orange:wifi";
  98. gpios = <&gpio0 10 1>;
  99. };
  100. internet {
  101. label = "buffalo:green:internet";
  102. gpios = <&gpio2 17 1>;
  103. };
  104. router {
  105. label = "buffalo:orange:router";
  106. gpios = <&gpio2 18 1>;
  107. };
  108. router2 {
  109. label = "buffalo:green:router";
  110. gpios = <&gpio2 19 1>;
  111. };
  112. };
  113. gpio-keys-polled {
  114. compatible = "gpio-keys-polled";
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. poll-interval = <20>;
  118. reset {
  119. label = "reset";
  120. gpios = <&gpio2 12 1>;
  121. linux,code = <0x198>;
  122. };
  123. aoss {
  124. label = "aoss";
  125. gpios = <&gpio2 13 1>;
  126. linux,code = <0x211>;
  127. };
  128. ap {
  129. label = "ap";
  130. gpios = <&gpio2 14 1>;
  131. linux,code = <0x100>;
  132. linux,input-type = <5>; /* EV_SW */
  133. };
  134. bridge {
  135. label = "bridge";
  136. gpios = <&gpio2 15 1>;
  137. linux,code = <0x100>;
  138. linux,input-type = <5>; /* EV_SW */
  139. };
  140. };
  141. };