Fresh pull from upstream lede-17.01 branch to fix several outstanding
[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                 spi-max-frequency = <10000000>;
37                 m25p,chunked-io = <32>;
38
39                 partition@0 {
40                         label = "u-boot";
41                         reg = <0x0 0x30000>;
42                         read-only;
43                 };
44
45                 partition@30000 {
46                         label = "u-boot-env";
47                         reg = <0x30000 0x10000>;
48                         read-only;
49                 };
50
51                 factory: partition@40000 {
52                         label = "factory";
53                         reg = <0x40000 0x10000>;
54                         read-only;
55                 };
56
57                 partition@50000 {
58                         label = "firmware";
59                         reg = <0x50000 0x7b0000>;
60                 };
61         };
62 };
63
64 &wmac {
65         status = "okay";
66 };