Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / E1700.dts
1 /*
2  * Device Tree file for the Linksys E1700
3  *
4  * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10
11 /dts-v1/;
12
13 /include/ "mt7620a.dtsi"
14
15 / {
16         compatible = "linksys,e1700", "ralink,mt7620a-soc";
17         model = "Linksys E1700";
18
19         palmbus@10000000 {
20                 spi@b00 {
21                         status = "okay";
22
23                         m25p80@0 {
24                                 #address-cells = <1>;
25                                 #size-cells = <1>;
26                                 compatible = "mx25l6405d";
27                                 reg = <0 0>;
28                                 linux,modalias = "m25p80", "mx25l6405d";
29                                 spi-max-frequency = <10000000>;
30
31                                 partition@0 {
32                                         label = "u-boot";
33                                         reg = <0x0 0x30000>;
34                                         read-only;
35                                 };
36
37                                 partition@30000 {
38                                         label = "config";
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                                         label = "firmware";
51                                         reg = <0x50000 0x7b0000>;
52                                 };
53                         };
54                 };
55         };
56
57         pinctrl {
58                 state_default: pinctrl0 {
59                         gpio {
60                                 ralink,group = "i2c", "uartf";
61                                 ralink,function = "gpio";
62                         };
63                 };
64         };
65
66         ethernet@10100000 {
67                 status = "okay";
68
69                 mtd-mac-address = <&factory 0x28>;
70
71                 pinctrl-names = "default";
72                 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
73
74                 port@5 {
75                         status = "okay";
76                         ralink,fixed-link = <1000 1 1 1>;
77                         phy-mode = "rgmii";
78                 };
79
80                 mdio-bus {
81                         status = "okay";
82
83                         phy0: ethernet-phy@0 {
84                                 reg = <0>;
85                                 phy-mode = "rgmii";
86                         };
87                         phy1: ethernet-phy@1 {
88                                 reg = <1>;
89                                 phy-mode = "rgmii";
90                         };
91                         phy2: ethernet-phy@2 {
92                                 reg = <2>;
93                                 phy-mode = "rgmii";
94                         };
95                         phy3: ethernet-phy@3 {
96                                 reg = <3>;
97                                 phy-mode = "rgmii";
98                         };
99                         phy4: ethernet-phy@4 {
100                                 reg = <4>;
101                                 phy-mode = "rgmii";
102                         };
103                         phy1f: ethernet-phy@1f {
104                                 reg = <0x1f>;
105                                 phy-mode = "rgmii";
106                         };
107                 };
108         };
109
110         gsw@10110000 {
111                 ralink,port4 = "gmac";
112                 mediatek,mt7530 = <1>;
113         };
114
115         wmac@10180000 {
116                 ralink,mtd-eeprom = <&factory 0>;
117         };
118
119         gpio-keys-polled {
120                 compatible = "gpio-keys-polled";
121                 #address-cells = <1>;
122                 #size-cells = <0>;
123                 poll-interval = <20>;
124                 reset {
125                         label = "reset";
126                         gpios = <&gpio0 1 0>;
127                         linux,code = <0x198>;
128                 };
129                 wps {
130                         label = "wps";
131                         gpios = <&gpio0 2 0>;
132                         linux,code = <0x211>;
133                 };
134         };
135
136         gpio-leds {
137                 compatible = "gpio-leds";
138                 power {
139                         label = "linksys:green:power";
140                         gpios = <&gpio0 10 1>;
141                 };
142                 wan {
143                         label = "linksys:green:wps";
144                         gpios = <&gpio0 12 1>;
145                 };
146         };
147 };