ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_zte_mf282.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 // Copyright (c) 2023 Andreas Böhler <dev@aboehler.at>
6
7 #include "qca9563_zte_mf28x.dtsi"
8
9 / {
10 model = "ZTE MF282";
11 compatible = "zte,mf282", "qca,qca9563";
12
13 ubi-concat {
14 compatible = "mtd-concat";
15 devices = <&ubiconcat0 &ubiconcat1>;
16
17 partitions {
18 compatible = "fixed-partitions";
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 partition@0 {
23 reg = <0x0 0x7440000>;
24 label = "ubi";
25 };
26 };
27 };
28 };
29
30 &led_debug {
31 color = <LED_COLOR_ID_BLUE>;
32 };
33
34 &boot_flash {
35 partitions {
36 partition@0 {
37 label = "u-boot";
38 reg = <0x0 0x80000>;
39 read-only;
40 };
41
42 partition@80000 {
43 label = "u-boot-env";
44 reg = <0x80000 0x20000>;
45 read-only;
46 };
47 };
48 };
49
50 &system_flash {
51 partitions {
52 partition@0 {
53 label = "fota-flag";
54 reg = <0x000000 0x140000>;
55 read-only;
56 };
57
58 partition@140000 {
59 label = "caldata";
60 reg = <0x140000 0x140000>;
61 read-only;
62
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 cal_caldata_1000: cal@1000 {
69 reg = <0x1000 0x440>;
70 };
71
72 cal_caldata_5000: cal@5000 {
73 reg = <0x5000 0x844>;
74 };
75 };
76 };
77
78 partition@280000 {
79 label = "mac";
80 reg = <0x280000 0x140000>;
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 macaddr_mac_0: macaddr@0 {
89 compatible = "mac-base";
90 reg = <0x0 0x6>;
91 #nvmem-cell-cells = <1>;
92 };
93 };
94 };
95
96 /* This encompasses stock cfg-param, oops, web partitions,
97 * which can be overwritten safely
98 */
99 ubiconcat0: partition@3c0000 {
100 label = "ubiconcat0";
101 reg = <0x3c0000 0xf40000>;
102 };
103
104 /* Kernel MTD size is increased to 8MB from stock 3MB */
105 partition@1300000 {
106 label = "kernel";
107 reg = <0x1300000 0x800000>;
108 };
109
110 /* This encompasses stock rootfs, data, fota partitions,
111 * which can be overwritten safely
112 */
113 ubiconcat1: partition@1b00000 {
114 label = "ubiconcat1";
115 reg = <0x1b00000 0x6500000>;
116 };
117 };
118 };
119
120 &eth0 {
121 nvmem-cells = <&macaddr_mac_0 0>;
122 nvmem-cell-names = "mac-address";
123 };
124
125 &wifi_ath10k {
126 nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>;
127 nvmem-cell-names = "mac-address", "calibration";
128 };
129
130 &wmac {
131 nvmem-cells = <&macaddr_mac_0 0>, <&cal_caldata_1000>;
132 nvmem-cell-names = "mac-address", "calibration";
133 };