1
0

qca9558_tplink_archer-c7.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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 "qca9557.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 14 GPIO_ACTIVE_LOW>;
  21. default-state = "on";
  22. };
  23. usb1 {
  24. label = "tp-link:green:usb1";
  25. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  26. trigger-sources = <&hub_port1>;
  27. linux,default-trigger = "usbport";
  28. };
  29. usb2 {
  30. label = "tp-link:green:usb2";
  31. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  32. trigger-sources = <&hub_port0>;
  33. linux,default-trigger = "usbport";
  34. };
  35. led_wlan2g: wlan2g {
  36. label = "tp-link:green:wlan2g";
  37. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  38. linux,default-trigger = "phy1tpt";
  39. };
  40. qss {
  41. label = "tp-link:green:qss";
  42. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  43. };
  44. };
  45. gpio_keys: keys {
  46. compatible = "gpio-keys";
  47. reset {
  48. label = "Reset button";
  49. linux,code = <KEY_RESTART>;
  50. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  51. debounce-interval = <60>;
  52. };
  53. };
  54. gpio-export {
  55. compatible = "gpio-export";
  56. gpio_usb1_power {
  57. gpio-export,name = "tp-link:power:usb1";
  58. gpio-export,output = <1>;
  59. gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
  60. };
  61. gpio_usb2_power {
  62. gpio-export,name = "tp-link:power:usb2";
  63. gpio-export,output = <1>;
  64. gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
  65. };
  66. };
  67. };
  68. &pcie1 {
  69. status = "okay";
  70. };
  71. &uart {
  72. status = "okay";
  73. };
  74. &gpio {
  75. status = "okay";
  76. };
  77. &usb_phy0 {
  78. status = "okay";
  79. };
  80. &usb0 {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. status = "okay";
  84. hub_port0: port@1 {
  85. reg = <1>;
  86. #trigger-source-cells = <0>;
  87. };
  88. };
  89. &usb_phy1 {
  90. status = "okay";
  91. };
  92. &usb1 {
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. status = "okay";
  96. hub_port1: port@1 {
  97. reg = <1>;
  98. #trigger-source-cells = <0>;
  99. };
  100. };
  101. &spi {
  102. status = "okay";
  103. num-cs = <1>;
  104. flash@0 {
  105. compatible = "jedec,spi-nor";
  106. reg = <0>;
  107. spi-max-frequency = <25000000>;
  108. mtdparts: partitions {
  109. compatible = "fixed-partitions";
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. };
  113. };
  114. };
  115. &mdio0 {
  116. status = "okay";
  117. phy0: ethernet-phy@0 {
  118. reg = <0>;
  119. qca,ar8327-initvals = <
  120. 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
  121. 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
  122. 0x50 0xc737c737 /* LED_CTRL0 */
  123. 0x54 0x00000000 /* LED_CTRL1 */
  124. 0x58 0x00000000 /* LED_CTRL2 */
  125. 0x5c 0x0030c300 /* LED_CTRL3 */
  126. 0x7c 0x0000007e /* PORT0_STATUS */
  127. 0x94 0x0000007e /* PORT6 STATUS */
  128. >;
  129. };
  130. };
  131. &eth0 {
  132. status = "okay";
  133. mtd-mac-address = <&uboot 0x1fc00>;
  134. mtd-mac-address-increment = <1>;
  135. phy-handle = <&phy0>;
  136. pll-data = <0x56000000 0x00000101 0x00001616>;
  137. gmac-config {
  138. device = <&gmac>;
  139. rgmii-enabled = <1>;
  140. };
  141. };
  142. &eth1 {
  143. status = "okay";
  144. mtd-mac-address = <&uboot 0x1fc00>;
  145. pll-data = <0x03000101 0x00000101 0x00001616>;
  146. fixed-link {
  147. speed = <1000>;
  148. full-duplex;
  149. };
  150. };
  151. &wmac {
  152. status = "okay";
  153. mtd-cal-data = <&art 0x1000>;
  154. mtd-mac-address = <&uboot 0x1fc00>;
  155. };