a4e54975db596801b8190c02e994fcb99581d394
[openwrt/staging/hauke.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 label = "green:debug";
20 color = <LED_COLOR_ID_GREEN>;
21 };
22
23 &boot_flash {
24 partitions {
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0xa0000>;
28 read-only;
29 };
30
31 partition@80000 {
32 label = "u-boot-env";
33 reg = <0xa0000 0x20000>;
34 read-only;
35 };
36 };
37 };
38
39 &system_flash {
40 partitions {
41 partition@0 {
42 label = "fota-flag";
43 reg = <0x000000 0xa0000>;
44 read-only;
45 };
46
47 partition@a0000 {
48 label = "art";
49 reg = <0xa0000 0x80000>;
50 read-only;
51
52 nvmem-layout {
53 compatible = "fixed-layout";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 cal_caldata_1000: cal@1000 {
58 reg = <0x1000 0x440>;
59 };
60
61 cal_caldata_5000: cal@5000 {
62 reg = <0x5000 0x2f20>;
63 };
64 };
65 };
66
67 partition@120000 {
68 label = "mac";
69 reg = <0x120000 0x80000>;
70 read-only;
71
72 nvmem-layout {
73 compatible = "fixed-layout";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 macaddr_mac_0: macaddr@0 {
78 reg = <0x0 0x6>;
79 };
80 };
81 };
82
83 partition@1a0000 {
84 label = "reserved2";
85 reg = <0x1a0000 0xc0000>;
86 read-only;
87 };
88
89 partition@260000 {
90 label = "cfg-param";
91 reg = <0x260000 0x400000>;
92 read-only;
93 };
94
95 partition@660000 {
96 label = "log";
97 reg = <0x660000 0x400000>;
98 read-only;
99 };
100
101 partition@a60000 {
102 label = "oops";
103 reg = <0xa60000 0xa0000>;
104 read-only;
105 };
106
107 partition@b00000 {
108 label = "reserved3";
109 reg = <0xb00000 0x500000>;
110 read-only;
111 };
112
113 partition@1000000 {
114 label = "web";
115 reg = <0x1000000 0x800000>;
116 read-only;
117 };
118
119 partition@1800000 {
120 label = "firmware";
121 reg = <0x1800000 0x1d00000>;
122
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 partition@0 {
128 label = "kernel";
129 reg = <0x0 0x600000>;
130 };
131
132 partition@600000 {
133 label = "ubi";
134 reg = <0x600000 0x1700000>;
135 };
136 };
137
138 partition@3500000 {
139 label = "data";
140 reg = <0x3500000 0x1900000>;
141 read-only;
142 };
143
144 partition@4e00000 {
145 label = "fota";
146 reg = <0x4e00000 0x3200000>;
147 read-only;
148 };
149 };
150 };
151
152 &eth0 {
153 nvmem-cells = <&macaddr_mac_0>;
154 nvmem-cell-names = "mac-address";
155 };
156
157 &wifi_ath10k {
158 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>;
159 nvmem-cell-names = "mac-address", "pre-calibration";
160 mac-address-increment = <1>;
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>, <&cal_caldata_1000>;
171 nvmem-cell-names = "mac-address", "calibration";
172 };