ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tplink_er605-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 model = "TP-Link ER605 v2";
11 compatible = "tplink,er605-v2", "mediatek,mt7621-soc";
12
13 chosen {
14 bootargs = "console=ttyS0,115200 noinitrd";
15 // Override bootargs because u-boot passes wrong root parameter.
16 // Instead allow kernel determine root automatically by looking for rootfs volume
17 bootargs-override = "console=ttyS0,115200 noinitrd ubi.mtd=3,2048";
18 };
19
20 aliases {
21 led-boot = &led_system;
22 led-failsafe = &led_system;
23 led-running = &led_system;
24 led-upgrade = &led_system;
25 label-mac-device = &gmac0;
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_usb: usb {
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
34 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
35 };
36
37 led_power: power {
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43
44 led_system: system {
45 color = <LED_COLOR_ID_GREEN>;
46 function = LED_FUNCTION_STATUS;
47 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
48 default-state = "keep";
49 };
50 };
51
52 keys {
53 compatible = "gpio-keys";
54
55 reset {
56 label = "reset button";
57 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
58 linux,code = <KEY_RESTART>;
59 };
60 };
61
62 reg_usb_vbus: regulator-usb {
63 compatible = "regulator-fixed";
64 regulator-name = "usb_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
68 enable-active-high;
69 };
70
71 reg_3p3v: regulator-3p3v {
72 compatible = "regulator-fixed";
73 regulator-name = "fixed-3.3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 regulator-boot-on;
77 regulator-always-on;
78 };
79 };
80
81 &gmac0 {
82 label = "dsa";
83 };
84
85 &gmac1 {
86 status = "okay";
87 label = "eth0";
88 phy-handle = <&ethphy0>;
89 };
90
91
92 &switch0 {
93 ports {
94 port@0 {
95 status = "disabled";
96 };
97
98 port@1 {
99 status = "okay";
100 label = "eth1";
101 };
102
103 port@2 {
104 status = "okay";
105 label = "eth2";
106 };
107
108 port@3 {
109 status = "okay";
110 label = "eth3";
111 };
112
113 port@4 {
114 status = "okay";
115 label = "eth4";
116 };
117 };
118 };
119
120 &nand {
121 status = "okay";
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 label = "u-boot";
130 reg = <0x0 0x80000>;
131 read-only;
132 };
133
134 partition@80000 {
135 label = "u-boot-env";
136 reg = <0x80000 0x80000>;
137 read-only;
138 };
139
140 partition@100000 {
141 label = "factory";
142 reg = <0x100000 0x40000>;
143 read-only;
144 };
145
146 partition@140000 {
147 label = "firmware";
148 reg = <0x140000 0x7cc0000>;
149 };
150
151 partition@7e00000 {
152 label = "panic-ops";
153 reg = <0x7e00000 0x200000>;
154 };
155 };
156 };
157
158
159 &mdio {
160 ethphy0: ethernet-phy@0 {
161 reg = <0>;
162 };
163 };
164
165 &state_default {
166 gpio {
167 groups = "uart2", "uart3", "pcie", "jtag";
168 function = "gpio";
169 };
170 };
171
172 &spi0 {
173 status = "disabled";
174 };
175
176 &xhci {
177 vusb33-supply = <&reg_3p3v>;
178 vbus-supply = <&reg_usb_vbus>;
179 };
180