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