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