ALL0256N.dtsi 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #include "rt3050.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "allnet,all0256n", "ralink,rt3050-soc";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. rssilow {
  9. label = "all0256n:green:rssilow";
  10. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  11. };
  12. rssimed {
  13. label = "all0256n:green:rssimed";
  14. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  15. };
  16. rssihigh {
  17. label = "all0256n:green:rssihigh";
  18. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. };
  31. &gpio0 {
  32. status = "okay";
  33. };
  34. &pinctrl {
  35. state_default: pinctrl0 {
  36. gpio {
  37. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  38. ralink,function = "gpio";
  39. };
  40. };
  41. };
  42. &ethernet {
  43. mtd-mac-address = <&factory 0x28>;
  44. };
  45. &esw {
  46. mediatek,portmap = <0x3f>;
  47. };
  48. &wmac {
  49. ralink,mtd-eeprom = <&factory 0>;
  50. };