ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3662_loewe_wmdr-143n.dts
1 #include "rt3883.dtsi"
2
3 / {
4 compatible = "loewe,wmdr-143n", "ralink,rt3662-soc", "ralink,rt3883-soc";
5 model = "Loewe WMDR-143N";
6 };
7
8 &spi0 {
9 status = "okay";
10
11 flash@0 {
12 compatible = "jedec,spi-nor";
13 reg = <0>;
14 spi-max-frequency = <25000000>;
15
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x00010000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 compatible = "nvmem-cells";
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 read-only;
40
41 eeprom_factory_0: eeprom@0 {
42 reg = <0x0 0x200>;
43 };
44 };
45
46 partition@50000 {
47 compatible = "denx,uimage";
48 label = "firmware";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52 };
53 };
54
55 &ethernet {
56 port@0 {
57 phy-handle = <&phy0>;
58 phy-mode = "mii";
59 };
60 mdio-bus {
61 status = "okay";
62
63 phy0: ethernet-phy@0 {
64 reg = <0>;
65 phy-mode = "mii";
66 };
67 };
68 };
69
70 &wmac {
71 status = "okay";
72 nvmem-cells = <&eeprom_factory_0>;
73 nvmem-cell-names = "eeprom";
74 };