ath79: qca: convert to nvmem-layout
[openwrt/staging/hauke.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 reg = <0x0 0x6>;
95 };
96 };
97 };
98
99 /* This encompasses stock reserved2, cfg-param, log, oops,
100 * reserved3, web partitions,
101 * which can be overwritten safely
102 */
103 ubiconcat0: partition@1a0000 {
104 label = "ubiconcat0";
105 reg = <0x1a0000 0x1660000>;
106 };
107
108 /* Kernel MTD size is increased to 4MB from stock 3MB */
109 partition@1800000 {
110 label = "kernel";
111 reg = <0x1800000 0x400000>;
112 };
113
114 /* This encompasses stock rootfs, data, fota partitions,
115 * which can be overwritten safely
116 */
117 ubiconcat1: partition@1c00000 {
118 label = "ubiconcat1";
119 reg = <0x1c00000 0x6400000>;
120 };
121 };
122 };
123
124 &eth0 {
125 nvmem-cells = <&macaddr_mac_0>;
126 nvmem-cell-names = "mac-address";
127 };
128
129 &wifi_ath10k {
130 nvmem-cells = <&macaddr_mac_0>, <&precal_art_5000>;
131 nvmem-cell-names = "mac-address", "pre-calibration";
132 mac-address-increment = <0x20000>;
133 };
134
135 &wmac {
136 nvmem-cells = <&macaddr_mac_0>, <&cal_art_1000>;
137 nvmem-cell-names = "mac-address", "calibration";
138 };