ar9331_omega.dts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "ar9331.dtsi"
  5. / {
  6. model = "Onion Omega";
  7. compatible = "onion,omega";
  8. aliases {
  9. serial0 = &uart;
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x4000000>;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. system {
  18. label = "onion:amber:system";
  19. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  20. default-state = "off";
  21. };
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <100>;
  28. button@0 {
  29. label = "reset";
  30. linux,code = <KEY_RESTART>;
  31. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  32. };
  33. };
  34. };
  35. &ref {
  36. clock-frequency = <25000000>;
  37. };
  38. &uart {
  39. status = "okay";
  40. };
  41. &gpio {
  42. status = "okay";
  43. };
  44. &usb {
  45. dr_mode = "host";
  46. status = "okay";
  47. };
  48. &usb_phy {
  49. status = "okay";
  50. };
  51. &spi {
  52. num-chipselects = <1>;
  53. status = "okay";
  54. /* Winbond 25Q128FVSG SPI flash */
  55. spiflash: w25q128@0 {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. compatible = "winbond,w25q128", "jedec,spi-nor";
  59. spi-max-frequency = <104000000>;
  60. reg = <0>;
  61. };
  62. };