ath79: fix pinmux for ar933x devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_dragino_ms14.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 model = "Dragino MS14 (Dragino 2)";
11 compatible = "dragino,ms14", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19 pinctrl-names = "default";
20 pinctrl-0 = <&switch_led_disable_pins>;
21
22 wlan {
23 label = "dragino2:red:wlan";
24 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
25 };
26
27 lan {
28 label = "dragino2:red:lan";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 };
31
32 wan {
33 label = "dragino2:red:wan";
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
35 };
36
37 system {
38 label = "dragino2:red:system";
39 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys-polled";
45 poll-interval = <100>;
46
47 button0 {
48 label = "jumpstart";
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
51 };
52
53 button1 {
54 label = "reset";
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &ref {
62 clock-frequency = <25000000>;
63 };
64
65 &uart {
66 status = "okay";
67 };
68
69 &gpio {
70 status = "okay";
71 };
72
73 &usb {
74 dr_mode = "host";
75 status = "okay";
76 };
77
78 &usb_phy {
79 status = "okay";
80 };
81
82 &spi {
83 num-chipselects = <1>;
84 status = "okay";
85
86 /* Winbond 25Q128BVFG SPI flash */
87 flash@0 {
88 compatible = "winbond,w25q128", "jedec,spi-nor";
89 spi-max-frequency = <104000000>;
90 reg = <0>;
91 };
92 };