ar9331_dragino_ms14.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "ar9331.dtsi"
  5. / {
  6. model = "Dragino MS14 (Dragino 2)";
  7. compatible = "dragino,ms14";
  8. aliases {
  9. serial0 = &uart;
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x4000000>;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. wlan {
  18. label = "dragino2:red:wlan";
  19. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  20. default-state = "off";
  21. };
  22. lan {
  23. label = "dragino2:red:lan";
  24. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  25. default-state = "off";
  26. };
  27. wan {
  28. label = "dragino2:red:wan";
  29. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  30. default-state = "off";
  31. };
  32. system {
  33. label = "dragino2:red:system";
  34. gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
  35. default-state = "off";
  36. };
  37. };
  38. gpio-keys-polled {
  39. compatible = "gpio-keys-polled";
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. poll-interval = <100>;
  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. };