mt7621_asus_rt-ax53u.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "mt7621.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 = "asus,rt-ax53u", "mediatek,mt7621-soc";
  8. model = "ASUS RT-AX53U";
  9. aliases {
  10. led-boot = &led_power;
  11. led-failsafe = &led_power;
  12. led-running = &led_power;
  13. led-upgrade = &led_power;
  14. label-mac-device = &gmac0;
  15. };
  16. chosen {
  17. bootargs = "console=ttyS0,115200";
  18. bootargs-override = "console=ttyS0,115200";
  19. };
  20. leds {
  21. compatible = "gpio-leds";
  22. led_power: power {
  23. color = <LED_COLOR_ID_BLUE>;
  24. function = LED_FUNCTION_POWER;
  25. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  26. };
  27. led_usb {
  28. color = <LED_COLOR_ID_BLUE>;
  29. function = LED_FUNCTION_USB;
  30. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  31. trigger-sources = <&ehci_port2>;
  32. linux,default-trigger = "usbport";
  33. };
  34. };
  35. keys {
  36. compatible = "gpio-keys";
  37. key-restart {
  38. label = "reset";
  39. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RESTART>;
  41. };
  42. key-wps {
  43. label = "wps";
  44. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  45. linux,code = <KEY_WPS_BUTTON>;
  46. };
  47. };
  48. };
  49. &nand {
  50. status = "okay";
  51. mediatek,nmbm;
  52. mediatek,bmt-remap-range =
  53. <0x000000 0x7e0000>,
  54. <0x35e0000 0x7800000>;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0 0x80000>;
  62. read-only;
  63. };
  64. /*
  65. * u-boot gets split here while keeping u-boot read-only,
  66. * which allows safe usage of fw_setenv
  67. */
  68. partition@80000 {
  69. label = "u-boot-env";
  70. reg = <0x80000 0x60000>;
  71. };
  72. partition@e0000 {
  73. label = "nvram";
  74. reg = <0xe0000 0x100000>;
  75. read-only;
  76. };
  77. partition@1e0000 {
  78. label = "factory";
  79. reg = <0x1e0000 0x100000>;
  80. read-only;
  81. nvmem-layout {
  82. compatible = "fixed-layout";
  83. #address-cells = <1>;
  84. #size-cells = <1>;
  85. eeprom_factory_0: eeprom@0 {
  86. reg = <0x0 0xe00>;
  87. };
  88. macaddr_factory_4: macaddr@4 {
  89. reg = <0x4 0x6>;
  90. };
  91. precal_factory_e10: precal@e10 {
  92. reg = <0xe10 0x19c10>;
  93. };
  94. };
  95. };
  96. partition@2e0000 {
  97. label = "factory2";
  98. reg = <0x2e0000 0x100000>;
  99. read-only;
  100. };
  101. partition@3e0000 {
  102. label = "firmware";
  103. reg = <0x3e0000 0x3200000>;
  104. compatible = "fixed-partitions";
  105. #address-cells = <1>;
  106. #size-cells = <1>;
  107. partition@0 {
  108. label = "kernel";
  109. reg = <0x0 0x400000>;
  110. };
  111. partition@400000 {
  112. label = "ubi";
  113. reg = <0x400000 0x2e00000>;
  114. };
  115. };
  116. partition@35e0000 {
  117. label = "firmware2";
  118. reg = <0x35e0000 0x3200000>;
  119. };
  120. partition@67e0000 {
  121. label = "jffs2";
  122. reg = <0x67e0000 0x1020000>;
  123. };
  124. /* Last 8M are reserved for NMBM management (bad blocks) */
  125. };
  126. };
  127. &pcie {
  128. status = "okay";
  129. };
  130. &pcie1 {
  131. wifi@0,0 {
  132. compatible = "mediatek,mt76";
  133. reg = <0x0000 0 0 0 0>;
  134. nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
  135. nvmem-cell-names = "eeprom", "precal";
  136. mediatek,disable-radar-background;
  137. };
  138. };
  139. &gmac0 {
  140. nvmem-cells = <&macaddr_factory_4>;
  141. nvmem-cell-names = "mac-address";
  142. };
  143. &gmac1 {
  144. status = "okay";
  145. label = "wan";
  146. phy-handle = <&ethphy0>;
  147. nvmem-cells = <&macaddr_factory_4>;
  148. nvmem-cell-names = "mac-address";
  149. };
  150. &ethphy0 {
  151. /delete-property/ interrupts;
  152. };
  153. &switch0 {
  154. ports {
  155. port@1 {
  156. status = "okay";
  157. label = "lan1";
  158. };
  159. port@2 {
  160. status = "okay";
  161. label = "lan2";
  162. };
  163. port@3 {
  164. status = "okay";
  165. label = "lan3";
  166. };
  167. };
  168. };
  169. &state_default {
  170. gpio {
  171. groups = "i2c", "uart2", "uart3", "jtag", "wdt";
  172. function = "gpio";
  173. };
  174. };