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