WT3020.dtsi 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #include "mt7620n.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "nexx,wt3020", "ralink,mt7620n-soc";
  6. aliases {
  7. led-boot = &led_power;
  8. led-failsafe = &led_power;
  9. led-running = &led_power;
  10. led-upgrade = &led_power;
  11. };
  12. gpio-keys-polled {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <20>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_power: power {
  24. label = "wt3020:blue:power";
  25. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  26. };
  27. };
  28. };
  29. &gpio2 {
  30. status = "okay";
  31. };
  32. &gpio3 {
  33. status = "okay";
  34. };
  35. &ethernet {
  36. mtd-mac-address = <&factory 0x4>;
  37. mediatek,portmap = "wllll";
  38. };
  39. &wmac {
  40. ralink,mtd-eeprom = <&factory 0>;
  41. };
  42. &pinctrl {
  43. state_default: pinctrl0 {
  44. default {
  45. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
  46. ralink,function = "gpio";
  47. };
  48. };
  49. };