ar9331_dpt_module.dts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x4000000>;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. system {
  19. label = "dpt-module:green:system";
  20. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  21. default-state = "off";
  22. };
  23. };
  24. gpio-keys {
  25. compatible = "gpio-keys";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. button@0 {
  29. label = "reset";
  30. linux,code = <KEY_RESTART>;
  31. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  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. };