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