ar9331_dpt_module.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. default-state = "off";
  18. };
  19. };
  20. keys {
  21. compatible = "gpio-keys-polled";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. poll-interval = <100>;
  25. button@0 {
  26. label = "reset";
  27. linux,code = <KEY_RESTART>;
  28. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. };
  32. &ref {
  33. clock-frequency = <25000000>;
  34. };
  35. &uart {
  36. status = "okay";
  37. };
  38. &gpio {
  39. status = "okay";
  40. };
  41. &usb {
  42. dr_mode = "host";
  43. status = "okay";
  44. };
  45. &usb_phy {
  46. status = "okay";
  47. };
  48. &spi {
  49. num-chipselects = <1>;
  50. status = "okay";
  51. /* Winbond 25Q128FVSG SPI flash */
  52. spiflash: w25q128@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "winbond,w25q128", "jedec,spi-nor";
  56. spi-max-frequency = <104000000>;
  57. reg = <0>;
  58. };
  59. };