1
0

TL-WR840NV4.dts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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-wr840n-v4", "mediatek,mt7628an-soc";
  7. model = "TP-Link TL-WR840N v4";
  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. lan {
  26. label = "tl-wr840n-v4:green:lan";
  27. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  28. };
  29. led_power: power {
  30. label = "tl-wr840n-v4:green:power";
  31. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  32. };
  33. wan {
  34. label = "tl-wr840n-v4:green:wan";
  35. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  36. };
  37. wlan {
  38. label = "tl-wr840n-v4:green:wlan";
  39. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  40. };
  41. wps {
  42. label = "tl-wr840n-v4:green:wps";
  43. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. };
  47. &pinctrl {
  48. state_default: pinctrl0 {
  49. gpio {
  50. ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an";
  51. ralink,function = "gpio";
  52. };
  53. };
  54. };