TL-MR3420V5.dts 1.6 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-mr3420-v5", "mediatek,mt7628an-soc";
  7. model = "TP-Link TL-MR3420 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. rfkill {
  23. label = "rfkill";
  24. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RFKILL>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. lan {
  31. label = "tl-mr3420-v5:green:lan";
  32. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  33. };
  34. led_power: power {
  35. label = "tl-mr3420-v5:green:power";
  36. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  37. };
  38. usb {
  39. label = "tl-mr3420-v5:green:usb";
  40. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  41. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  42. linux,default-trigger = "usbport";
  43. };
  44. wan {
  45. label = "tl-mr3420-v5:green:wan";
  46. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  47. };
  48. wan_amber {
  49. label = "tl-mr3420-v5:amber:wan";
  50. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  51. };
  52. wlan {
  53. label = "tl-mr3420-v5:green:wlan";
  54. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  55. };
  56. wps {
  57. label = "tl-mr3420-v5:green:wps";
  58. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  59. };
  60. };
  61. };
  62. &ehci {
  63. status = "okay";
  64. };
  65. &ohci {
  66. status = "okay";
  67. };
  68. &pinctrl {
  69. state_default: pinctrl0 {
  70. gpio {
  71. ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";
  72. ralink,function = "gpio";
  73. };
  74. };
  75. };