ath79: create common DTSI for Senao ar934x APs
[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 = <IH_MAGIC_OKLI>;
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 read-only;
64 };
65
66 fwconcat1: partition@b0000 {
67 label = "fwconcat1";
68 reg = <0x0b0000 0x170000>;
69 };
70
71 partition@220000 {
72 label = "fakeroot";
73 reg = <0x220000 0x010000>;
74 read-only;
75 };
76
77 fwconcat0: partition@230000 {
78 label = "fwconcat0";
79 reg = <0x230000 0xbc0000>;
80 };
81
82 partition@df0000 {
83 label = "failsafe";
84 reg = <0xdf0000 0x200000>;
85 read-only;
86 };
87
88 art: partition@ff0000 {
89 label = "art";
90 reg = <0xff0000 0x010000>;
91 read-only;
92 };
93 };
94 };
95 };