ath79: fix 5GHz on QCA9886 variant of ZTE MF286
[openwrt/openwrt.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 // Copyright (c) 2021, 2022 Lech Perczak
4 #include "qca9563_zte_mf286.dtsi"
5
6 / {
7 model = "ZTE MF286";
8 compatible = "zte,mf286", "qca,qca9563";
9
10 ubi-concat {
11 compatible = "mtd-concat";
12 devices = <&ubiconcat0 &ubiconcat1>;
13
14 partitions {
15 compatible = "fixed-partitions";
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 partition@0 {
20 reg = <0x0 0x7840000>;
21 label = "ubi";
22 };
23 };
24 };
25 };
26
27 &led_debug {
28 /* Hidden green SMD LED below signal strength LEDs
29 * Visible through slits underside of the case,
30 * and slightly through the case below signal state LEDs
31 */
32 color = <LED_COLOR_ID_GREEN>;
33 label = "green:debug";
34 };
35
36 &boot_flash {
37 partitions {
38 partition@0 {
39 label = "u-boot";
40 reg = <0x000000 0x080000>;
41 read-only;
42 };
43
44 partition@80000 {
45 label = "u-boot-env";
46 reg = <0x080000 0x020000>;
47 read-only;
48 };
49 };
50 };
51
52 &system_flash {
53 partitions {
54 partition@0 {
55 label = "fota-flag";
56 reg = <0x000000 0x140000>;
57 read-only;
58 };
59
60 partition@140000 {
61 label = "caldata";
62 reg = <0x140000 0x140000>;
63 read-only;
64
65 compatible = "nvmem-cells";
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 partition@280000 {
79 label = "mac";
80 reg = <0x280000 0x140000>;
81 read-only;
82
83 compatible = "nvmem-cells";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 macaddr_mac_0: macaddr@0 {
88 reg = <0x0 0x6>;
89 };
90 };
91
92 /* This encompasses stock cfg-param, oops, web partitions,
93 * which can be overwritten safely
94 */
95 ubiconcat0: partition@3c0000 {
96 label = "ubiconcat0";
97 reg = <0x3c0000 0xf40000>;
98 };
99
100 /* Kernel MTD size is increased to 4MB from stock 3MB */
101 partition@1300000 {
102 label = "kernel";
103 reg = <0x1300000 0x400000>;
104 };
105
106 /* This encompasses stock rootfs, data, fota partitions,
107 * which can be overwritten safely
108 */
109 ubiconcat1: partition@1600000 {
110 label = "ubiconcat1";
111 reg = <0x1700000 0x6900000>;
112 };
113 };
114 };
115
116 &eth0 {
117 nvmem-cells = <&macaddr_mac_0>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &wifi_ath10k {
122 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>, <&cal_caldata_5000>;
123 nvmem-cell-names = "mac-address", "calibration", "pre-calibration";
124 mac-address-increment = <1>;
125 };
126
127 &wmac {
128 nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_1000>;
129 nvmem-cell-names = "mac-address", "calibration";
130 };