9205061e2432bf2205ef1e1803648bba4519487c
[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 compatible = "nvmem-cells";
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 partition@120000 {
66 label = "mac";
67 reg = <0x120000 0x80000>;
68 read-only;
69
70 compatible = "nvmem-cells";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 macaddr_mac_0: macaddr@0 {
75 reg = <0x0 0x6>;
76 };
77 };
78
79 partition@1a0000 {
80 label = "reserved2";
81 reg = <0x1a0000 0xc0000>;
82 read-only;
83 };
84
85 partition@260000 {
86 label = "cfg-param";
87 reg = <0x260000 0x400000>;
88 read-only;
89 };
90
91 partition@660000 {
92 label = "log";
93 reg = <0x660000 0x400000>;
94 read-only;
95 };
96
97 partition@a60000 {
98 label = "oops";
99 reg = <0xa60000 0xa0000>;
100 read-only;
101 };
102
103 partition@b00000 {
104 label = "reserved3";
105 reg = <0xb00000 0x500000>;
106 read-only;
107 };
108
109 partition@1000000 {
110 label = "web";
111 reg = <0x1000000 0x800000>;
112 read-only;
113 };
114
115 partition@1800000 {
116 label = "firmware";
117 reg = <0x1800000 0x1d00000>;
118
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "kernel";
125 reg = <0x0 0x600000>;
126 };
127
128 partition@600000 {
129 label = "ubi";
130 reg = <0x600000 0x1700000>;
131 };
132 };
133
134 partition@3500000 {
135 label = "data";
136 reg = <0x3500000 0x1900000>;
137 read-only;
138 };
139
140 partition@4e00000 {
141 label = "fota";
142 reg = <0x4e00000 0x3200000>;
143 read-only;
144 };
145 };
146 };
147
148 &eth0 {
149 nvmem-cells = <&macaddr_mac_0>;
150 nvmem-cell-names = "mac-address";
151 };
152
153 &wifi_ath10k {
154 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>;
155 nvmem-cell-names = "mac-address", "pre-calibration";
156 mac-address-increment = <1>;
157 };
158
159 &pinmux {
160 enable_wlan_led_gpio: pinmux_wlan_led_gpio {
161 pinctrl-single,bits = <0x10 0x0 0xff000000>;
162 };
163 };
164
165 &wmac {
166 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_1000>;
167 nvmem-cell-names = "mac-address", "calibration";
168 };