ar9132_tplink_tl-wa901nd-v2.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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-wa901nd-v2", "qca,ar9132";
  8. model = "TP-Link TL-WA901ND v2";
  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. reset {
  23. label = "reset";
  24. linux,code = <KEY_RESTART>;
  25. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  26. debounce-interval = <60>;
  27. };
  28. qss {
  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. system: system {
  38. label = "tp-link:green:system";
  39. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  40. };
  41. qss {
  42. label = "tp-link:green:qss";
  43. gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
  44. };
  45. wlan {
  46. label = "tp-link:green:wlan";
  47. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  48. linux,default-trigger = "phy0tpt";
  49. };
  50. };
  51. };
  52. &uart {
  53. status = "okay";
  54. };
  55. &pll {
  56. clocks = <&extosc>;
  57. };
  58. &spi {
  59. status = "okay";
  60. num-cs = <1>;
  61. flash@0 {
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  64. spi-max-frequency = <25000000>;
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. uboot: partition@0 {
  70. label = "u-boot";
  71. reg = <0x000000 0x020000>;
  72. read-only;
  73. };
  74. partition@1 {
  75. compatible = "tplink,firmware";
  76. label = "firmware";
  77. reg = <0x020000 0x3D0000>;
  78. };
  79. art: partition@2 {
  80. label = "art";
  81. reg = <0x3F0000 0x010000>;
  82. read-only;
  83. };
  84. };
  85. };
  86. };
  87. &mdio0 {
  88. status = "okay";
  89. phy0: ethernet-phy@c {
  90. reg = <0xc>;
  91. phy-mode = "mii";
  92. };
  93. };
  94. &eth0 {
  95. status = "okay";
  96. phy-mode = "mii";
  97. mtd-mac-address = <&uboot 0x1fc00>;
  98. phy-handle = <&phy0>;
  99. };
  100. &wmac {
  101. status = "okay";
  102. mtd-cal-data = <&art 0x1000>;
  103. mtd-mac-address = <&uboot 0x1fc00>;
  104. };