ar9331_tplink_tl-wr710n-v1.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. model = "TP-Link TL-WR710N v1";
  8. compatible = "tplink,tl-wr710n-v1", "qca,ar9331";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &led_system;
  12. led-failsafe = &led_system;
  13. led-running = &led_system;
  14. led-upgrade = &led_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_LOW>;
  23. debounce-interval = <60>;
  24. };
  25. };
  26. leds {
  27. compatible = "gpio-leds";
  28. led_system: system {
  29. label = "tl-wr710n:green:system";
  30. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  31. };
  32. };
  33. reg_usb_vbus: regulator {
  34. compatible = "regulator-fixed";
  35. regulator-name = "usb_vbus";
  36. regulator-min-microvolt = <5000000>;
  37. regulator-max-microvolt = <5000000>;
  38. gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
  39. enable-active-high;
  40. };
  41. };
  42. &spi {
  43. status = "okay";
  44. num-cs = <1>;
  45. flash@0 {
  46. compatible = "jedec,spi-nor";
  47. reg = <0>;
  48. spi-max-frequency = <25000000>;
  49. partitions {
  50. compatible = "fixed-partitions";
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. uboot: partition@0 {
  54. reg = <0x0 0x20000>;
  55. label = "u-boot";
  56. read-only;
  57. };
  58. firmware: partition@20000 {
  59. compatible = "tplink,firmware";
  60. reg = <0x20000 0x7d0000>;
  61. label = "firmware";
  62. };
  63. art: partition@7f0000 {
  64. reg = <0x7f0000 0x10000>;
  65. label = "art";
  66. read-only;
  67. };
  68. };
  69. };
  70. };
  71. &eth0 {
  72. status = "okay";
  73. mtd-mac-address = <&uboot 0x1fc00>;
  74. gmac-config {
  75. device = <&gmac>;
  76. switch-phy-addr-swap = <0>;
  77. switch-phy-swap = <0>;
  78. };
  79. };
  80. &eth1 {
  81. status = "okay";
  82. mtd-mac-address = <&uboot 0x1fc00>;
  83. mtd-mac-address-increment = <(-1)>;
  84. };
  85. &gpio {
  86. status = "okay";
  87. };
  88. &uart {
  89. status = "okay";
  90. };
  91. &usb {
  92. dr_mode = "host";
  93. vbus-supply = <&reg_usb_vbus>;
  94. status = "okay";
  95. };
  96. &usb_phy {
  97. status = "okay";
  98. };
  99. &wmac {
  100. status = "okay";
  101. mtd-cal-data = <&art 0x1000>;
  102. mtd-mac-address = <&uboot 0x1fc00>;
  103. };