ath79: adjust ath79/tiny Senao APs to 4k blocksize
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar724x_senao_loader-4k.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 &spi {
27 status = "okay";
28
29 flash@0 {
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <20000000>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x40000>;
42 read-only;
43 };
44
45 partition@40000 {
46 label = "u-boot-env";
47 reg = <0x40000 0x10000>;
48 };
49
50 partition@50000 {
51 label = "custom";
52 reg = <0x50000 0x50000>;
53 read-only;
54 };
55
56 partition@a0000 {
57 label = "loader";
58 reg = <0xa0000 0x1000>;
59 read-only;
60 };
61
62 fwconcat1: partition@a1000 {
63 label = "fwconcat1";
64 reg = <0xa1000 0xff000>;
65 };
66
67 fwconcat0: partition@1a0000 {
68 label = "fwconcat0";
69 reg = <0x1a0000 0x4d0000>;
70 };
71
72 partition@670000 {
73 label = "failsafe";
74 reg = <0x670000 0x180000>;
75 read-only;
76 };
77
78 art: partition@7f0000 {
79 label = "art";
80 reg = <0x7f0000 0x10000>;
81 read-only;
82 };
83 };
84 };
85 };