Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / MT7628.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         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x2000000>;
12         };
13 };
14
15 &pinctrl {
16         state_default: pinctrl0 {
17                 gpio {
18                         ralink,group = "i2c", "jtag";
19                         ralink,function = "gpio";
20                 };
21         };
22 };
23
24 &wmac {
25         status = "okay";
26 };
27
28 &spi0 {
29         status = "okay";
30
31         m25p80@0 {
32                 #address-cells = <1>;
33                 #size-cells = <1>;
34                 compatible = "jedec,spi-nor";
35                 reg = <0>;
36                 linux,modalias = "m25p80", "en25q64";
37                 spi-max-frequency = <10000000>;
38                 m25p,chunked-io = <32>;
39
40                 partition@0 {
41                         label = "u-boot";
42                         reg = <0x0 0x30000>;
43                         read-only;
44                 };
45
46                 partition@30000 {
47                         label = "u-boot-env";
48                         reg = <0x30000 0x10000>;
49                         read-only;
50                 };
51
52                 factory: partition@40000 {
53                         label = "factory";
54                         reg = <0x40000 0x10000>;
55                         read-only;
56                 };
57
58                 partition@50000 {
59                         label = "firmware";
60                         reg = <0x50000 0x7b0000>;
61                 };
62         };
63 };
64
65 &wmac {
66         status = "okay";
67 };