ath79: Really fix 5GHz on QCA9886 variant of ZTE MF286
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr941-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9132.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "tplink,tl-wr941-v2", "qca,ar9132";
11 model = "TP-Link TL-WR941N/ND v2/v3";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 qss {
32 label = "qss";
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_system: system {
43 label = "green:system";
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 };
46
47 qss_r {
48 label = "red:qss";
49 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
50 };
51
52 qss_g {
53 label = "green:qss";
54 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
55 };
56
57 wlan {
58 function = LED_FUNCTION_WLAN;
59 color = <LED_COLOR_ID_GREEN>;
60 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
62 };
63 };
64 };
65
66 &mdio0 {
67 status = "okay";
68
69 switch@0 {
70 compatible = "marvell,mv88e6060";
71 reg = <0>;
72
73 ports {
74 #address-cells = <1>;
75 #size-cells = <0>;
76
77 port@0 {
78 reg = <0>;
79 label = "wan";
80 };
81
82 port@1 {
83 reg = <1>;
84 label = "lan1";
85 };
86
87 port@2 {
88 reg = <2>;
89 label = "lan2";
90 };
91
92 port@3 {
93 reg = <3>;
94 label = "lan3";
95 };
96
97 port@4 {
98 reg = <4>;
99 label = "lan4";
100 };
101
102 port@5 {
103 reg = <5>;
104 ethernet = <&eth0>;
105 };
106 };
107 };
108 };
109
110 &spi {
111 status = "okay";
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 reg = <0>;
116 spi-max-frequency = <25000000>;
117
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 uboot: partition@0 {
124 label = "u-boot";
125 reg = <0x000000 0x20000>;
126 read-only;
127
128 nvmem-layout {
129 compatible = "fixed-layout";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 macaddr_uboot_1fc00: macaddr@1fc00 {
134 reg = <0x1fc00 0x6>;
135 };
136 };
137 };
138
139 partition@20000 {
140 compatible = "tplink,firmware";
141 label = "firmware";
142 reg = <0x020000 0x3d0000>;
143 };
144
145 partition@3f0000 {
146 label = "art";
147 reg = <0x3f0000 0x10000>;
148 read-only;
149
150 nvmem-layout {
151 compatible = "fixed-layout";
152 #address-cells = <1>;
153 #size-cells = <1>;
154
155 cal_art_1000: calibration@1000 {
156 reg = <0x1000 0x440>;
157 };
158 };
159 };
160 };
161 };
162 };
163
164 &eth0 {
165 status = "okay";
166
167 phy-mode = "rmii";
168 nvmem-cells = <&macaddr_uboot_1fc00>;
169 nvmem-cell-names = "mac-address";
170
171 fixed-link {
172 speed = <100>;
173 full-duplex;
174 };
175 };
176
177 &wmac {
178 status = "okay";
179
180 nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>;
181 nvmem-cell-names = "mac-address", "calibration";
182 };