1
0

AWM002-EVB.dtsi 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #include "rt5350.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. tx {
  9. label = "awm002-evb:green:tx";
  10. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  11. };
  12. rx {
  13. label = "awm002-evb:green:rx";
  14. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  15. };
  16. wps {
  17. label = "awm002-evb:green:wps";
  18. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset_wps {
  25. label = "reset_wps";
  26. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. mode {
  30. label = "mode";
  31. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  32. linux,code = <BTN_0>;
  33. };
  34. };
  35. };
  36. &ethernet {
  37. mtd-mac-address = <&factory 0x28>;
  38. };
  39. &wmac {
  40. ralink,mtd-eeprom = <&factory 0>;
  41. };
  42. &pinctrl {
  43. state_default: pinctrl0 {
  44. gpio {
  45. ralink,group = "i2c", "jtag";
  46. ralink,function = "gpio";
  47. };
  48. };
  49. };
  50. &esw {
  51. mediatek,portmap = <0x3f>;
  52. };
  53. &ehci {
  54. status = "okay";
  55. };
  56. &ohci {
  57. status = "okay";
  58. };