ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_jcg_q20.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 = "jcg,q20", "mediatek,mt7621-soc";
11 model = "JCG Q20";
12
13 aliases {
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_blue;
18 label-mac-device = &gmac0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_status_red: status_red {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
32 };
33
34 led_status_blue: status_blue {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55 };
56
57 ubi-concat {
58 compatible = "mtd-concat";
59 devices = <&ubiconcat0 &ubiconcat1>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "ubi";
68 reg = <0x0 0x5900000>;
69 };
70 };
71 };
72 };
73
74 &nand {
75 status = "okay";
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "Bootloader";
84 reg = <0x0 0x80000>;
85 read-only;
86 };
87
88 partition@80000 {
89 label = "Config";
90 reg = <0x80000 0x80000>;
91 };
92
93 partition@100000 {
94 label = "Factory";
95 reg = <0x100000 0x80000>;
96 read-only;
97
98 nvmem-layout {
99 compatible = "fixed-layout";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 eeprom_factory_0: eeprom@0 {
104 reg = <0x0 0xe00>;
105 };
106
107 macaddr_factory_3fff4: macaddr@3fff4 {
108 reg = <0x3fff4 0x6>;
109 };
110
111 macaddr_factory_3fffa: macaddr@3fffa {
112 reg = <0x3fffa 0x6>;
113 };
114 };
115 };
116
117 partition@180000 {
118 label = "kernel";
119 reg = <0x180000 0x400000>;
120 };
121
122 ubiconcat0: partition@580000 {
123 label = "ubiconcat0";
124 reg = <0x580000 0x1c00000>;
125 };
126
127 partition@2180000 {
128 label = "firmware_backup";
129 reg = <0x2180000 0x2000000>;
130 };
131
132 partition@4180000 {
133 label = "rootfs_data_back";
134 reg = <0x4180000 0x80000>;
135 read-only;
136 };
137
138 partition@4200000 {
139 label = "nvram_config";
140 reg = <0x4200000 0x80000>;
141 read-only;
142 };
143
144 ubiconcat1: partition@4280000 {
145 label = "ubiconcat1";
146 reg = <0x4280000 0x3d00000>;
147 };
148
149 /*
150 * last 512 KiB are for the bad block table
151 */
152 };
153 };
154
155 &pcie {
156 status = "okay";
157 };
158
159 &pcie1 {
160 wifi@0,0 {
161 compatible = "mediatek,mt76";
162 reg = <0x0000 0 0 0 0>;
163 nvmem-cells = <&eeprom_factory_0>;
164 nvmem-cell-names = "eeprom";
165 mediatek,disable-radar-background;
166 };
167 };
168
169 &gmac0 {
170 nvmem-cells = <&macaddr_factory_3fff4>;
171 nvmem-cell-names = "mac-address";
172 };
173
174 &gmac1 {
175 status = "okay";
176 label = "wan";
177 phy-handle = <&ethphy0>;
178
179 nvmem-cells = <&macaddr_factory_3fffa>;
180 nvmem-cell-names = "mac-address";
181 };
182
183 &mdio {
184 ethphy0: ethernet-phy@0 {
185 reg = <0>;
186 };
187 };
188
189 &switch0 {
190 ports {
191 port@1 {
192 status = "okay";
193 label = "lan1";
194 };
195
196 port@4 {
197 status = "okay";
198 label = "lan2";
199 };
200 };
201 };
202
203 &state_default {
204 gpio {
205 groups = "jtag", "wdt";
206 function = "gpio";
207 };
208 };