qca9533_tplink_tl-wr841.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 "qca953x.dtsi"
  6. / {
  7. chosen {
  8. bootargs = "console=ttyS0,115200n8";
  9. };
  10. gpio_leds: leds {
  11. compatible = "gpio-leds";
  12. wifi {
  13. label = "tp-link:green:wlan";
  14. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  15. linux,default-trigger = "phy0tpt";
  16. };
  17. qss_led: qss {
  18. label = "tp-link:green:qss";
  19. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  20. };
  21. wan {
  22. label = "tp-link:green:wan";
  23. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  24. };
  25. lan1 {
  26. label = "tp-link:green:lan1";
  27. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  28. };
  29. lan2 {
  30. label = "tp-link:green:lan2";
  31. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  32. };
  33. lan3 {
  34. label = "tp-link:green:lan3";
  35. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  36. };
  37. lan4 {
  38. label = "tp-link:green:lan4";
  39. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. keys {
  43. compatible = "gpio-keys";
  44. reset {
  45. label = "Reset button";
  46. linux,code = <KEY_RESTART>;
  47. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  48. debounce-interval = <60>;
  49. };
  50. rfkill {
  51. label = "RFKILL button";
  52. linux,code = <KEY_RFKILL>;
  53. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  54. debounce-interval = <60>;
  55. };
  56. };
  57. };
  58. &uart {
  59. status = "okay";
  60. };
  61. &spi {
  62. status = "okay";
  63. num-cs = <1>;
  64. flash@0 {
  65. compatible = "jedec,spi-nor";
  66. reg = <0>;
  67. spi-max-frequency = <25000000>;
  68. partitions {
  69. compatible = "fixed-partitions";
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. uboot: partition@0 {
  73. label = "u-boot";
  74. reg = <0x000000 0x020000>;
  75. read-only;
  76. };
  77. partition@20000 {
  78. compatible = "tplink,firmware";
  79. label = "firmware";
  80. reg = <0x020000 0x3d0000>;
  81. };
  82. art: partition@3f0000 {
  83. label = "art";
  84. reg = <0x3f0000 0x010000>;
  85. read-only;
  86. };
  87. };
  88. };
  89. };
  90. &eth1 {
  91. mtd-mac-address = <&uboot 0x1fc00>;
  92. };
  93. &eth0 {
  94. status = "okay";
  95. phy-handle = <&swphy4>;
  96. mtd-mac-address = <&uboot 0x1fc00>;
  97. mtd-mac-address-increment = <1>;
  98. };
  99. &wmac {
  100. status = "okay";
  101. mtd-cal-data = <&art 0x1000>;
  102. mtd-mac-address = <&uboot 0x1fc00>;
  103. };