ath79: qca: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_zte_mf286ar.dtsi
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 #include "qca9563_zte_mf286.dtsi"
5
6 / {
7 ubi-concat {
8 compatible = "mtd-concat";
9 devices = <&ubiconcat0 &ubiconcat1>;
10
11 partitions {
12 compatible = "fixed-partitions";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 partition@0 {
17 reg = <0x0 0x7a60000>;
18 label = "ubi";
19 };
20 };
21 };
22 };
23
24 &led_debug {
25 /* Hidden blue SMD LED below signal strength LEDs
26 * Visible through slits underside of the case,
27 * and slightly through the case below signal state LEDs
28 */
29 color = <LED_COLOR_ID_BLUE>;
30 label = "blue:debug";
31 };
32
33 &boot_flash {
34 partitions {
35 partition@0 {
36 label = "u-boot";
37 reg = <0x000000 0x0a0000>;
38 read-only;
39 };
40
41 partition@a0000 {
42 label = "u-boot-env";
43 reg = <0x0a0000 0x020000>;
44 read-only;
45 };
46
47 partition@c0000 {
48 label = "reserved1";
49 reg = <0x0c0000 0x140000>;
50 read-only;
51 };
52 };
53 };
54
55 &system_flash {
56 partitions {
57 partition@0 {
58 label = "fota-flag";
59 reg = <0x00000 0xa0000>;
60 read-only;
61 };
62
63 partition@a0000 {
64 label = "art";
65 reg = <0xa0000 0x80000>;
66 read-only;
67
68 nvmem-layout {
69 compatible = "fixed-layout";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 cal_art_1000: cal@1000 {
74 reg = <0x1000 0x440>;
75 };
76
77 precal_art_5000: precal@5000 {
78 reg = <0x5000 0x2f20>;
79 };
80 };
81 };
82
83 partition@120000 {
84 label = "mac";
85 reg = <0x120000 0x80000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_mac_0: mac-address@0 {
94 compatible = "mac-base";
95 reg = <0x0 0x6>;
96 #nvmem-cell-cells = <1>;
97 };
98 };
99 };
100
101 /* This encompasses stock reserved2, cfg-param, log, oops,
102 * reserved3, web partitions,
103 * which can be overwritten safely
104 */
105 ubiconcat0: partition@1a0000 {
106 label = "ubiconcat0";
107 reg = <0x1a0000 0x1660000>;
108 };
109
110 /* Kernel MTD size is increased to 4MB from stock 3MB */
111 partition@1800000 {
112 label = "kernel";
113 reg = <0x1800000 0x400000>;
114 };
115
116 /* This encompasses stock rootfs, data, fota partitions,
117 * which can be overwritten safely
118 */
119 ubiconcat1: partition@1c00000 {
120 label = "ubiconcat1";
121 reg = <0x1c00000 0x6400000>;
122 };
123 };
124 };
125
126 &eth0 {
127 nvmem-cells = <&macaddr_mac_0 0>;
128 nvmem-cell-names = "mac-address";
129 };
130
131 &wifi_ath10k {
132 nvmem-cells = <&macaddr_mac_0 0x20000>, <&precal_art_5000>;
133 nvmem-cell-names = "mac-address", "pre-calibration";
134 };
135
136 &wmac {
137 nvmem-cells = <&macaddr_mac_0 0>, <&cal_art_1000>;
138 nvmem-cell-names = "mac-address", "calibration";
139 };