WT1520.dtsi 695 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include "rt5350.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "nexx,wt1520", "ralink,rt5350-soc";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x2000000>;
  9. };
  10. gpio-keys-polled {
  11. compatible = "gpio-keys-polled";
  12. poll-interval = <20>;
  13. reset {
  14. label = "reset";
  15. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  16. linux,code = <KEY_RESTART>;
  17. };
  18. };
  19. };
  20. &pinctrl {
  21. state_default: pinctrl0 {
  22. gpio {
  23. ralink,group = "jtag", "uartf";
  24. ralink,function = "gpio";
  25. };
  26. };
  27. };
  28. &ethernet {
  29. mtd-mac-address = <&factory 0x4>;
  30. };
  31. &wmac {
  32. ralink,mtd-eeprom = <&factory 0>;
  33. };
  34. &ehci {
  35. status = "okay";
  36. };
  37. &ohci {
  38. status = "okay";
  39. };