qca9558_tplink_tl-wr941n-v7-cn.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 "qca9557.dtsi"
  6. / {
  7. compatible = "tplink,tl-wr941n-v7-cn", "qca,qca9558";
  8. model = "TP-Link TL-WR941N v7 (CN)";
  9. chosen {
  10. bootargs = "console=ttyS0,115200n8";
  11. };
  12. aliases {
  13. led-boot = &led_system;
  14. led-failsafe = &led_system;
  15. led-running = &led_system;
  16. led-upgrade = &led_system;
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. led_system: system {
  21. label = "tp-link:green:system";
  22. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  23. default-state = "on";
  24. };
  25. wlan {
  26. label = "tp-link:green:wlan";
  27. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  28. linux,default-trigger = "phy0tpt";
  29. };
  30. qss {
  31. label = "tp-link:green:qss";
  32. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. keys {
  36. compatible = "gpio-keys";
  37. reset {
  38. label = "reset";
  39. linux,code = <KEY_RESTART>;
  40. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  41. debounce-interval = <60>;
  42. };
  43. wps {
  44. label = "qss";
  45. linux,code = <KEY_WPS_BUTTON>;
  46. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  47. debounce-interval = <60>;
  48. };
  49. };
  50. };
  51. &uart {
  52. status = "okay";
  53. };
  54. &spi {
  55. status = "okay";
  56. num-cs = <1>;
  57. flash@0 {
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <25000000>;
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. uboot: partition@0 {
  66. label = "u-boot";
  67. reg = <0x000000 0x020000>;
  68. read-only;
  69. };
  70. partition@20000 {
  71. compatible = "tplink,firmware";
  72. label = "firmware";
  73. reg = <0x020000 0x3d0000>;
  74. };
  75. art: partition@7f0000 {
  76. label = "art";
  77. reg = <0x3f0000 0x010000>;
  78. read-only;
  79. };
  80. };
  81. };
  82. };
  83. &mdio0 {
  84. status = "okay";
  85. switch0@1f {
  86. compatible = "qca,ar8236";
  87. reg = <0x1f>;
  88. };
  89. };
  90. &eth0 {
  91. status = "okay";
  92. phy-mode = "mii";
  93. mtd-mac-address = <&uboot 0x1fc00>;
  94. fixed-link {
  95. speed = <100>;
  96. full-duplex;
  97. };
  98. };
  99. &wmac {
  100. status = "okay";
  101. mtd-cal-data = <&art 0x1000>;
  102. mtd-mac-address = <&uboot 0x1fc00>;
  103. };