kernel: bump 4.9 to 4.9.65
[oweals/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 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17
18 / {
19         compatible = "linksys,e1700", "ralink,mt7620a-soc";
20         model = "Linksys E1700";
21
22         gpio-keys-polled {
23                 compatible = "gpio-keys-polled";
24                 #address-cells = <1>;
25                 #size-cells = <0>;
26                 poll-interval = <20>;
27
28                 reset {
29                         label = "reset";
30                         gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
31                         linux,code = <KEY_RESTART>;
32                 };
33
34                 wps {
35                         label = "wps";
36                         gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
37                         linux,code = <KEY_WPS_BUTTON>;
38                 };
39         };
40
41         gpio-leds {
42                 compatible = "gpio-leds";
43
44                 power {
45                         label = "e1700:green:power";
46                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
47                 };
48
49                 wan {
50                         label = "e1700:green:wps";
51                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
52                 };
53         };
54 };
55
56 &spi0 {
57         status = "okay";
58
59         m25p80@0 {
60                 #address-cells = <1>;
61                 #size-cells = <1>;
62                 compatible = "jedec,spi-nor";
63                 reg = <0>;
64                 spi-max-frequency = <10000000>;
65
66                 partition@0 {
67                         label = "u-boot";
68                         reg = <0x0 0x30000>;
69                         read-only;
70                 };
71
72                 partition@30000 {
73                         label = "config";
74                         reg = <0x30000 0x10000>;
75                         read-only;
76                 };
77
78                 factory: partition@40000 {
79                         label = "factory";
80                         reg = <0x40000 0x10000>;
81                         read-only;
82                 };
83
84                 partition@50000 {
85                         label = "firmware";
86                         reg = <0x50000 0x7b0000>;
87                 };
88         };
89 };
90
91 &pinctrl {
92         state_default: pinctrl0 {
93                 gpio {
94                         ralink,group = "i2c", "uartf";
95                         ralink,function = "gpio";
96                 };
97         };
98 };
99
100 &ethernet {
101         status = "okay";
102         mtd-mac-address = <&factory 0x28>;
103         pinctrl-names = "default";
104         pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
105
106         port@5 {
107                 status = "okay";
108                 mediatek,fixed-link = <1000 1 1 1>;
109                 phy-mode = "rgmii";
110         };
111
112         mdio-bus {
113                 status = "okay";
114
115                 phy0: ethernet-phy@0 {
116                         reg = <0>;
117                         phy-mode = "rgmii";
118                 };
119
120                 phy1: ethernet-phy@1 {
121                         reg = <1>;
122                         phy-mode = "rgmii";
123                 };
124
125                 phy2: ethernet-phy@2 {
126                         reg = <2>;
127                         phy-mode = "rgmii";
128                 };
129
130                 phy3: ethernet-phy@3 {
131                         reg = <3>;
132                         phy-mode = "rgmii";
133                 };
134
135                 phy4: ethernet-phy@4 {
136                         reg = <4>;
137                         phy-mode = "rgmii";
138                 };
139
140                 phy1f: ethernet-phy@1f {
141                         reg = <0x1f>;
142                         phy-mode = "rgmii";
143                 };
144         };
145 };
146
147 &gsw {
148         mediatek,port4 = "gmac";
149         mediatek,mt7530 = <1>;
150 };
151
152 &wmac {
153         ralink,mtd-eeprom = <&factory 0>;
154 };