WSR-600.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /dts-v1/;
  2. /include/ "mt7621.dtsi"
  3. / {
  4. compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
  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. 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 0xfb0000>;
  41. };
  42. };
  43. };
  44. };
  45. pinctrl {
  46. state_default: pinctrl0 {
  47. gpio {
  48. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  49. ralink,function = "gpio";
  50. };
  51. };
  52. };
  53. gpio-leds {
  54. compatible = "gpio-leds";
  55. power {
  56. label = "buffalo:green:power";
  57. gpios = <&gpio0 12 1>;
  58. };
  59. wifi_o {
  60. label = "buffalo:orange:wifi";
  61. gpios = <&gpio1 9 1>;
  62. };
  63. diag {
  64. label = "buffalo:orange:diag";
  65. gpios = <&gpio1 10 1>;
  66. };
  67. wifi_g {
  68. label = "buffalo:green:wifi";
  69. gpios = <&gpio1 12 1>;
  70. };
  71. router_o {
  72. label = "buffalo:orange:router";
  73. gpios = <&gpio1 13 1>;
  74. };
  75. router_g {
  76. label = "buffalo:green:router";
  77. gpios = <&gpio1 14 1>;
  78. };
  79. internet_o {
  80. label = "buffalo:orange:internet";
  81. gpios = <&gpio1 15 1>;
  82. };
  83. internet_g {
  84. label = "buffalo:green:internet";
  85. gpios = <&gpio1 16 1>;
  86. };
  87. };
  88. gpio-keys-polled {
  89. compatible = "gpio-keys-polled";
  90. #address-cells = <1>;
  91. #size-cells = <0>;
  92. poll-interval = <20>;
  93. power {
  94. label = "power";
  95. gpios = <&gpio0 8 1>;
  96. linux,code = <0x74>;
  97. };
  98. reset {
  99. label = "reset";
  100. gpios = <&gpio0 11 1>;
  101. linux,code = <0x198>;
  102. };
  103. aoss {
  104. label = "aoss";
  105. gpios = <&gpio0 18 1>;
  106. linux,code = <0x211>;
  107. };
  108. auto {
  109. label = "mode";
  110. gpios = <&gpio0 7 0>;
  111. linux,code = <0x100>;
  112. linux,input-type = <5>; /* EV_SW */
  113. };
  114. ap {
  115. label = "ap";
  116. gpios = <&gpio0 6 0>;
  117. linux,code = <0x100>;
  118. linux,input-type = <5>; /* EV_SW */
  119. };
  120. router {
  121. label = "router";
  122. gpios = <&gpio0 10 0>;
  123. linux,code = <0x100>;
  124. linux,input-type = <5>; /* EV_SW */
  125. };
  126. };
  127. gpio_poweroff {
  128. compatible = "gpio-poweroff";
  129. gpios = <&gpio1 11 1>;
  130. };
  131. };