WRC-1167GHBK2-S.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
  7. model = "ELECOM WRC-1167GHBK2-S";
  8. aliases {
  9. led-boot = &led_power_green;
  10. led-failsafe = &led_power_green;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_green;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x8000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. wlan2g {
  24. label = "wrc-1167ghbk2-s:white:wlan2g";
  25. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  26. };
  27. wlan5g {
  28. label = "wrc-1167ghbk2-s:white:wlan5g";
  29. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  30. };
  31. led_power_green: power_green {
  32. label = "wrc-1167ghbk2-s:green:power";
  33. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  34. };
  35. power_blue {
  36. label = "wrc-1167ghbk2-s:blue:power";
  37. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  38. };
  39. wps {
  40. label = "wrc-1167ghbk2-s:red:wps";
  41. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  42. };
  43. power_red {
  44. label = "wrc-1167ghbk2-s:red:power";
  45. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  46. };
  47. };
  48. gpio-keys-polled {
  49. compatible = "gpio-keys-polled";
  50. poll-interval = <20>;
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. wps {
  57. label = "wps";
  58. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  59. linux,code = <KEY_WPS_BUTTON>;
  60. };
  61. };
  62. };
  63. &ethernet {
  64. mtd-mac-address = <&factory 0xe000>;
  65. };
  66. &spi0 {
  67. status = "okay";
  68. m25p80@0 {
  69. compatible = "jedec,spi-nor";
  70. reg = <0>;
  71. spi-max-frequency = <10000000>;
  72. m25p,chunked-io = <32>;
  73. partitions {
  74. compatible = "fixed-partitions";
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. partition@0 {
  78. label = "u-boot";
  79. reg = <0x0 0x30000>;
  80. read-only;
  81. };
  82. partition@30000 {
  83. label = "u-boot-env";
  84. reg = <0x30000 0x10000>;
  85. read-only;
  86. };
  87. factory: partition@40000 {
  88. label = "factory";
  89. reg = <0x40000 0x10000>;
  90. read-only;
  91. };
  92. partition@50000 {
  93. label = "firmware";
  94. reg = <0x50000 0xf20000>;
  95. };
  96. partition@f70000 {
  97. label = "user_data";
  98. reg = <0xf70000 0x80000>;
  99. read-only;
  100. };
  101. partition@ff0000 {
  102. label = "NVRAM";
  103. reg = <0xff0000 0x10000>;
  104. read-only;
  105. };
  106. };
  107. };
  108. };
  109. &pinctrl {
  110. state_default: pinctrl0 {
  111. gpio {
  112. ralink,group = "i2c", "uart3", "jtag", "wdt";
  113. ralink,function = "gpio";
  114. };
  115. };
  116. };
  117. &pcie {
  118. status = "okay";
  119. /*
  120. * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
  121. * but it's not supported in OpenWrt.
  122. */
  123. };
  124. &xhci {
  125. status = "disabled";
  126. };