ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_zte_mf286.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2021 Cezary Jackiewicz
3
4 #include <dt-bindings/leds/common.h>
5 // Copyright (c) 2021, 2022 Lech Perczak
6 #include "qca9563_zte_mf286.dtsi"
7
8 / {
9 model = "ZTE MF286";
10 compatible = "zte,mf286", "qca,qca9563";
11
12 ubi-concat {
13 compatible = "mtd-concat";
14 devices = <&ubiconcat0 &ubiconcat1>;
15
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 reg = <0x0 0x7840000>;
23 label = "ubi";
24 };
25 };
26 };
27 };
28
29 &led_debug {
30 /* Hidden green SMD LED below signal strength LEDs
31 * Visible through slits underside of the case,
32 * and slightly through the case below signal state LEDs
33 */
34 color = <LED_COLOR_ID_GREEN>;
35 function = LED_FUNCTION_DEBUG;
36 color = <LED_COLOR_ID_GREEN>;
37 };
38
39 &boot_flash {
40 partitions {
41 partition@0 {
42 label = "u-boot";
43 reg = <0x000000 0x080000>;
44 read-only;
45 };
46
47 partition@80000 {
48 label = "u-boot-env";
49 reg = <0x080000 0x020000>;
50 read-only;
51 };
52 };
53 };
54
55 &system_flash {
56 partitions {
57 partition@0 {
58 label = "fota-flag";
59 reg = <0x000000 0x140000>;
60 read-only;
61 };
62
63 partition@140000 {
64 label = "caldata";
65 reg = <0x140000 0x140000>;
66 read-only;
67
68 nvmem-layout {
69 compatible = "fixed-layout";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 cal_caldata_1000: cal@1000 {
74 reg = <0x1000 0x440>;
75 };
76
77 cal_caldata_5000: cal@5000 {
78 reg = <0x5000 0x844>;
79 };
80 };
81 };
82
83 partition@280000 {
84 label = "mac";
85 reg = <0x280000 0x140000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_mac_0: macaddr@0 {
94 compatible = "mac-base";
95 reg = <0x0 0x6>;
96 #nvmem-cell-cells = <1>;
97 };
98 };
99 };
100
101 /* This encompasses stock cfg-param, oops, web partitions,
102 * which can be overwritten safely
103 */
104 ubiconcat0: partition@3c0000 {
105 label = "ubiconcat0";
106 reg = <0x3c0000 0xf40000>;
107 };
108
109 /* Kernel MTD size is increased to 4MB from stock 3MB */
110 partition@1300000 {
111 label = "kernel";
112 reg = <0x1300000 0x400000>;
113 };
114
115 /* This encompasses stock rootfs, data, fota partitions,
116 * which can be overwritten safely
117 */
118 ubiconcat1: partition@1600000 {
119 label = "ubiconcat1";
120 reg = <0x1700000 0x6900000>;
121 };
122 };
123 };
124
125 &eth0 {
126 nvmem-cells = <&macaddr_mac_0 0>;
127 nvmem-cell-names = "mac-address";
128 };
129
130 &wifi_ath10k {
131 nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>, <&cal_caldata_5000>;
132 nvmem-cell-names = "mac-address", "calibration", "pre-calibration";
133 };
134
135 &wmac {
136 nvmem-cells = <&macaddr_mac_0 0>, <&cal_caldata_1000>;
137 nvmem-cell-names = "mac-address", "calibration";
138 };