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