c1b8048f0cf22adcafe415e9dab56a64289b57b5
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7621_linksys_e5600.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "linksys,e5600", "mediatek,mt7621-soc";
10 model = "Linksys E5600";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 wps {
43 label = "amber:wps";
44 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
45 };
46
47 led_power: power {
48 label = "blue:power";
49 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
50 default-state = "on";
51 };
52
53 wan_amber {
54 label = "amber:wan";
55 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
56 };
57
58 wan_blue {
59 label = "blue:wan";
60 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
61 };
62 };
63 };
64
65 &nand {
66 status = "okay";
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "boot";
75 reg = <0x0 0x80000>;
76 read-only;
77 };
78
79 partition@80000 {
80 label = "u_env";
81 reg = <0x80000 0x40000>;
82 read-only;
83 };
84
85 factory: partition@c0000 {
86 compatible = "nvmem-cells";
87 label = "factory";
88 reg = <0xc0000 0x40000>;
89 #address-cells = <1>;
90 #size-cells = <1>;
91 read-only;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0x400>;
95 };
96
97 eeprom_factory_8000: eeprom@8000 {
98 reg = <0x8000 0x4da8>;
99 };
100 };
101
102 partition@100000 {
103 label = "s_env";
104 reg = <0x100000 0x40000>;
105 };
106
107 partition@140000 {
108 label = "devinfo";
109 reg = <0x140000 0x40000>;
110 read-only;
111 };
112
113 partition@180000 {
114 label = "kernel";
115 reg = <0x180000 0x400000>;
116 };
117
118 partition@580000 {
119 label = "ubi";
120 reg = <0x580000 0x1a00000>;
121 };
122
123 partition@1f80000 {
124 label = "alt_firmware";
125 reg = <0x1f80000 0x1e00000>;
126 };
127
128 partition@3d80000 {
129 label = "gdata";
130 reg = <0x3d80000 0x4200000>;
131 };
132 };
133 };
134
135 &state_default {
136 gpio {
137 groups = "uart2", "uart3", "jtag";
138 function = "gpio";
139 };
140 };
141
142 &pcie {
143 status = "okay";
144 };
145
146 &pcie0 {
147 mt76@0,0 {
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";
152 };
153 };
154
155 &pcie1 {
156 mt76@0,0 {
157 compatible = "mediatek,mt76";
158 reg = <0x0000 0 0 0 0>;
159 nvmem-cells = <&eeprom_factory_8000>;
160 nvmem-cell-names = "eeprom";
161 };
162 };
163
164 &gmac1 {
165 status = "okay";
166 label = "wan";
167 phy-handle = <&ethphy4>;
168 };
169
170 &mdio {
171 ethphy4: ethernet-phy@4 {
172 reg = <4>;
173 };
174 };
175
176 &switch0 {
177 ports {
178 port@0 {
179 status = "okay";
180 label = "lan1";
181 };
182
183 port@1 {
184 status = "okay";
185 label = "lan2";
186 };
187
188 port@2 {
189 status = "okay";
190 label = "lan3";
191 };
192
193 port@3 {
194 status = "okay";
195 label = "lan4";
196 };
197 };
198 };
199
200 &xhci {
201 status = "disabled";
202 };