ar9331_dptechnics_dpt-module.dts 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9331.dtsi"
  6. / {
  7. model = "DPTechnics DPT-Module";
  8. compatible = "dptechnics,dpt-module", "qca,ar9331";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. leds {
  13. compatible = "gpio-leds";
  14. system {
  15. label = "dpt-module:green:system";
  16. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  17. };
  18. };
  19. keys {
  20. compatible = "gpio-keys-polled";
  21. poll-interval = <100>;
  22. button0 {
  23. label = "reset";
  24. linux,code = <KEY_RESTART>;
  25. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  26. };
  27. };
  28. };
  29. &ref {
  30. clock-frequency = <25000000>;
  31. };
  32. &uart {
  33. status = "okay";
  34. };
  35. &gpio {
  36. status = "okay";
  37. };
  38. &usb {
  39. dr_mode = "host";
  40. status = "okay";
  41. };
  42. &usb_phy {
  43. status = "okay";
  44. };
  45. &spi {
  46. num-chipselects = <1>;
  47. status = "okay";
  48. /* Winbond 25Q128FVSG SPI flash */
  49. flash@0 {
  50. compatible = "winbond,w25q128", "jedec,spi-nor";
  51. spi-max-frequency = <104000000>;
  52. reg = <0>;
  53. };
  54. };