ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_linksys_e7350.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,e7350", "mediatek,mt7621-soc";
11 model = "Linksys E7350";
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 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led-wps {
44 color = <LED_COLOR_ID_AMBER>;
45 function = LED_FUNCTION_WPS;
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 };
48
49 led_power: led-power {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 led-wan {
57 color = <LED_COLOR_ID_AMBER>;
58 function = LED_FUNCTION_WAN;
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &nand {
65 status = "okay";
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "Boot";
74 reg = <0x0 0x80000>;
75 read-only;
76 };
77
78 partition@80000 {
79 label = "Config";
80 reg = <0x80000 0x80000>;
81 };
82
83 partition@100000 {
84 label = "Factory";
85 reg = <0x100000 0x80000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0xe00>;
95 };
96 };
97 };
98
99 partition@180000 {
100 label = "firmware";
101 reg = <0x180000 0x3000000>;
102
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "kernel";
109 reg = <0x0 0x400000>;
110 };
111
112 partition@400000 {
113 label = "ubi";
114 reg = <0x400000 0x2c00000>;
115 };
116 };
117
118 partition@3180000 {
119 label = "alt_firmware";
120 reg = <0x3180000 0x3000000>;
121 read-only;
122 };
123
124 partition@6180000 {
125 label = "cbtinfo";
126 reg = <0x6180000 0x80000>;
127 read-only;
128 };
129 /* seems to be the end here. Can't read past 0x6200000 */
130 };
131 };
132
133 &pcie {
134 status = "okay";
135 };
136
137 &pcie1 {
138 wifi@0,0 {
139 compatible = "mediatek,mt76";
140 reg = <0x0000 0 0 0 0>;
141 nvmem-cells = <&eeprom_factory_0>;
142 nvmem-cell-names = "eeprom";
143 };
144 };
145
146 &state_default {
147 gpio {
148 groups = "i2c", "uart3", "jtag", "wdt";
149 function = "gpio";
150 };
151 };
152
153 &gmac1 {
154 status = "okay";
155 label = "wan";
156 phy-handle = <&ethphy0>;
157 };
158
159 &mdio {
160 ethphy0: ethernet-phy@0 {
161 reg = <0>;
162 };
163 };
164
165 &switch0 {
166 ports {
167 port@1 {
168 status = "okay";
169 label = "lan4";
170 };
171
172 port@2 {
173 status = "okay";
174 label = "lan3";
175 };
176
177 port@3 {
178 status = "okay";
179 label = "lan2";
180 };
181
182 port@4 {
183 status = "okay";
184 label = "lan1";
185 };
186 };
187 };