ath79: move pcie node to DTSI for qca955x Senao APs
[openwrt/openwrt.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 = <0x73714f4b>;
21 label = "firmware";
22 reg = <0x0 0x0>;
23 };
24 };
25 };
26 };
27
28 &pcie0 {
29 status = "okay";
30
31 wifi@0,0,0 {
32 compatible = "qcom,ath10k";
33 reg = <0x0 0 0 0 0>;
34 };
35 };
36
37 &spi {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <40000000>;
44
45 partitions: partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x000000 0x040000>;
53 read-only;
54 };
55
56 partition@40000 {
57 label = "u-boot-env";
58 reg = <0x040000 0x010000>;
59 };
60
61 partition@50000 {
62 label = "custom";
63 reg = <0x050000 0x050000>;
64 read-only;
65 };
66
67 partition@a0000 {
68 label = "loader";
69 reg = <0x0a0000 0x010000>;
70 };
71
72 fwconcat1: partition@b0000 {
73 label = "fwconcat1";
74 reg = <0x0b0000 0x170000>;
75 };
76
77 fwconcat0: partition@220000 {
78 label = "fwconcat0";
79 reg = <0x220000 0xb50000>;
80 };
81
82 partition@d70000 {
83 label = "failsafe";
84 reg = <0xd70000 0x280000>;
85 read-only;
86 };
87
88 /* additional partitions in device DTS files */
89 };
90 };
91 };