ramips: fix dtc warnings
[openwrt/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 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 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "config";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 gpio {
96 ralink,group = "i2c", "uartf";
97 ralink,function = "gpio";
98 };
99 };
100 };
101
102 &ethernet {
103 status = "okay";
104 mtd-mac-address = <&factory 0x28>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
107
108 port@5 {
109 status = "okay";
110 mediatek,fixed-link = <1000 1 1 1>;
111 phy-mode = "rgmii";
112 };
113
114 mdio-bus {
115 status = "okay";
116
117 phy0: ethernet-phy@0 {
118 reg = <0>;
119 phy-mode = "rgmii";
120 };
121
122 phy1: ethernet-phy@1 {
123 reg = <1>;
124 phy-mode = "rgmii";
125 };
126
127 phy2: ethernet-phy@2 {
128 reg = <2>;
129 phy-mode = "rgmii";
130 };
131
132 phy3: ethernet-phy@3 {
133 reg = <3>;
134 phy-mode = "rgmii";
135 };
136
137 phy4: ethernet-phy@4 {
138 reg = <4>;
139 phy-mode = "rgmii";
140 };
141
142 phy1f: ethernet-phy@1f {
143 reg = <0x1f>;
144 phy-mode = "rgmii";
145 };
146 };
147 };
148
149 &gsw {
150 mediatek,port4 = "gmac";
151 mediatek,mt7530 = <1>;
152 };
153
154 &wmac {
155 ralink,mtd-eeprom = <&factory 0>;
156 };