ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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
4 #include <dt-bindings/leds/common.h>
5 // Copyright (c) 2021, 2022 Lech Perczak
6 #include "qca9563_zte_mf286.dtsi"
7
8 / {
9 ubi-concat {
10 compatible = "mtd-concat";
11 devices = <&ubiconcat0 &ubiconcat1>;
12
13 partitions {
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 reg = <0x0 0x7a60000>;
20 label = "ubi";
21 };
22 };
23 };
24 };
25
26 &led_debug {
27 /* Hidden blue SMD LED below signal strength LEDs
28 * Visible through slits underside of the case,
29 * and slightly through the case below signal state LEDs
30 */
31 color = <LED_COLOR_ID_BLUE>;
32 function = LED_FUNCTION_DEBUG;
33 color = <LED_COLOR_ID_BLUE>;
34 };
35
36 &boot_flash {
37 partitions {
38 partition@0 {
39 label = "u-boot";
40 reg = <0x000000 0x0a0000>;
41 read-only;
42 };
43
44 partition@a0000 {
45 label = "u-boot-env";
46 reg = <0x0a0000 0x020000>;
47 read-only;
48 };
49
50 partition@c0000 {
51 label = "reserved1";
52 reg = <0x0c0000 0x140000>;
53 read-only;
54 };
55 };
56 };
57
58 &system_flash {
59 partitions {
60 partition@0 {
61 label = "fota-flag";
62 reg = <0x00000 0xa0000>;
63 read-only;
64 };
65
66 partition@a0000 {
67 label = "art";
68 reg = <0xa0000 0x80000>;
69 read-only;
70
71 nvmem-layout {
72 compatible = "fixed-layout";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 cal_art_1000: cal@1000 {
77 reg = <0x1000 0x440>;
78 };
79
80 precal_art_5000: precal@5000 {
81 reg = <0x5000 0x2f20>;
82 };
83 };
84 };
85
86 partition@120000 {
87 label = "mac";
88 reg = <0x120000 0x80000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_mac_0: mac-address@0 {
97 compatible = "mac-base";
98 reg = <0x0 0x6>;
99 #nvmem-cell-cells = <1>;
100 };
101 };
102 };
103
104 /* This encompasses stock reserved2, cfg-param, log, oops,
105 * reserved3, web partitions,
106 * which can be overwritten safely
107 */
108 ubiconcat0: partition@1a0000 {
109 label = "ubiconcat0";
110 reg = <0x1a0000 0x1660000>;
111 };
112
113 /* Kernel MTD size is increased to 4MB from stock 3MB */
114 partition@1800000 {
115 label = "kernel";
116 reg = <0x1800000 0x400000>;
117 };
118
119 /* This encompasses stock rootfs, data, fota partitions,
120 * which can be overwritten safely
121 */
122 ubiconcat1: partition@1c00000 {
123 label = "ubiconcat1";
124 reg = <0x1c00000 0x6400000>;
125 };
126 };
127 };
128
129 &eth0 {
130 nvmem-cells = <&macaddr_mac_0 0>;
131 nvmem-cell-names = "mac-address";
132 };
133
134 &wifi_ath10k {
135 nvmem-cells = <&macaddr_mac_0 0x20000>, <&precal_art_5000>;
136 nvmem-cell-names = "mac-address", "pre-calibration";
137 };
138
139 &wmac {
140 nvmem-cells = <&macaddr_mac_0 0>, <&cal_art_1000>;
141 nvmem-cell-names = "mac-address", "calibration";
142 };