ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_kuwfi_c910.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 compatible = "kuwfi,c910", "qca,qca9533";
12 model = "KuWFi C910";
13
14 aliases {
15 label-mac-device = &eth1;
16 led-boot = &internet_red;
17 led-failsafe = &internet_red;
18 led-upgrade = &internet_red;
19 };
20
21 virtual_flash {
22 compatible = "mtd-concat";
23 devices = <&fwconcat0 &fwconcat1>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 reg = <0x0 0x0>;
32 label = "firmware";
33 compatible = "openwrt,uimage", "denx,uimage";
34 openwrt,ih-magic = <IH_MAGIC_OKLI>;
35 };
36 };
37 };
38
39 keys {
40 compatible = "gpio-keys";
41
42 reset {
43 label = "reset";
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
47 };
48 };
49
50 leds {
51 compatible = "gpio-leds";
52
53 internet_blue {
54 label = "blue:internet";
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 };
57
58 wifi {
59 label = "white:wifi";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
62 };
63
64 internet_green {
65 label = "green:internet";
66 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
67 };
68
69 wan {
70 function = LED_FUNCTION_WAN;
71 color = <LED_COLOR_ID_WHITE>;
72 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
73 };
74
75 lan2 {
76 label = "white:lan2";
77 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
78 };
79
80 // gpio 12 enables or disables LTE (Quectel EC200T)
81
82 internet_red: internet_red {
83 label = "red:internet";
84 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
85 };
86
87 lan1 {
88 label = "white:lan1";
89 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
90 };
91 };
92 };
93
94 &spi {
95 status = "okay";
96
97 flash@0 {
98 compatible = "winbond,w25q128", "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <25000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x000000 0x020000>;
110 read-only;
111 };
112
113 partition@20000 {
114 label = "u-boot-env";
115 reg = <0x020000 0x010000>;
116 read-only;
117 };
118
119 partition@30000 {
120 label = "config";
121 reg = <0x030000 0x020000>;
122 read-only;
123 };
124
125 fwconcat0: partition@50000 {
126 label = "fwconcat0";
127 reg = <0x050000 0xe30000>;
128 };
129
130 partition@e80000 {
131 label = "loader";
132 reg = <0xe80000 0x10000>;
133 };
134
135 fwconcat1: partition@e90000 {
136 label = "fwconcat1";
137 reg = <0xe90000 0x160000>;
138 };
139
140 partition@ff0000 {
141 label = "art";
142 reg = <0xff0000 0x010000>;
143 read-only;
144
145 nvmem-layout {
146 compatible = "fixed-layout";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 calibration_art_1000: macaddr@1000 {
151 reg = <0x1000 0x440>;
152 };
153
154 macaddr_art_1002: macaddr@1002 {
155 compatible = "mac-base";
156 reg = <0x1002 0x6>;
157 #nvmem-cell-cells = <1>;
158 };
159 };
160 };
161 };
162 };
163 };
164
165 &usb0 {
166 status = "okay";
167 };
168
169 &usb_phy {
170 status = "okay";
171 };
172
173 &eth0 {
174 status = "okay";
175
176 phy-handle = <&swphy0>;
177
178 nvmem-cells = <&macaddr_art_1002 1>;
179 nvmem-cell-names = "mac-address";
180 };
181
182 &eth1 {
183 phy-handle = <&swphy4>;
184
185 nvmem-cells = <&macaddr_art_1002 0>;
186 nvmem-cell-names = "mac-address";
187
188 gmac-config {
189 device = <&gmac>;
190 switch-phy-swap = <1>;
191 };
192 };
193
194 &wmac {
195 status = "okay";
196
197 nvmem-cells = <&calibration_art_1000>;
198 nvmem-cell-names = "calibration";
199 };