qca9563_tplink_tl-wr1043n.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 "qca956x.dtsi"
  6. / {
  7. chosen {
  8. bootargs = "console=ttyS0,115200n8";
  9. };
  10. aliases {
  11. led-boot = &system;
  12. led-failsafe = &system;
  13. led-running = &system;
  14. led-upgrade = &system;
  15. };
  16. gpio_leds: leds {
  17. compatible = "gpio-leds";
  18. system: system {
  19. label = "tp-link:green:system";
  20. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  21. linux,default-trigger = "heartbeat";
  22. };
  23. wifi_green {
  24. label = "tp-link:green:wlan";
  25. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  26. linux,default-trigger = "phy0tpt";
  27. };
  28. wifi_wps {
  29. label = "tp-link:green:wps";
  30. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  31. };
  32. wan {
  33. label = "tp-link:green:wan";
  34. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  35. };
  36. wan_fail {
  37. label = "tp-link:orange:wan";
  38. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  39. };
  40. lan1 {
  41. label = "tp-link:green:lan1";
  42. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  43. };
  44. lan2 {
  45. label = "tp-link:green:lan2";
  46. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  47. };
  48. lan3 {
  49. label = "tp-link:green:lan3";
  50. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  51. };
  52. lan4 {
  53. label = "tp-link:green:lan4";
  54. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  55. };
  56. };
  57. keys {
  58. compatible = "gpio-keys";
  59. reset {
  60. label = "Reset button";
  61. linux,code = <KEY_RESTART>;
  62. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  63. debounce-interval = <60>;
  64. };
  65. wifi {
  66. label = "RFKILL button";
  67. linux,code = <KEY_RFKILL>;
  68. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  69. debounce-interval = <60>;
  70. };
  71. };
  72. };
  73. &uart {
  74. status = "okay";
  75. };
  76. &gpio {
  77. status = "okay";
  78. };
  79. &mdio0 {
  80. status = "okay";
  81. phy-mask = <0>;
  82. phy0: ethernet-phy@0 {
  83. reg = <0>;
  84. phy-mode = "sgmii";
  85. qca,mib-poll-interval = <500>;
  86. qca,ar8327-initvals = <
  87. 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
  88. 0x7c 0x0000007e /* PORT0_STATUS */
  89. >;
  90. };
  91. };
  92. &eth0 {
  93. status = "okay";
  94. mtd-mac-address = <&info 0x8>;
  95. phy-mode = "sgmii";
  96. phy-handle = <&phy0>;
  97. };
  98. &wmac {
  99. status = "okay";
  100. mtd-cal-data = <&art 0x1000>;
  101. mtd-mac-address = <&info 0x8>;
  102. };