ramips: add support for XiaoYu XY-C5
[oweals/openwrt.git] / target / linux / ramips / dts / rt3883_loewe_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                 compatible = "jedec,spi-nor";
15                 reg = <0>;
16                 spi-max-frequency = <25000000>;
17
18                 partitions {
19                         compatible = "fixed-partitions";
20                         #address-cells = <1>;
21                         #size-cells = <1>;
22
23                         partition@0 {
24                                 label = "u-boot";
25                                 reg = <0x0 0x30000>;
26                                 read-only;
27                         };
28
29                         partition@30000 {
30                                 label = "u-boot-env";
31                                 reg = <0x30000 0x00010000>;
32                                 read-only;
33                         };
34
35                         factory: partition@40000 {
36                                 label = "factory";
37                                 reg = <0x40000 0x10000>;
38                                 read-only;
39                         };
40
41                         partition@50000 {
42                                 compatible = "denx,uimage";
43                                 label = "firmware";
44                                 reg = <0x50000 0x7b0000>;
45                         };
46                 };
47         };
48 };
49
50 &ethernet {
51         port@0 {
52                 phy-handle = <&phy0>;
53                 phy-mode = "mii";
54         };
55         mdio-bus {
56                 status = "okay";
57
58                 phy0: ethernet-phy@0 {
59                         reg = <0>;
60                         phy-mode = "mii";
61                 };
62         };
63 };
64
65 &wmac {
66         status = "okay";
67         ralink,mtd-eeprom = <&factory 0>;
68         mtd-mac-address = <&factory 0x4>;
69 };