1
0

qca9563_tplink_archer-x7-v5.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "qca956x.dtsi"
  6. / {
  7. chosen {
  8. bootargs = "console=ttyS0,115200n8";
  9. };
  10. aliases {
  11. led-boot = &system;
  12. led-failsafe = &system;
  13. led-running = &system;
  14. led-upgrade = &system;
  15. };
  16. gpio_leds: leds {
  17. compatible = "gpio-leds";
  18. system: system {
  19. label = "tp-link:green:system";
  20. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  21. default-state = "on";
  22. };
  23. usb {
  24. label = "tp-link:green:usb";
  25. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  26. trigger-sources = <&hub_port0>;
  27. linux,default-trigger = "usbport";
  28. };
  29. wlan5g {
  30. label = "tp-link:green:wlan5g";
  31. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  32. linux,default-trigger = "phy0tpt";
  33. };
  34. led_wlan2g: wlan2g {
  35. label = "tp-link:green:wlan2g";
  36. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  37. linux,default-trigger = "phy1tpt";
  38. };
  39. wan {
  40. label = "tp-link:green:wan";
  41. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  42. };
  43. wan_fail {
  44. label = "tp-link:orange:wan";
  45. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  46. };
  47. lan1 {
  48. label = "tp-link:green:lan1";
  49. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  50. };
  51. lan2 {
  52. label = "tp-link:green:lan2";
  53. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  54. };
  55. lan3 {
  56. label = "tp-link:green:lan3";
  57. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  58. };
  59. lan4 {
  60. label = "tp-link:green:lan4";
  61. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  62. };
  63. wps {
  64. label = "tp-link:green:wps";
  65. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  66. };
  67. };
  68. gpio_keys: keys {
  69. compatible = "gpio-keys";
  70. wps {
  71. label = "WPS button";
  72. linux,code = <KEY_WPS_BUTTON>;
  73. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  74. debounce-interval = <60>;
  75. };
  76. };
  77. gpio-export {
  78. compatible = "gpio-export";
  79. gpio_usb_power {
  80. gpio-export,name = "tp-link:power:usb";
  81. gpio-export,output = <1>;
  82. gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
  83. };
  84. };
  85. };
  86. &pcie {
  87. status = "okay";
  88. };
  89. &uart {
  90. status = "okay";
  91. };
  92. &gpio {
  93. status = "okay";
  94. };
  95. &usb_phy0 {
  96. status = "okay";
  97. };
  98. &usb0 {
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. status = "okay";
  102. hub_port0: port@1 {
  103. reg = <1>;
  104. #trigger-source-cells = <0>;
  105. };
  106. };
  107. &spi {
  108. status = "okay";
  109. num-cs = <1>;
  110. flash@0 {
  111. compatible = "jedec,spi-nor";
  112. reg = <0>;
  113. spi-max-frequency = <25000000>;
  114. mtdparts: partitions {
  115. compatible = "fixed-partitions";
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. };
  119. };
  120. };
  121. &mdio0 {
  122. status = "okay";
  123. phy-mask = <0>;
  124. phy0: ethernet-phy@0 {
  125. reg = <0>;
  126. phy-mode = "sgmii";
  127. qca,mib-poll-interval = <500>;
  128. qca,ar8327-initvals = <
  129. 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
  130. 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
  131. 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
  132. 0x10 0x00000080 /* POWER_ON_STRIP */
  133. 0x7c 0x0000007e /* PORT0_STATUS */
  134. 0x94 0x00000200 /* PORT6_STATUS */
  135. >;
  136. };
  137. };
  138. &eth0 {
  139. status = "okay";
  140. pll-data = <0x03000101 0x00000101 0x00001919>;
  141. phy-mode = "sgmii";
  142. mtd-mac-address = <&info 0x8>;
  143. phy-handle = <&phy0>;
  144. };
  145. &wmac {
  146. status = "okay";
  147. mtd-cal-data = <&art 0x1000>;
  148. mtd-mac-address = <&info 0x8>;
  149. };