439cc1af4af943b2d82d9f988748652672d8a2de
[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 label = "blue:debug";
32 color = <LED_COLOR_ID_BLUE>;
33 };
34
35 &boot_flash {
36 partitions {
37 partition@0 {
38 label = "u-boot";
39 reg = <0x0 0x80000>;
40 read-only;
41 };
42
43 partition@80000 {
44 label = "u-boot-env";
45 reg = <0x80000 0x20000>;
46 read-only;
47 };
48 };
49 };
50
51 &system_flash {
52 partitions {
53 partition@0 {
54 label = "fota-flag";
55 reg = <0x000000 0x140000>;
56 read-only;
57 };
58
59 partition@140000 {
60 label = "caldata";
61 reg = <0x140000 0x140000>;
62 read-only;
63
64 nvmem-layout {
65 compatible = "fixed-layout";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 cal_caldata_1000: cal@1000 {
70 reg = <0x1000 0x440>;
71 };
72
73 cal_caldata_5000: cal@5000 {
74 reg = <0x5000 0x844>;
75 };
76 };
77 };
78
79 partition@280000 {
80 label = "mac";
81 reg = <0x280000 0x140000>;
82 read-only;
83
84 nvmem-layout {
85 compatible = "fixed-layout";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 macaddr_mac_0: macaddr@0 {
90 compatible = "mac-base";
91 reg = <0x0 0x6>;
92 #nvmem-cell-cells = <1>;
93 };
94 };
95 };
96
97 /* This encompasses stock cfg-param, oops, web partitions,
98 * which can be overwritten safely
99 */
100 ubiconcat0: partition@3c0000 {
101 label = "ubiconcat0";
102 reg = <0x3c0000 0xf40000>;
103 };
104
105 /* Kernel MTD size is increased to 8MB from stock 3MB */
106 partition@1300000 {
107 label = "kernel";
108 reg = <0x1300000 0x800000>;
109 };
110
111 /* This encompasses stock rootfs, data, fota partitions,
112 * which can be overwritten safely
113 */
114 ubiconcat1: partition@1b00000 {
115 label = "ubiconcat1";
116 reg = <0x1b00000 0x6500000>;
117 };
118 };
119 };
120
121 &eth0 {
122 nvmem-cells = <&macaddr_mac_0 0>;
123 nvmem-cell-names = "mac-address";
124 };
125
126 &wifi_ath10k {
127 nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>;
128 nvmem-cell-names = "mac-address", "calibration";
129 };
130
131 &wmac {
132 nvmem-cells = <&macaddr_mac_0 0>, <&cal_caldata_1000>;
133 nvmem-cell-names = "mac-address", "calibration";
134 };