WT1520.dtsi 739 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #include "rt5350.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "NEXXWT1520", "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. #address-cells = <1>;
  13. #size-cells = <0>;
  14. poll-interval = <20>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. };
  21. };
  22. &pinctrl {
  23. state_default: pinctrl0 {
  24. gpio {
  25. ralink,group = "jtag", "uartf";
  26. ralink,function = "gpio";
  27. };
  28. };
  29. };
  30. &ethernet {
  31. mtd-mac-address = <&factory 0x4>;
  32. };
  33. &wmac {
  34. ralink,mtd-eeprom = <&factory 0>;
  35. };
  36. &ehci {
  37. status = "okay";
  38. };
  39. &ohci {
  40. status = "okay";
  41. };