9e78f83a7695c74cf326b386023e351f7c54d3ba
[librecmc/librecmc.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m-nand.dts
1 /dts-v1/;
2
3 #include "qca9531_glinet_gl-ar300m.dtsi"
4
5 / {
6         compatible = "glinet,gl-ar300m-nand", "qca,qca9531";
7         model = "GL.iNet GL-AR300M (NAND)";
8 };
9
10 &spi {
11         status = "okay";
12         num-cs = <1>;
13
14         flash@0 {
15                 compatible = "winbond,w25q128", "jedec,spi-nor";
16                 reg = <0>;
17                 spi-max-frequency = <25000000>;
18
19                 partitions {
20                         compatible = "fixed-partitions";
21                         #address-cells = <1>;
22                         #size-cells = <1>;
23
24                         partition@0 {
25                                 label = "u-boot";
26                                 reg = <0x000000 0x040000>;
27                                 read-only;
28                         };
29
30                         partition@1 {
31                                 label = "u-boot-env";
32                                 reg = <0x040000 0x010000>;
33                         };
34
35                         partition@2 {
36                                 label = "reserved";
37                                 reg = <0x050000 0xfa0000>;
38                         };
39
40                         art: partition@3 {
41                                 label = "art";
42                                 reg = <0xff0000 0x010000>;
43                         };
44                 };
45         };
46
47         flash@1 {
48                 compatible = "spinand,mt29f";
49                 reg = <1>;
50                 spi-max-frequency = <25000000>;
51
52                 partitions {
53                         compatible = "fixed-partitions";
54                         #address-cells = <1>;
55                         #size-cells = <1>;
56
57                         partition@0 {
58                                 label = "kernel";
59                                 reg = <0x000000 0x0200000>;
60                         };
61
62                         partition@1 {
63                                 label = "ubi";
64                                 reg = <0x200000 0x7e00000>;
65                         };
66                 };
67         };
68 };