ramips: add support for Loewe WMDR-143N
[oweals/openwrt.git] / target / linux / ramips / dts / WMDR-143N.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 / {
6         compatible = "loewe,wmdr-143n", "ralink,rt3883-soc";
7         model = "Loewe WMDR-143N";
8 };
9
10 &spi0 {
11         status = "okay";
12
13         m25p80@0 {
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16                 compatible = "jedec,spi-nor";
17                 reg = <0>;
18                 spi-max-frequency = <25000000>;
19
20                 partition@0 {
21                         label = "u-boot";
22                         reg = <0x0 0x30000>;
23                         read-only;
24                 };
25
26                 partition@30000 {
27                         label = "u-boot-env";
28                         reg = <0x30000 0x00010000>;
29                         read-only;
30                 };
31
32                 factory: partition@40000 {
33                         label = "factory";
34                         reg = <0x40000 0x10000>;
35                         read-only;
36                 };
37
38                 partition@50000 {
39                         label = "firmware";
40                         reg = <0x50000 0x7b0000>;
41                 };
42         };
43 };
44
45 &ethernet {
46         port@0 {
47                 phy-handle = <&phy0>;
48                 phy-mode = "mii";
49         };
50         mdio-bus {
51                 status = "okay";
52
53                 phy0: ethernet-phy@0 {
54                         reg = <0>;
55                         phy-mode = "mii";
56                 };
57         };
58 };
59
60 &wmac {
61         status = "okay";
62         ralink,mtd-eeprom = <&factory 0>;
63         mtd-mac-address = <&factory 0x4>;
64 };