1
0

ar9341_tplink_tl-wr841-v8.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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 "ar9341.dtsi"
  6. / {
  7. model = "TP-Link TL-WR841N/ND v8";
  8. compatible = "tplink,tl-wr841-v8", "qca,ar9341";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &system;
  12. led-failsafe = &system;
  13. led-running = &system;
  14. led-upgrade = &system;
  15. };
  16. keys {
  17. compatible = "gpio-keys-polled";
  18. poll-interval = <20>;
  19. reset {
  20. label = "Reset";
  21. linux,code = <KEY_RESTART>;
  22. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  23. debounce-interval = <60>;
  24. };
  25. rfkill {
  26. label = "WiFi";
  27. linux,code = <KEY_RFKILL>;
  28. gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
  29. debounce-interval = <60>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. system: power {
  35. label = "tp-link:green:power";
  36. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  37. default-state = "on";
  38. };
  39. wlan {
  40. label = "tp-link:green:wlan";
  41. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  42. linux,default-trigger = "phy0tpt";
  43. };
  44. qss {
  45. label = "tp-link:green:qss";
  46. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  47. };
  48. wan {
  49. label = "tp-link:green:wan";
  50. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  51. };
  52. lan1 {
  53. label = "tp-link:green:lan1";
  54. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  55. };
  56. lan2 {
  57. label = "tp-link:green:lan2";
  58. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  59. };
  60. lan3 {
  61. label = "tp-link:green:lan3";
  62. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  63. };
  64. lan4 {
  65. label = "tp-link:green:lan4";
  66. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  67. };
  68. };
  69. };
  70. &ref {
  71. clock-frequency = <25000000>;
  72. };
  73. &uart {
  74. status = "okay";
  75. };
  76. &gpio {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>;
  79. };
  80. &pinmux {
  81. pmx_usb_power: usb_power {
  82. pinctrl-single,bits = <0x4 0x0 0xff>;
  83. };
  84. };
  85. &spi {
  86. num-cs = <1>;
  87. status = "okay";
  88. flash@0 {
  89. compatible = "jedec,spi-nor";
  90. reg = <0>;
  91. spi-max-frequency = <25000000>;
  92. partitions {
  93. compatible = "fixed-partitions";
  94. #address-cells = <1>;
  95. #size-cells = <1>;
  96. uboot: partition@0 {
  97. label = "u-boot";
  98. reg = <0x000000 0x020000>;
  99. read-only;
  100. };
  101. partition@20000 {
  102. compatible = "tplink,firmware";
  103. label = "firmware";
  104. reg = <0x020000 0x3d0000>;
  105. };
  106. art: partition@3f0000 {
  107. label = "art";
  108. reg = <0x3f0000 0x010000>;
  109. read-only;
  110. };
  111. };
  112. };
  113. };
  114. &eth0 {
  115. status = "okay";
  116. phy-handle = <&swphy0>;
  117. mtd-mac-address = <&uboot 0x1fc00>;
  118. mtd-mac-address-increment = <(-1)>;
  119. };
  120. &eth1 {
  121. status = "okay";
  122. mtd-mac-address = <&uboot 0x1fc00>;
  123. pll-data = <0x06000000 0x00000101 0x00001616>;
  124. gmac-config {
  125. device = <&gmac>;
  126. switch-phy-swap = <1>;
  127. };
  128. };
  129. &wmac {
  130. status = "okay";
  131. mtd-cal-data = <&art 0x1000>;
  132. mtd-mac-address = <&uboot 0x1fc00>;
  133. };