ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rt-ax54.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 = "asus,rt-ax54", "mediatek,mt7621-soc";
11 model = "ASUS RT-AX54";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 bootargs-override = "console=ttyS0,115200";
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led_power: power {
30 color = <LED_COLOR_ID_BLUE>;
31 function = LED_FUNCTION_POWER;
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
33 };
34
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 key-restart {
41 label = "reset";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45
46 key-wps {
47 label = "wps";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 };
51 };
52 };
53
54 &nand {
55 status = "okay";
56
57 mediatek,nmbm;
58 mediatek,bmt-max-ratio = <1>;
59 mediatek,bmt-max-reserved-blocks = <64>;
60 mediatek,bmt-remap-range = <0x000000 0x7e0000>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x80000>;
70 read-only;
71 };
72
73 /*
74 * u-boot gets split here while keeping u-boot read-only,
75 * which allows safe usage of fw_setenv
76 */
77 partition@80000 {
78 label = "u-boot-env";
79 reg = <0x80000 0x60000>;
80 };
81
82 partition@e0000 {
83 label = "nvram";
84 reg = <0xe0000 0x100000>;
85 read-only;
86 };
87
88 partition@1e0000 {
89 label = "factory";
90 reg = <0x1e0000 0x100000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 eeprom_factory_0: eeprom@0 {
99 reg = <0x0 0xe00>;
100 };
101
102 macaddr_factory_4: macaddr@4 {
103 reg = <0x4 0x6>;
104 };
105
106 precal_factory_e10: precal@e10 {
107 reg = <0xe10 0x19c10>;
108 };
109 };
110 };
111
112 partition@2e0000 {
113 label = "factory2";
114 reg = <0x2e0000 0x100000>;
115 read-only;
116 };
117
118 partition@3e0000 {
119 label = "kernel";
120 reg = <0x3e0000 0x400000>;
121 };
122
123 partition@7e0000 {
124 label = "ubi";
125 reg = <0x7e0000 0x7020000>;
126 };
127
128 /* Last 8M are reserved for NMBM management (bad blocks) */
129 };
130 };
131
132 &pcie {
133 status = "okay";
134 };
135
136 &pcie1 {
137 wifi@0,0 {
138 compatible = "mediatek,mt76";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
141 nvmem-cell-names = "eeprom", "precal";
142 mediatek,disable-radar-background;
143 };
144 };
145
146 &gmac0 {
147 nvmem-cells = <&macaddr_factory_4>;
148 nvmem-cell-names = "mac-address";
149 };
150
151 &gmac1 {
152 status = "okay";
153 label = "wan";
154 phy-handle = <&ethphy4>;
155
156 nvmem-cells = <&macaddr_factory_4>;
157 nvmem-cell-names = "mac-address";
158 };
159
160 &mdio {
161 ethphy4: ethernet-phy@4 {
162 reg = <4>;
163 };
164 };
165
166 &switch0 {
167 ports {
168 port@0 {
169 status = "okay";
170 label = "lan4";
171 };
172
173 port@1 {
174 status = "okay";
175 label = "lan3";
176 };
177
178 port@2 {
179 status = "okay";
180 label = "lan2";
181 };
182
183 port@3 {
184 status = "okay";
185 label = "lan1";
186 };
187 };
188 };
189
190 &state_default {
191 gpio {
192 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
193 function = "gpio";
194 };
195 };
196