ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rt-n56u-b1.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-n56u-b1", "mediatek,mt7621-soc";
11 model = "ASUS RT-N56U B1";
12
13 aliases {
14 label-mac-device = &gmac1;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_power: power {
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 };
33
34 wlan2g {
35 label = "blue:wlan2g";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 wlan5g {
41 label = "blue:wlan5g";
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wan {
47 function = LED_FUNCTION_WAN;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
50 };
51
52 lan {
53 function = LED_FUNCTION_LAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 };
57
58 usb {
59 function = LED_FUNCTION_USB;
60 color = <LED_COLOR_ID_BLUE>;
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
63 linux,default-trigger = "usbport";
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys";
69
70 wps {
71 label = "wps";
72 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
73 linux,code = <KEY_WPS_BUTTON>;
74 debounce-interval = <60>;
75 };
76
77 reset {
78 label = "reset";
79 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
81 debounce-interval = <60>;
82 };
83 };
84 };
85
86 &spi0 {
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <50000000>;
93 m25p,fast-read;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x0 0x30000>;
103 read-only;
104 };
105
106 partition@30000 {
107 label = "config";
108 reg = <0x30000 0x10000>;
109 read-only;
110 };
111
112 partition@40000 {
113 label = "factory";
114 reg = <0x40000 0x10000>;
115 read-only;
116
117 nvmem-layout {
118 compatible = "fixed-layout";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 eeprom_factory_0: eeprom@0 {
123 reg = <0x0 0x400>;
124 };
125
126 eeprom_factory_8000: eeprom@8000 {
127 reg = <0x8000 0x200>;
128 };
129
130 macaddr_factory_4: macaddr@4 {
131 reg = <0x4 0x6>;
132 };
133
134 macaddr_factory_8004: macaddr@8004 {
135 reg = <0x8004 0x6>;
136 };
137 };
138 };
139
140 partition@50000 {
141 compatible = "denx,uimage";
142 label = "firmware";
143 reg = <0x50000 0xfb0000>;
144 };
145 };
146 };
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pcie0 {
154 wifi@0,0 {
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_8000>;
158 nvmem-cell-names = "eeprom";
159 };
160 };
161
162 &pcie1 {
163 wifi@0,0 {
164 compatible = "mediatek,mt76";
165 reg = <0x0000 0 0 0 0>;
166 nvmem-cells = <&eeprom_factory_0>;
167 nvmem-cell-names = "eeprom";
168 };
169 };
170
171 &gmac0 {
172 nvmem-cells = <&macaddr_factory_8004>;
173 nvmem-cell-names = "mac-address";
174 };
175
176 &gmac1 {
177 status = "okay";
178 label = "wan";
179 phy-handle = <&ethphy4>;
180
181 nvmem-cells = <&macaddr_factory_4>;
182 nvmem-cell-names = "mac-address";
183 };
184
185 &mdio {
186 ethphy4: ethernet-phy@4 {
187 reg = <4>;
188 };
189 };
190
191 &switch0 {
192 ports {
193 port@0 {
194 status = "okay";
195 label = "lan4";
196 };
197
198 port@1 {
199 status = "okay";
200 label = "lan3";
201 };
202
203 port@2 {
204 status = "okay";
205 label = "lan2";
206 };
207
208 port@3 {
209 status = "okay";
210 label = "lan1";
211 };
212 };
213 };
214
215 &state_default {
216 gpio {
217 groups = "uart3", "uart2", "jtag", "wdt";
218 function = "gpio";
219 };
220 };