ramips: dts: use generic node name for flash
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_mediatek_mt7628an-eval-board.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 / {
6         compatible = "mediatek,mt7628an-eval-board", "mediatek,mt7628an-soc";
7         model = "Mediatek MT7628AN evaluation board";
8 };
9
10 &state_default {
11         gpio {
12                 groups = "i2c";
13                 function = "gpio";
14         };
15 };
16
17 &wmac {
18         status = "okay";
19 };
20
21 &spi0 {
22         status = "okay";
23
24         flash@0 {
25                 compatible = "jedec,spi-nor";
26                 reg = <0>;
27                 spi-max-frequency = <10000000>;
28
29                 partitions {
30                         compatible = "fixed-partitions";
31                         #address-cells = <1>;
32                         #size-cells = <1>;
33
34                         partition@0 {
35                                 label = "u-boot";
36                                 reg = <0x0 0x30000>;
37                                 read-only;
38                         };
39
40                         partition@30000 {
41                                 label = "u-boot-env";
42                                 reg = <0x30000 0x10000>;
43                                 read-only;
44                         };
45
46                         factory: partition@40000 {
47                                 label = "factory";
48                                 reg = <0x40000 0x10000>;
49                                 read-only;
50                         };
51
52                         partition@50000 {
53                                 compatible = "denx,uimage";
54                                 label = "firmware";
55                                 reg = <0x50000 0x7b0000>;
56                         };
57                 };
58         };
59 };
60
61 &wmac {
62         status = "okay";
63 };