ar9331_dpt_module.dts 1.1 KB

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