ramips: move partitions into partition table node
[openwrt/staging/wigyori.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";
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 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <10000000>;
35 m25p,chunked-io = <32>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x30000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "u-boot-env";
50 reg = <0x30000 0x10000>;
51 read-only;
52 };
53
54 factory: partition@40000 {
55 label = "factory";
56 reg = <0x40000 0x10000>;
57 read-only;
58 };
59
60 partition@50000 {
61 label = "firmware";
62 reg = <0x50000 0x7b0000>;
63 };
64 };
65 };
66 };
67
68 &wmac {
69 status = "okay";
70 };