1
0

WSR-600.dts 3.1 KB

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