ath79: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_tplink_tl-mr3020-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "TP-Link TL-MR3020 V1";
10 compatible = "tplink,tl-mr3020-v1", "qca,ar9331";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_wps;
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan {
25 label = "green:wlan";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "phy0tpt";
28 };
29
30 lan {
31 label = "green:lan";
32 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 };
34
35 led_wps: wps {
36 label = "green:wps";
37 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
38 };
39
40 led3g {
41 label = "green:3g";
42 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&hub_port>;
44 linux,default-trigger = "usbport";
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys";
50
51 reset {
52 label = "reset";
53 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
55 debounce-interval = <60>;
56 };
57
58 sw1 {
59 label = "sw1";
60 linux,input-type = <EV_SW>;
61 linux,code = <BTN_0>;
62 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
63 debounce-interval = <60>;
64 };
65
66 sw2 {
67 label = "sw2";
68 linux,input-type = <EV_SW>;
69 linux,code = <BTN_1>;
70 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
71 debounce-interval = <60>;
72 };
73 };
74
75 reg_usb_vbus: reg_usb_vbus {
76 compatible = "regulator-fixed";
77 regulator-name = "usb_vbus";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
80 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
81 enable-active-high;
82 };
83 };
84
85 &ref {
86 clock-frequency = <25000000>;
87 };
88
89 &uart {
90 status = "okay";
91 };
92
93 &usb {
94 #address-cells = <1>;
95 #size-cells = <0>;
96 dr_mode = "host";
97 vbus-supply = <&reg_usb_vbus>;
98 status = "okay";
99
100 hub_port: port@1 {
101 reg = <1>;
102 #trigger-source-cells = <0>;
103 };
104 };
105
106 &usb_phy {
107 status = "okay";
108 };
109
110 &spi {
111 status = "okay";
112
113 num-chipselects = <1>;
114
115 /* Spansion S25FL032PIF SPI flash */
116 flash@0 {
117 compatible = "jedec,spi-nor";
118 spi-max-frequency = <50000000>;
119 reg = <0>;
120
121 partitions {
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
124 #size-cells = <1>;
125
126 uboot: partition@0 {
127 label = "u-boot";
128 reg = <0x000000 0x020000>;
129 read-only;
130 };
131
132 partition@20000 {
133 compatible = "tplink,firmware";
134 label = "firmware";
135 reg = <0x020000 0x3c0000>;
136 };
137
138 partition@3e0000 {
139 label = "config";
140 reg = <0x3e0000 0x010000>;
141 read-only;
142 };
143
144 art: partition@3f0000 {
145 label = "art";
146 reg = <0x3f0000 0x010000>;
147 read-only;
148 };
149 };
150 };
151 };
152
153 &eth0 {
154 status = "okay";
155
156 mtd-mac-address = <&uboot 0x1fc00>;
157 gmac-config {
158 device = <&gmac>;
159
160 switch-phy-addr-swap = <0>;
161 switch-phy-swap = <0>;
162 };
163 };
164
165 &eth1 {
166 status = "okay";
167
168 compatible = "syscon", "simple-mfd";
169 };
170
171 &wmac {
172 status = "okay";
173
174 mtd-cal-data = <&art 0x1000>;
175 mtd-mac-address = <&uboot 0x1fc00>;
176 };