ar9331_tplink_tl-wr741nd-v4.dtsi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 "ar9331.dtsi"
  6. / {
  7. compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
  8. model = "TP-Link TL-WR741N/ND v4";
  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 11 GPIO_ACTIVE_HIGH>;
  23. debounce-interval = <60>;
  24. };
  25. wps {
  26. label = "wps";
  27. linux,code = <KEY_WPS_BUTTON>;
  28. gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
  29. debounce-interval = <60>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&switch_led_disable_pins>;
  36. lan1 {
  37. label = "tp-link:green:lan1";
  38. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  39. };
  40. lan2 {
  41. label = "tp-link:green:lan2";
  42. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  43. };
  44. lan3 {
  45. label = "tp-link:green:lan3";
  46. gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
  47. };
  48. lan4 {
  49. label = "tp-link:green:lan4";
  50. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  51. };
  52. qss {
  53. label = "tp-link:green:qss";
  54. gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  55. };
  56. system: system {
  57. label = "tp-link:green:system";
  58. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  59. };
  60. wan {
  61. label = "tp-link:green:wan";
  62. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  63. };
  64. wlan {
  65. label = "tp-link:green:wlan";
  66. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  67. linux,default-trigger = "phy0tpt";
  68. };
  69. };
  70. };
  71. &spi {
  72. status = "okay";
  73. num-cs = <1>;
  74. flash@0 {
  75. compatible = "jedec,spi-nor";
  76. reg = <0>;
  77. spi-max-frequency = <25000000>;
  78. partitions {
  79. compatible = "fixed-partitions";
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. uboot: partition@0 {
  83. reg = <0x0 0x20000>;
  84. label = "u-boot";
  85. read-only;
  86. };
  87. firmware: partition@20000 {
  88. compatible = "tplink,firmware";
  89. reg = <0x20000 0x3d0000>;
  90. label = "firmware";
  91. };
  92. art: partition@3f0000 {
  93. reg = <0x3f0000 0x10000>;
  94. label = "art";
  95. read-only;
  96. };
  97. };
  98. };
  99. };
  100. &eth0 {
  101. status = "okay";
  102. mtd-mac-address = <&uboot 0x1fc00>;
  103. mtd-mac-address-increment = <1>;
  104. gmac-config {
  105. device = <&gmac>;
  106. switch-phy-addr-swap = <1>;
  107. switch-phy-swap = <1>;
  108. };
  109. };
  110. &eth1 {
  111. status = "okay";
  112. mtd-mac-address = <&uboot 0x1fc00>;
  113. mtd-mac-address-increment = <(-1)>;
  114. };
  115. &gpio {
  116. status = "okay";
  117. };
  118. &uart {
  119. status = "okay";
  120. };
  121. &wmac {
  122. status = "okay";
  123. mtd-cal-data = <&art 0x1000>;
  124. mtd-mac-address = <&uboot 0x1fc00>;
  125. };