1
0

M4.dtsi 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include "rt5350.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "poray,m4", "ralink,rt5350-soc";
  6. aliases {
  7. led-boot = &led_status;
  8. led-failsafe = &led_status;
  9. led-running = &led_status;
  10. led-upgrade = &led_status;
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. led_status: status {
  15. label = "m4:blue:status";
  16. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  17. };
  18. };
  19. gpio-keys-polled {
  20. compatible = "gpio-keys-polled";
  21. poll-interval = <20>;
  22. reset {
  23. label = "reset";
  24. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RESTART>;
  26. };
  27. };
  28. };
  29. &pinctrl {
  30. state_default: pinctrl0 {
  31. gpio {
  32. ralink,group = "i2c", "jtag", "uartf";
  33. ralink,function = "gpio";
  34. };
  35. };
  36. };
  37. &ethernet {
  38. mtd-mac-address = <&factory 0x4>;
  39. };
  40. &esw {
  41. mediatek,portmap = <0x2f>;
  42. mediatek,led_polarity = <1>;
  43. };
  44. &wmac {
  45. ralink,mtd-eeprom = <&factory 0>;
  46. ralink,led-polarity = <1>;
  47. };
  48. &ehci {
  49. status = "okay";
  50. };
  51. &ohci {
  52. status = "okay";
  53. };