ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_hanyang_hyc-g920.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 = "hanyang,hyc-g920", "mediatek,mt7621-soc";
11 model = "CJ-Hello HYC-G920";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 bootargs-override = "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_RED>;
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
32 };
33
34 usb {
35 function = LED_FUNCTION_USB;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&ehci_port2>;
39 linux,default-trigger = "usbport";
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 debounce-interval = <60>;
51 };
52 };
53 };
54
55 &spi0 {
56 status = "okay";
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <40000000>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "bootloader";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "mac";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84
85 nvmem-layout {
86 compatible = "fixed-layout";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 eeprom_factory_0: eeprom@0 {
91 reg = <0x0 0x200>;
92 };
93
94 eeprom_factory_8000: eeprom@8000 {
95 reg = <0x8000 0x200>;
96 };
97
98 macaddr_factory_4: macaddr@4 {
99 compatible = "mac-base";
100 reg = <0x4 0x6>;
101 #nvmem-cell-cells = <1>;
102 };
103
104 macaddr_factory_8004: macaddr@8004 {
105 reg = <0x8004 0x6>;
106 };
107 };
108 };
109
110 partition@50000 {
111 compatible = "denx,uimage";
112 label = "firmware";
113 reg = <0x50000 0xfb0000>;
114 };
115
116 partition@fb0000 {
117 label = "config ";
118 reg = <0xfb0000 0x20000>;
119 read-only;
120 };
121
122 partition@fd0000 {
123 label = "config_bak ";
124 reg = <0xfd0000 0x20000>;
125 read-only;
126 };
127
128 partition@ff0000 {
129 label = "mac_bak ";
130 reg = <0xff0000 0x10000>;
131 read-only;
132 };
133 };
134 };
135 };
136
137 &pcie {
138 status = "okay";
139 };
140
141 &pcie0 {
142 wifi@0,0 {
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_factory_8000>;
146 nvmem-cell-names = "eeprom";
147 ieee80211-freq-limit = <5000000 6000000>;
148
149 led {
150 led-sources = <2>;
151 led-active-low;
152 };
153 };
154 };
155
156 &pcie1 {
157 wifi@0,0 {
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";
162 ieee80211-freq-limit = <2400000 2500000>;
163
164 led {
165 led-sources = <2>;
166 led-active-low;
167 };
168 };
169 };
170
171 &gmac0 {
172 nvmem-cells = <&macaddr_factory_4 0>;
173 nvmem-cell-names = "mac-address";
174 };
175
176 &switch0 {
177 ports {
178 port@0 {
179 status = "okay";
180 label = "wan";
181 nvmem-cells = <&macaddr_factory_4 1>;
182 nvmem-cell-names = "mac-address";
183 };
184
185 port@1 {
186 status = "okay";
187 label = "lan1";
188 };
189
190 port@2 {
191 status = "okay";
192 label = "lan2";
193 };
194
195 port@3 {
196 status = "okay";
197 label = "lan3";
198 };
199
200 port@4 {
201 status = "okay";
202 label = "lan4";
203 };
204 };
205 };
206
207 &state_default {
208 gpio {
209 groups = "sdhci";
210 function = "gpio";
211 };
212 };