WCR-1166DS.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
  7. model = "Buffalo WCR-1166DS";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. aoss {
  18. label = "aoss";
  19. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_WPS_BUTTON>;
  21. };
  22. ap {
  23. label = "ap";
  24. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  25. linux,code = <BTN_0>;
  26. linux,input-type = <EV_SW>;
  27. };
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. router_o {
  37. label = "wcr-1166ds:orange:router";
  38. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  39. };
  40. router_g {
  41. label = "wcr-1166ds:green:router";
  42. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  43. };
  44. internet_o {
  45. label = "wcr-1166ds:orange:internet";
  46. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  47. };
  48. internet_g {
  49. label = "wcr-1166ds:green:internet";
  50. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  51. };
  52. wireless_o {
  53. label = "wcr-1166ds:orange:wireless";
  54. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  55. };
  56. wireless_g {
  57. label = "wcr-1166ds:green:wireless";
  58. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  59. };
  60. diag {
  61. label = "wcr-1166ds:orange:diag";
  62. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  63. };
  64. led_power: power {
  65. label = "wcr-1166ds:green:power";
  66. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  67. };
  68. };
  69. };
  70. &ehci {
  71. status = "disabled";
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. mediatek,portdisable = <0x27>;
  76. };
  77. &ohci {
  78. status = "disabled";
  79. };
  80. &pcie {
  81. status = "okay";
  82. };
  83. &pcie0 {
  84. mt76@0,0 {
  85. reg = <0x0000 0 0 0 0>;
  86. mediatek,mtd-eeprom = <&factory 0x8000>;
  87. ieee80211-freq-limit = <5000000 6000000>;
  88. };
  89. };
  90. &pinctrl {
  91. state_default: pinctrl0 {
  92. gpio {
  93. ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
  94. ralink,function = "gpio";
  95. };
  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 0x7c0000>;
  127. };
  128. partition@810000 {
  129. label = "firmware2";
  130. reg = <0x810000 0x7c0000>;
  131. };
  132. partition@fd0000 {
  133. label = "glbcfg";
  134. reg = <0xfd0000 0x10000>;
  135. read-only;
  136. };
  137. partition@fe0000 {
  138. label = "board_data";
  139. reg = <0xfe0000 0x10000>;
  140. read-only;
  141. };
  142. };
  143. };
  144. };
  145. &wmac {
  146. status = "okay";
  147. };