ath79: Add generic device tree for Ubiquiti WA boards
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9533_glinet_ar300m_nand.dts
1 /dts-v1/;
2
3 #include "qca9533_glinet_ar300m.dtsi"
4
5 &spi {
6         status = "okay";
7         num-cs = <1>;
8
9         flash@0 {
10                 compatible = "winbond,w25q128", "jedec,spi-nor";
11                 reg = <0>;
12                 spi-max-frequency = <25000000>;
13
14                 partitions {
15                         compatible = "fixed-partitions";
16                         #address-cells = <1>;
17                         #size-cells = <1>;
18
19                         partition@0 {
20                                 label = "u-boot";
21                                 reg = <0x000000 0x040000>;
22                                 read-only;
23                         };
24
25                         partition@1 {
26                                 label = "u-boot-env";
27                                 reg = <0x040000 0x010000>;
28                         };
29
30                         partition@2 {
31                                 label = "reserved";
32                                 reg = <0x050000 0xfa0000>;
33                         };
34
35                         art: partition@3 {
36                                 label = "art";
37                                 reg = <0xff0000 0x010000>;
38                         };
39                 };
40         };
41
42         flash@1 {
43                 compatible = "spinand,mt29f";
44                 reg = <1>;
45                 spi-max-frequency = <25000000>;
46
47                 partitions {
48                         compatible = "fixed-partitions";
49                         #address-cells = <1>;
50                         #size-cells = <1>;
51
52                         partition@0 {
53                                 label = "kernel";
54                                 reg = <0x000000 0x0200000>;
55                         };
56
57                         partition@1 {
58                                 label = "ubi";
59                                 reg = <0x200000 0x7e00000>;
60                         };
61                 };
62         };
63 };