qca9561_tplink_archer-c59-v1.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 "qca9561_tplink_archer-c5x.dtsi"
  6. / {
  7. compatible = "tplink,archer-c59-v1", "qca,qca9560";
  8. model = "TP-LINK Archer C59 v1";
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &power;
  12. led-running = &power;
  13. led-upgrade = &power;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. power: power {
  18. label = "tp-link:green:power";
  19. gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
  20. default-state = "on";
  21. };
  22. wlan2g {
  23. label = "tp-link:green:wlan2g";
  24. gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
  25. linux,default-trigger = "phy1tpt";
  26. };
  27. wlan5g {
  28. label = "tp-link:green:wlan5g";
  29. gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "phy0tpt";
  31. };
  32. wan_green {
  33. label = "tp-link:green:wan";
  34. gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
  35. };
  36. wan_amber {
  37. label = "tp-link:amber:wan";
  38. gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
  39. };
  40. lan {
  41. label = "tp-link:green:lan";
  42. gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
  43. };
  44. wps {
  45. label = "tp-link:green:wps";
  46. gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
  47. };
  48. usb {
  49. label = "tp-link:green:usb";
  50. gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
  51. linux,default-trigger = "usbport";
  52. trigger-sources = <&hub_port>;
  53. };
  54. };
  55. };
  56. &usb0 {
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. status = "okay";
  60. hub_port: port@1 {
  61. reg = <1>;
  62. #trigger-source-cells = <0>;
  63. };
  64. };
  65. &usb_phy0 {
  66. status = "okay";
  67. };
  68. &spi {
  69. status = "okay";
  70. num-cs = <1>;
  71. flash@0 {
  72. compatible = "jedec,spi-nor";
  73. reg = <0>;
  74. spi-max-frequency = <25000000>;
  75. partitions {
  76. compatible = "fixed-partitions";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. partition@0 {
  80. label = "u-boot";
  81. reg = <0x000000 0x010000>;
  82. read-only;
  83. };
  84. mac: partition@10000 {
  85. label = "mac";
  86. reg = <0x010000 0x010000>;
  87. read-only;
  88. };
  89. partition@20000 {
  90. compatible = "denx,uimage";
  91. label = "firmware";
  92. reg = <0x020000 0xe30000>;
  93. };
  94. partition@e50000 {
  95. label = "tplink";
  96. reg = <0xe50000 0x1a0000>;
  97. read-only;
  98. };
  99. art: partition@ff0000 {
  100. label = "art";
  101. reg = <0xff0000 0x010000>;
  102. read-only;
  103. };
  104. };
  105. };
  106. };
  107. &eth0 {
  108. status = "okay";
  109. mtd-mac-address = <&mac 0x8>;
  110. mtd-mac-address-increment = <1>;
  111. };
  112. &eth1 {
  113. status = "okay";
  114. mtd-mac-address = <&mac 0x8>;
  115. };
  116. &wmac {
  117. status = "okay";
  118. mtd-cal-data = <&art 0x1000>;
  119. mtd-mac-address = <&mac 0x8>;
  120. };