ar9331_dragino_ms14.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 = "Dragino MS14 (Dragino 2)";
  8. compatible = "dragino,ms14";
  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. wlan {
  19. label = "dragino2:red:wlan";
  20. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  21. default-state = "off";
  22. };
  23. lan {
  24. label = "dragino2:red:lan";
  25. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  26. default-state = "off";
  27. };
  28. wan {
  29. label = "dragino2:red:wan";
  30. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  31. default-state = "off";
  32. };
  33. system {
  34. label = "dragino2:red:system";
  35. gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
  36. default-state = "off";
  37. };
  38. };
  39. gpio-keys {
  40. compatible = "gpio-keys";
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. button@0 {
  44. label = "jumpstart";
  45. linux,code = <KEY_WPS_BUTTON>;
  46. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  47. };
  48. button@1 {
  49. label = "reset";
  50. linux,code = <KEY_RESTART>;
  51. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. };
  55. &ref {
  56. clock-frequency = <25000000>;
  57. };
  58. &uart {
  59. status = "okay";
  60. };
  61. &gpio {
  62. status = "okay";
  63. };
  64. &usb {
  65. dr_mode = "host";
  66. status = "okay";
  67. };
  68. &usb_phy {
  69. status = "okay";
  70. };
  71. &spi {
  72. num-chipselects = <1>;
  73. status = "okay";
  74. /* Winbond 25Q128BVFG SPI flash */
  75. spiflash: w25q128@0 {
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. compatible = "winbond,w25q128", "jedec,spi-nor";
  79. spi-max-frequency = <104000000>;
  80. reg = <0>;
  81. };
  82. };