ath79: add support for Fortinet FAP-221-B
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar934x_fortinet_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 &spi {
27 status = "okay";
28
29 flash@0 {
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <40000000>;
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 = <0x000000 0x040000>;
42 read-only;
43 };
44
45 fwconcat0: partition@40000 {
46 label = "fwconcat0";
47 reg = <0x040000 0x900000>;
48 };
49
50 partition@940000 {
51 label = "loader";
52 reg = <0x940000 0x010000>;
53 };
54
55 fwconcat1: partition@950000 {
56 label = "fwconcat1";
57 reg = <0x950000 0x1a0000>;
58 };
59
60 fwconcat2: partition@af0000 {
61 label = "reserved";
62 reg = <0xaf0000 0x500000>;
63 };
64
65 art: partition@ff0000 {
66 label = "art";
67 reg = <0xff0000 0x010000>;
68 read-only;
69 };
70 };
71 };
72 };