ar9132_tplink_tl-wr1043nd-v1.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9132.dtsi"
  6. / {
  7. compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
  8. model = "TP-Link TL-WR1043ND Version 1";
  9. aliases {
  10. led-boot = &system;
  11. led-failsafe = &system;
  12. led-running = &system;
  13. led-upgrade = &system;
  14. };
  15. extosc: ref {
  16. compatible = "fixed-clock";
  17. #clock-cells = <0>;
  18. clock-frequency = <40000000>;
  19. };
  20. keys {
  21. compatible = "gpio-keys";
  22. button0 {
  23. label = "reset";
  24. linux,code = <KEY_RESTART>;
  25. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  26. debounce-interval = <60>;
  27. };
  28. button1 {
  29. label = "qss";
  30. linux,code = <KEY_WPS_BUTTON>;
  31. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  32. debounce-interval = <60>;
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. usb {
  38. label = "tp-link:green:usb";
  39. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  40. trigger-sources = <&hub_port>;
  41. linux,default-trigger = "usbport";
  42. };
  43. system: system {
  44. label = "tp-link:green:system";
  45. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  46. linux,default-trigger = "heartbeat";
  47. };
  48. qss {
  49. label = "tp-link:green:qss";
  50. gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  51. };
  52. wlan {
  53. label = "tp-link:green:wlan";
  54. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  55. linux,default-trigger = "phy0tpt";
  56. };
  57. };
  58. rtl8366rb {
  59. compatible = "realtek,rtl8366rb";
  60. gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
  61. gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
  62. resets = <&rst 8>;
  63. reset-names = "switch";
  64. };
  65. };
  66. &uart {
  67. status = "okay";
  68. };
  69. &pll {
  70. clocks = <&extosc>;
  71. };
  72. &usb {
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. status = "okay";
  76. hub_port: port@1 {
  77. reg = <1>;
  78. #trigger-source-cells = <0>;
  79. };
  80. };
  81. &usb_phy {
  82. status = "okay";
  83. };
  84. &spi {
  85. status = "okay";
  86. num-cs = <1>;
  87. flash@0 {
  88. compatible = "jedec,spi-nor";
  89. reg = <0>;
  90. spi-max-frequency = <25000000>;
  91. partitions {
  92. compatible = "fixed-partitions";
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. uboot: partition@0 {
  96. label = "u-boot";
  97. reg = <0x000000 0x020000>;
  98. read-only;
  99. };
  100. partition@20000 {
  101. compatible = "tplink,firmware";
  102. label = "firmware";
  103. reg = <0x020000 0x7D0000>;
  104. };
  105. art: partition@7F0000 {
  106. label = "art";
  107. reg = <0x7F0000 0x010000>;
  108. read-only;
  109. };
  110. };
  111. };
  112. };
  113. &eth0 {
  114. status = "okay";
  115. phy-mode = "rgmii";
  116. mtd-mac-address = <&uboot 0x1fc00>;
  117. fixed-link {
  118. speed = <1000>;
  119. full-duplex;
  120. };
  121. };
  122. &wmac {
  123. status = "okay";
  124. mtd-cal-data = <&art 0x1000>;
  125. mtd-mac-address = <&uboot 0x1fc00>;
  126. };