1
0

TL-WR841NV13.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /dts-v1/;
  2. #include "TPLINK-8M.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "tplink,tl-wr841n-v13", "mediatek,mt7628an-soc";
  7. model = "TP-Link TL-WR841N v13";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. rfkill {
  23. label = "rfkill";
  24. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RFKILL>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. led_power: power {
  31. label = "tl-wr841n-v13:green:power";
  32. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  33. };
  34. wps {
  35. label = "tl-wr841n-v13:green:wps";
  36. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  37. };
  38. lan1 {
  39. label = "tl-wr841n-v13:green:lan1";
  40. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  41. };
  42. lan2 {
  43. label = "tl-wr841n-v13:green:lan2";
  44. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  45. };
  46. lan3 {
  47. label = "tl-wr841n-v13:green:lan3";
  48. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  49. };
  50. lan4 {
  51. label = "tl-wr841n-v13:green:lan4";
  52. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  53. };
  54. wan_green {
  55. label = "tl-wr841n-v13:green:wan";
  56. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  57. };
  58. wan_orange {
  59. label = "tl-wr841n-v13:orange:wan";
  60. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  61. };
  62. wlan {
  63. label = "tl-wr841n-v13:green:wlan";
  64. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  65. };
  66. };
  67. };
  68. &pinctrl {
  69. state_default: pinctrl0 {
  70. gpio {
  71. ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an";
  72. ralink,function = "gpio";
  73. };
  74. };
  75. };