ath79: fix node names
[openwrt/staging/wigyori.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 #address-cells = <1>;
48 #size-cells = <0>;
49 poll-interval = <100>;
50
51 button@0 {
52 label = "jumpstart";
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
55 };
56
57 button@1 {
58 label = "reset";
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
61 };
62 };
63 };
64
65 &ref {
66 clock-frequency = <25000000>;
67 };
68
69 &uart {
70 status = "okay";
71 };
72
73 &gpio {
74 status = "okay";
75 };
76
77 &usb {
78 dr_mode = "host";
79 status = "okay";
80 };
81
82 &usb_phy {
83 status = "okay";
84 };
85
86 &spi {
87 num-chipselects = <1>;
88 status = "okay";
89
90 /* Winbond 25Q128BVFG SPI flash */
91 flash@0 {
92 #address-cells = <1>;
93 #size-cells = <1>;
94 compatible = "winbond,w25q128", "jedec,spi-nor";
95 spi-max-frequency = <104000000>;
96 reg = <0>;
97 };
98 };