1
0

TL-WA801NDV5.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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-wa801nd-v5", "mediatek,mt7628an-soc";
  7. model = "TP-Link TL-WA801ND v5";
  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. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. led_power: power {
  26. label = "tl-wa801nd-v5:green:power";
  27. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  28. };
  29. lan {
  30. label = "tl-wa801nd-v5:green:lan";
  31. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  32. };
  33. wlan {
  34. label = "tl-wa801nd-v5:green:wlan";
  35. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  36. };
  37. wps {
  38. label = "tl-wa801nd-v5:orange:wps";
  39. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. };
  43. &pinctrl {
  44. state_default: pinctrl0 {
  45. gpio {
  46. ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
  47. ralink,function = "gpio";
  48. };
  49. };
  50. };