c95b50107436fe0fd2f41cd9ad69aa0172a051d5
[openwrt/staging/chunkeey.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 };
113
114 wmac@10180000 {
115 ralink,mtd-eeprom = <&factory 0>;
116 };
117
118 gpio-keys-polled {
119 compatible = "gpio-keys-polled";
120 #address-cells = <1>;
121 #size-cells = <0>;
122 poll-interval = <20>;
123 reset {
124 label = "reset";
125 gpios = <&gpio0 1 0>;
126 linux,code = <0x198>;
127 };
128 wps {
129 label = "wps";
130 gpios = <&gpio0 2 0>;
131 linux,code = <0x211>;
132 };
133 };
134
135 gpio-leds {
136 compatible = "gpio-leds";
137 power {
138 label = "linksys:green:power";
139 gpios = <&gpio0 10 1>;
140 };
141 wan {
142 label = "linksys:green:wps";
143 gpios = <&gpio0 12 1>;
144 };
145 };
146 };