1
0

elecom_wrc-gst.dtsi 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_green;
  9. led-running = &led_power_green;
  10. led-upgrade = &led_power_green;
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x8000000>;
  15. };
  16. chosen {
  17. bootargs = "console=ttyS0,57600";
  18. };
  19. gpio-leds {
  20. compatible = "gpio-leds";
  21. led_power_green: power_green {
  22. label = "wrc-gst:green:power";
  23. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  24. };
  25. power_blue {
  26. label = "wrc-gst:blue:power";
  27. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  28. };
  29. wps {
  30. label = "wrc-gst:red:wps";
  31. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  32. };
  33. power_red {
  34. label = "wrc-gst:red:power";
  35. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  36. };
  37. };
  38. gpio-keys-polled {
  39. compatible = "gpio-keys-polled";
  40. poll-interval = <20>;
  41. reset {
  42. label = "reset";
  43. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART>;
  45. };
  46. wps {
  47. label = "wps";
  48. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  49. linux,code = <KEY_WPS_BUTTON>;
  50. };
  51. client {
  52. label = "client";
  53. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  54. linux,code = <BTN_0>;
  55. linux,input-type = <EV_SW>;
  56. };
  57. ap {
  58. label = "ap";
  59. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  60. linux,code = <BTN_0>;
  61. linux,input-type = <EV_SW>;
  62. };
  63. extender {
  64. label = "extender";
  65. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  66. linux,code = <BTN_0>;
  67. linux,input-type = <EV_SW>;
  68. };
  69. router {
  70. label = "router";
  71. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  72. linux,code = <BTN_0>;
  73. linux,input-type = <EV_SW>;
  74. };
  75. };
  76. };
  77. &ethernet {
  78. mtd-mac-address = <&factory 0xe000>;
  79. };
  80. &spi0 {
  81. status = "okay";
  82. m25p80@0 {
  83. compatible = "jedec,spi-nor";
  84. reg = <0>;
  85. spi-max-frequency = <10000000>;
  86. m25p,chunked-io = <32>;
  87. partitions {
  88. compatible = "fixed-partitions";
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. partition@0 {
  92. label = "u-boot";
  93. reg = <0x0 0x30000>;
  94. read-only;
  95. };
  96. partition@30000 {
  97. label = "u-boot-env";
  98. reg = <0x30000 0x10000>;
  99. read-only;
  100. };
  101. factory: partition@40000 {
  102. label = "factory";
  103. reg = <0x40000 0x10000>;
  104. read-only;
  105. };
  106. partition@50000 {
  107. label = "firmware";
  108. reg = <0x50000 0xb00000>;
  109. };
  110. partition@b50000 {
  111. label = "tm_pattern";
  112. reg = <0xb50000 0x380000>;
  113. read-only;
  114. };
  115. partition@ed0000 {
  116. label = "tm_key";
  117. reg = <0xed0000 0x80000>;
  118. read-only;
  119. };
  120. partition@f50000 {
  121. label = "art_block";
  122. reg = <0xf50000 0x30000>;
  123. read-only;
  124. };
  125. partition@f80000 {
  126. label = "user_data";
  127. reg = <0xf80000 0x80000>;
  128. read-only;
  129. };
  130. };
  131. };
  132. };
  133. &pinctrl {
  134. state_default: pinctrl0 {
  135. gpio {
  136. ralink,group = "uart3", "jtag", "wdt", "sdhci";
  137. ralink,function = "gpio";
  138. };
  139. };
  140. };
  141. &pcie {
  142. status = "okay";
  143. /* WRC-xxxxGST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
  144. };
  145. &xhci {
  146. status = "disabled";
  147. };