mt7620a_wevo_air-duo.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/leds/common.h>
  6. / {
  7. compatible = "wevo,air-duo", "ralink,mt7620a-soc";
  8. model = "WeVO AIR DUO";
  9. aliases {
  10. led-boot = &led_status;
  11. led-failsafe = &led_status;
  12. led-running = &led_status;
  13. led-upgrade = &led_status;
  14. label-mac-device = &ethernet;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. led_status: led-0 {
  19. label = "blue:status";
  20. color = <LED_COLOR_ID_BLUE>;
  21. function = LED_FUNCTION_STATUS;
  22. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  23. };
  24. led-1 {
  25. color = <LED_COLOR_ID_BLUE>;
  26. function = LED_FUNCTION_WPS;
  27. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  28. };
  29. };
  30. keys {
  31. compatible = "gpio-keys";
  32. wps {
  33. label = "wps";
  34. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. reset {
  38. label = "reset";
  39. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RESTART>;
  41. };
  42. };
  43. };
  44. &gpio1 {
  45. status = "okay";
  46. };
  47. &spi0 {
  48. status = "okay";
  49. flash@0 {
  50. compatible = "jedec,spi-nor";
  51. reg = <0>;
  52. spi-max-frequency = <50000000>;
  53. partitions {
  54. compatible = "fixed-partitions";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x0 0x30000>;
  60. read-only;
  61. };
  62. partition@30000 {
  63. label = "config";
  64. reg = <0x30000 0x10000>;
  65. read-only;
  66. };
  67. factory: partition@40000 {
  68. label = "factory";
  69. reg = <0x40000 0x10000>;
  70. read-only;
  71. compatible = "nvmem-cells";
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. macaddr_factory_4: macaddr@4 {
  75. reg = <0x4 0x6>;
  76. };
  77. };
  78. partition@50000 {
  79. compatible = "denx,uimage";
  80. label = "firmware";
  81. reg = <0x50000 0xeb0000>;
  82. };
  83. partition@f00000 {
  84. label = "db";
  85. reg = <0xf00000 0x100000>;
  86. read-only;
  87. };
  88. };
  89. };
  90. };
  91. &state_default {
  92. gpio {
  93. groups = "i2c", "uartf", "spi refclk";
  94. function = "gpio";
  95. };
  96. };
  97. &ethernet {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&rgmii1_pins &mdio_pins>;
  100. nvmem-cells = <&macaddr_factory_4>;
  101. nvmem-cell-names = "mac-address";
  102. port@5 {
  103. status = "okay";
  104. mediatek,fixed-link = <1000 1 1 1>;
  105. phy-mode = "rgmii";
  106. };
  107. mdio-bus {
  108. status = "okay";
  109. ethernet-phy@0 {
  110. reg = <0>;
  111. phy-mode = "rgmii";
  112. };
  113. ethernet-phy@1 {
  114. reg = <1>;
  115. phy-mode = "rgmii";
  116. };
  117. ethernet-phy@2 {
  118. reg = <2>;
  119. phy-mode = "rgmii";
  120. };
  121. ethernet-phy@3 {
  122. reg = <3>;
  123. phy-mode = "rgmii";
  124. };
  125. ethernet-phy@4 {
  126. reg = <4>;
  127. phy-mode = "rgmii";
  128. };
  129. ethernet-phy@1f {
  130. reg = <0x1f>;
  131. phy-mode = "rgmii";
  132. };
  133. };
  134. };
  135. &gsw {
  136. mediatek,ephy-base = /bits/ 8 <12>;
  137. };
  138. &ehci {
  139. status = "okay";
  140. };
  141. &ohci {
  142. status = "okay";
  143. };
  144. &pcie {
  145. status = "okay";
  146. };
  147. &pcie0 {
  148. wifi@0,0 {
  149. compatible = "mediatek,mt76";
  150. reg = <0x0000 0 0 0 0>;
  151. mediatek,mtd-eeprom = <&factory 0x8000>;
  152. ieee80211-freq-limit = <5000000 6000000>;
  153. led {
  154. led-sources = <2>;
  155. led-active-low;
  156. };
  157. };
  158. };
  159. &wmac {
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&wled_pins>;
  162. ralink,mtd-eeprom = <&factory 0x0>;
  163. };