Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / WIZARD8800.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "WIZARD8800", "ralink,rt5350-soc";
7         model = "EASYACC WI-STOR WIZARD 8800";
8 };
9
10 &gpio0 {
11         status = "okay";
12 };
13
14 &gpio1 {
15         status = "okay";
16 };
17
18 &spi0 {
19         status = "okay";
20
21         m25p80@0 {
22                 #address-cells = <1>;
23                 #size-cells = <1>;
24                 compatible = "jedec,spi-nor";
25                 reg = <0>;
26                 linux,modalias = "m25p80", "w25q32";
27                 spi-max-frequency = <10000000>;
28
29                 partition@0 {
30                         label = "u-boot";
31                         reg = <0x0 0x30000>;
32                         read-only;
33                 };
34
35                 partition@30000 {
36                         label = "u-boot-env";
37                         reg = <0x30000 0x10000>;
38                         read-only;
39                 };
40
41                 factory: partition@40000 {
42                         label = "factory";
43                         reg = <0x40000 0x10000>;
44                         read-only;
45                 };
46
47                 partition@50000 {
48                         label = "firmware";
49                         reg = <0x50000 0x7b0000>;
50                 };
51         };
52 };
53
54 &pinctrl {
55         state_default: pinctrl0 {
56                 gpio {
57                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
58                         ralink,function = "gpio";
59                 };
60         };
61 };
62
63 &ethernet {
64         mtd-mac-address = <&factory 0x4>;
65 };
66
67 &esw {
68         mediatek,portmap = <0x2f>;
69 };
70
71 &ehci {
72         status = "okay";
73 };
74
75 &ohci {
76         status = "okay";
77 };
78
79 &wmac {
80         ralink,mtd-eeprom = <&factory 0>;
81 };