1
0

WSR-600.dts 2.4 KB

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