ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_zte_mf281.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2021 Cezary Jackiewicz
3 // Copyright (c) 2021, 2022 Lech Perczak
4 // Copyright (c) 2022 David Bauer <mail@david-bauer.net>
5
6 #include "qca9563_zte_mf28x.dtsi"
7
8 / {
9 model = "ZTE MF281";
10 compatible = "zte,mf281", "qca,qca9563";
11
12 leds {
13 pinctrl-names = "default";
14 pinctrl-0 = <&enable_wlan_led_gpio>;
15 };
16 };
17
18 &led_debug {
19 color = <LED_COLOR_ID_GREEN>;
20 };
21
22 &boot_flash {
23 partitions {
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0xa0000>;
27 read-only;
28 };
29
30 partition@80000 {
31 label = "u-boot-env";
32 reg = <0xa0000 0x20000>;
33 read-only;
34 };
35 };
36 };
37
38 &system_flash {
39 partitions {
40 partition@0 {
41 label = "fota-flag";
42 reg = <0x000000 0xa0000>;
43 read-only;
44 };
45
46 partition@a0000 {
47 label = "art";
48 reg = <0xa0000 0x80000>;
49 read-only;
50
51 nvmem-layout {
52 compatible = "fixed-layout";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 cal_caldata_1000: cal@1000 {
57 reg = <0x1000 0x440>;
58 };
59
60 cal_caldata_5000: cal@5000 {
61 reg = <0x5000 0x2f20>;
62 };
63 };
64 };
65
66 partition@120000 {
67 label = "mac";
68 reg = <0x120000 0x80000>;
69 read-only;
70
71 nvmem-layout {
72 compatible = "fixed-layout";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 macaddr_mac_0: macaddr@0 {
77 compatible = "mac-base";
78 reg = <0x0 0x6>;
79 #nvmem-cell-cells = <1>;
80 };
81 };
82 };
83
84 partition@1a0000 {
85 label = "reserved2";
86 reg = <0x1a0000 0xc0000>;
87 read-only;
88 };
89
90 partition@260000 {
91 label = "cfg-param";
92 reg = <0x260000 0x400000>;
93 read-only;
94 };
95
96 partition@660000 {
97 label = "log";
98 reg = <0x660000 0x400000>;
99 read-only;
100 };
101
102 partition@a60000 {
103 label = "oops";
104 reg = <0xa60000 0xa0000>;
105 read-only;
106 };
107
108 partition@b00000 {
109 label = "reserved3";
110 reg = <0xb00000 0x500000>;
111 read-only;
112 };
113
114 partition@1000000 {
115 label = "web";
116 reg = <0x1000000 0x800000>;
117 read-only;
118 };
119
120 partition@1800000 {
121 label = "firmware";
122 reg = <0x1800000 0x1d00000>;
123
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 label = "kernel";
130 reg = <0x0 0x600000>;
131 };
132
133 partition@600000 {
134 label = "ubi";
135 reg = <0x600000 0x1700000>;
136 };
137 };
138
139 partition@3500000 {
140 label = "data";
141 reg = <0x3500000 0x1900000>;
142 read-only;
143 };
144
145 partition@4e00000 {
146 label = "fota";
147 reg = <0x4e00000 0x3200000>;
148 read-only;
149 };
150 };
151 };
152
153 &eth0 {
154 nvmem-cells = <&macaddr_mac_0 0>;
155 nvmem-cell-names = "mac-address";
156 };
157
158 &wifi_ath10k {
159 nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>;
160 nvmem-cell-names = "mac-address", "pre-calibration";
161 };
162
163 &pinmux {
164 enable_wlan_led_gpio: pinmux_wlan_led_gpio {
165 pinctrl-single,bits = <0x10 0x0 0xff000000>;
166 };
167 };
168
169 &wmac {
170 nvmem-cells = <&macaddr_mac_0 0>, <&cal_caldata_1000>;
171 nvmem-cell-names = "mac-address", "calibration";
172 };