ath79: add Senao 'failsafe' sysupgrade procedure
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca955x_senao_loader.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/mtd/partitions/uimage.h>
6
7 / {
8 virtual_flash {
9 compatible = "mtd-concat";
10
11 devices = <&fwconcat0 &fwconcat1>;
12
13 partitions {
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 compatible = "openwrt,uimage", "denx,uimage";
20 openwrt,ih-magic = <0x73714f4b>;
21 label = "firmware";
22 reg = <0x0 0x0>;
23 };
24 };
25 };
26 };
27
28 &spi {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <40000000>;
35
36 partitions: partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x000000 0x040000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "u-boot-env";
49 reg = <0x040000 0x010000>;
50 };
51
52 partition@50000 {
53 label = "custom";
54 reg = <0x050000 0x050000>;
55 read-only;
56 };
57
58 partition@a0000 {
59 label = "loader";
60 reg = <0x0a0000 0x010000>;
61 };
62
63 fwconcat1: partition@b0000 {
64 label = "fwconcat1";
65 reg = <0x0b0000 0x170000>;
66 };
67
68 fwconcat0: partition@220000 {
69 label = "fwconcat0";
70 reg = <0x220000 0xb50000>;
71 };
72
73 partition@d70000 {
74 label = "failsafe";
75 reg = <0xd70000 0x280000>;
76 read-only;
77 };
78
79 /* additional partitions in device DTS files */
80 };
81 };
82 };