ath79: create common DTSI for Senao qca955x APs
[openwrt/staging/jow.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 = <IH_MAGIC_OKLI>;
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 read-only;
62 };
63
64 fwconcat1: partition@b0000 {
65 label = "fwconcat1";
66 reg = <0x0b0000 0x170000>;
67 };
68
69 partition@220000 {
70 label = "fakeroot";
71 reg = <0x220000 0x010000>;
72 read-only;
73 };
74
75 fwconcat0: partition@230000 {
76 label = "fwconcat0";
77 reg = <0x230000 0xb40000>;
78 };
79
80 partition@d70000 {
81 label = "failsafe";
82 reg = <0xd70000 0x280000>;
83 read-only;
84 };
85
86 /* additional partitions in device DTS files */
87 };
88 };
89 };