ath79: drop tl prefix for TP-Link RE450 v2
[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
20 wlan {
21 label = "dragino2:red:wlan";
22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23 default-state = "off";
24 };
25
26 lan {
27 label = "dragino2:red:lan";
28 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29 default-state = "off";
30 };
31
32 wan {
33 label = "dragino2:red:wan";
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 };
37
38 system {
39 label = "dragino2:red:system";
40 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
41 default-state = "off";
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys-polled";
47 poll-interval = <100>;
48
49 button0 {
50 label = "jumpstart";
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
53 };
54
55 button1 {
56 label = "reset";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &ref {
64 clock-frequency = <25000000>;
65 };
66
67 &uart {
68 status = "okay";
69 };
70
71 &gpio {
72 status = "okay";
73 };
74
75 &usb {
76 dr_mode = "host";
77 status = "okay";
78 };
79
80 &usb_phy {
81 status = "okay";
82 };
83
84 &spi {
85 num-chipselects = <1>;
86 status = "okay";
87
88 /* Winbond 25Q128BVFG SPI flash */
89 flash@0 {
90 compatible = "winbond,w25q128", "jedec,spi-nor";
91 spi-max-frequency = <104000000>;
92 reg = <0>;
93 };
94 };