ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_tplink_re350k-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 model = "TP-Link RE350K v1";
11 compatible = "tplink,re350k-v1", "qca,qca9558";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 mdio-gpio0 = &mdio2;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 app-config {
25 label = "app-config";
26 linux,code = <BTN_0>;
27 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 led {
32 label = "led";
33 linux,code = <BTN_1>;
34 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37
38 reset {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 led_power: power {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 wlan2g_green {
57 label = "green:wlan2g";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy1tpt";
60 };
61
62 wlan2g_red {
63 label = "red:wlan2g";
64 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
65 };
66
67 wlan5g_green {
68 label = "green:wlan5g";
69 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
71 };
72
73 wlan5g_red {
74 label = "red:wlan5g";
75 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
76 };
77 };
78
79 mdio2: mdio {
80 compatible = "virtual,mdio-gpio";
81
82 #address-cells = <1>;
83 #size-cells = <0>;
84
85 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>,
86 <&gpio 18 GPIO_ACTIVE_HIGH>;
87
88 phy4: ethernet-phy@4 {
89 reg = <4>;
90
91 phy-mode = "rgmii-rxid";
92 eee-broken-100tx;
93 eee-broken-1000t;
94 };
95 };
96 };
97
98 &eth0 {
99 status = "okay";
100
101 phy-handle = <&phy4>;
102 pll-data = <0x9e000000 0x80000101 0x80001313>;
103
104 nvmem-cells = <&macaddr_info_8 0>;
105 nvmem-cell-names = "mac-address";
106
107 gmac-config {
108 device = <&gmac>;
109
110 rxdv-delay = <2>;
111 rxd-delay = <2>;
112 txen-delay = <0>;
113 txd-delay = <0>;
114 rgmii-enabled = <1>;
115 };
116 };
117
118 &pcie0 {
119 status = "okay";
120
121 wifi@0,0 {
122 compatible = "qcom,ath10k";
123 reg = <0x0000 0 0 0 0>;
124 nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 2>;
125 nvmem-cell-names = "calibration", "mac-address";
126 };
127 };
128
129 &spi {
130 status = "okay";
131
132 flash@0 {
133 compatible = "jedec,spi-nor";
134 reg = <0>;
135 spi-max-frequency = <25000000>;
136
137 partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 partition@0 {
143 label = "u-boot";
144 reg = <0x000000 0x020000>;
145 read-only;
146 };
147
148 partition@20000 {
149 compatible = "tplink,firmware";
150 label = "firmware";
151 reg = <0x020000 0xd70000>;
152 };
153
154 partition@d90000 {
155 label = "partition-table";
156 reg = <0xd90000 0x010000>;
157 read-only;
158 };
159
160 info: partition@da0000 {
161 label = "info";
162 reg = <0xda0000 0x020000>;
163 read-only;
164
165 nvmem-layout {
166 compatible = "fixed-layout";
167 #address-cells = <1>;
168 #size-cells = <1>;
169
170 macaddr_info_8: macaddr@8 {
171 compatible = "mac-base";
172 reg = <0x8 0x6>;
173 #nvmem-cell-cells = <1>;
174 };
175 };
176 };
177
178 partition@dc0000 {
179 label = "config";
180 reg = <0xdc0000 0x230000>;
181 read-only;
182 };
183
184 art: partition@ff0000 {
185 label = "art";
186 reg = <0xff0000 0x010000>;
187 read-only;
188
189 nvmem-layout {
190 compatible = "fixed-layout";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 cal_art_5000: calibration@5000 {
195 reg = <0x5000 0x844>;
196 };
197 };
198 };
199 };
200 };
201 };
202
203 &wmac {
204 status = "okay";
205
206 mtd-cal-data = <&art 0x1000>;
207 nvmem-cells = <&macaddr_info_8 0>;
208 nvmem-cell-names = "mac-address";
209 };