ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_wavlink_wl-wn577a2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/gpio/gpio.h>
8
9 / {
10 compatible = "wavlink,wl-wn577a2", "maginon,wlr-755", "mediatek,mt7628an-soc";
11 model = "WAVLINK WL-WN577A2";
12
13 aliases {
14 led-boot = &led_wps;
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 lan {
40 function = LED_FUNCTION_LAN;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
43 };
44
45 wan {
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
49 };
50
51 led_wps: wps {
52 function = LED_FUNCTION_WPS;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &state_default {
60 gpio {
61 groups = "i2c", "wdt", "p0led_an", "p3led_an", "p4led_an";
62 function = "gpio";
63 };
64 };
65
66 &pcie {
67 status = "okay";
68 };
69
70 &pcie0 {
71 mt76@0,0 {
72 reg = <0x0000 0 0 0 0>;
73 nvmem-cells = <&eeprom_factory_8000>;
74 nvmem-cell-names = "eeprom";
75 ieee80211-freq-limit = <5000000 6000000>;
76 };
77 };
78
79 &spi0 {
80 status = "okay";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <40000000>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "u-boot-env";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "factory";
106 reg = <0x40000 0x10000>;
107 read-only;
108
109 nvmem-layout {
110 compatible = "fixed-layout";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 eeprom_factory_0: eeprom@0 {
115 reg = <0x0 0x400>;
116 };
117
118 eeprom_factory_8000: eeprom@8000 {
119 reg = <0x8000 0x200>;
120 };
121
122 macaddr_factory_28: macaddr@28 {
123 reg = <0x28 0x6>;
124 };
125 };
126 };
127
128 partition@50000 {
129 compatible = "denx,uimage";
130 label = "firmware";
131 reg = <0x50000 0x7b0000>;
132 };
133 };
134 };
135 };
136
137 &wmac {
138 status = "okay";
139
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
142 };
143
144 &ethernet {
145 nvmem-cells = <&macaddr_factory_28>;
146 nvmem-cell-names = "mac-address";
147 };
148
149 &esw {
150 mediatek,portmap = <0x2f>;
151 };
152
153 &usbphy {
154 status = "disabled";
155 };
156
157 &ehci {
158 status = "disabled";
159 };
160
161 &ohci {
162 status = "disabled";
163 };