ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / rt5350_easyacc_wizard-8800.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "easyacc,wizard-8800", "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                 compatible = "jedec,spi-nor";
23                 reg = <0>;
24                 spi-max-frequency = <10000000>;
25
26                 partitions {
27                         compatible = "fixed-partitions";
28                         #address-cells = <1>;
29                         #size-cells = <1>;
30
31                         partition@0 {
32                                 label = "u-boot";
33                                 reg = <0x0 0x30000>;
34                                 read-only;
35                         };
36
37                         partition@30000 {
38                                 label = "u-boot-env";
39                                 reg = <0x30000 0x10000>;
40                                 read-only;
41                         };
42
43                         factory: partition@40000 {
44                                 label = "factory";
45                                 reg = <0x40000 0x10000>;
46                                 read-only;
47                         };
48
49                         partition@50000 {
50                                 compatible = "denx,uimage";
51                                 label = "firmware";
52                                 reg = <0x50000 0x7b0000>;
53                         };
54                 };
55         };
56 };
57
58 &pinctrl {
59         state_default: pinctrl0 {
60                 gpio {
61                         ralink,group = "i2c", "jtag", "uartf";
62                         ralink,function = "gpio";
63                 };
64         };
65 };
66
67 &ethernet {
68         mtd-mac-address = <&factory 0x4>;
69 };
70
71 &esw {
72         mediatek,portmap = <0x2f>;
73 };
74
75 &ehci {
76         status = "okay";
77 };
78
79 &ohci {
80         status = "okay";
81 };
82
83 &wmac {
84         ralink,mtd-eeprom = <&factory 0>;
85 };