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