ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1167ghbk2-s.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
9 model = "ELECOM WRC-1167GHBK2-S";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wlan2g {
22 label = "white:wlan2g";
23 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy0radio";
25 };
26
27 wlan5g {
28 label = "white:wlan5g";
29 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
30 };
31
32 led_power_green: power_green {
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
36 };
37
38 power_blue {
39 function = LED_FUNCTION_POWER;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
42 };
43
44 wps {
45 function = LED_FUNCTION_WPS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
48 };
49
50 power_red {
51 function = LED_FUNCTION_POWER;
52 color = <LED_COLOR_ID_RED>;
53 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
54 };
55 };
56
57 keys {
58 compatible = "gpio-keys";
59
60 reset {
61 label = "reset";
62 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
64 };
65
66 wps {
67 label = "wps";
68 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
70 };
71 };
72 };
73
74 &gmac0 {
75 nvmem-cells = <&macaddr_factory_e000 0>;
76 nvmem-cell-names = "mac-address";
77 };
78
79 &gmac1 {
80 status = "okay";
81 label = "wan";
82 phy-handle = <&ethphy0>;
83
84 nvmem-cells = <&macaddr_factory_e006>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &mdio {
89 ethphy0: ethernet-phy@0 {
90 reg = <0>;
91 };
92 };
93
94 &switch0 {
95 ports {
96 port@1 {
97 status = "okay";
98 label = "lan4";
99 };
100
101 port@2 {
102 status = "okay";
103 label = "lan3";
104 };
105
106 port@3 {
107 status = "okay";
108 label = "lan2";
109 };
110
111 port@4 {
112 status = "okay";
113 label = "lan1";
114 };
115 };
116 };
117
118 &spi0 {
119 status = "okay";
120
121 flash@0 {
122 compatible = "jedec,spi-nor";
123 reg = <0>;
124 spi-max-frequency = <10000000>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 label = "u-boot";
133 reg = <0x0 0x30000>;
134 read-only;
135 };
136
137 partition@30000 {
138 label = "u-boot-env";
139 reg = <0x30000 0x10000>;
140 read-only;
141 };
142
143 partition@40000 {
144 label = "factory";
145 reg = <0x40000 0x10000>;
146 read-only;
147
148 nvmem-layout {
149 compatible = "fixed-layout";
150 #address-cells = <1>;
151 #size-cells = <1>;
152
153 eeprom_factory_0: eeprom@0 {
154 reg = <0x0 0x4da8>;
155 };
156
157 macaddr_factory_e000: macaddr@e000 {
158 compatible = "mac-base";
159 reg = <0xe000 0x6>;
160 #nvmem-cell-cells = <1>;
161 };
162
163 macaddr_factory_e006: macaddr@e006 {
164 reg = <0xe006 0x6>;
165 };
166 };
167 };
168
169 partition@50000 {
170 compatible = "denx,uimage";
171 label = "firmware";
172 reg = <0x50000 0xf20000>;
173 };
174
175 partition@f70000 {
176 label = "user_data";
177 reg = <0xf70000 0x80000>;
178 read-only;
179 };
180
181 partition@ff0000 {
182 label = "NVRAM";
183 reg = <0xff0000 0x10000>;
184 read-only;
185 };
186 };
187 };
188 };
189
190 &state_default {
191 gpio {
192 groups = "i2c", "uart3", "jtag", "wdt";
193 function = "gpio";
194 };
195 };
196
197 &pcie {
198 status = "okay";
199 };
200
201 &pcie0 {
202 wifi@0,0 {
203 compatible = "mediatek,mt76";
204 reg = <0x0000 0 0 0 0>;
205 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
206 nvmem-cell-names = "eeprom", "mac-address";
207 };
208 };
209
210 &xhci {
211 status = "disabled";
212 };