ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_gehua_ghl-r-001.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 = "gehua,ghl-r-001", "mediatek,mt7621-soc";
11 model = "GeHua GHL-R-001";
12
13 leds {
14 compatible = "gpio-leds";
15
16 internet {
17 label = "blue:internet";
18 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
19 };
20
21 usb {
22 function = LED_FUNCTION_USB;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
25 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
26 linux,default-trigger = "usbport";
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39 };
40
41 &uartlite3 {
42 status = "okay";
43 };
44
45 &spi0 {
46 status = "okay";
47
48 flash@0 {
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <25000000>;
52 broken-flash-reset;
53 m25p,fast-read;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76
77 nvmem-layout {
78 compatible = "fixed-layout";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 eeprom_factory_0: eeprom@0 {
83 reg = <0x0 0x400>;
84 };
85
86 eeprom_factory_8000: eeprom@8000 {
87 reg = <0x8000 0x200>;
88 };
89
90 macaddr_factory_e000: macaddr@e000 {
91 compatible = "mac-base";
92 reg = <0xe000 0x6>;
93 #nvmem-cell-cells = <1>;
94 };
95 };
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x1fb0000>;
102 };
103 };
104 };
105 };
106
107 &pcie {
108 status = "okay";
109 };
110
111 &pcie0 {
112 wifi@0,0 {
113 reg = <0x0000 0 0 0 0>;
114 nvmem-cells = <&eeprom_factory_0>;
115 nvmem-cell-names = "eeprom";
116 };
117 };
118
119 &pcie1 {
120 wifi@0,0 {
121 reg = <0x0000 0 0 0 0>;
122 nvmem-cells = <&eeprom_factory_8000>;
123 nvmem-cell-names = "eeprom";
124 ieee80211-freq-limit = <5000000 6000000>;
125
126 led {
127 led-sources = <2>;
128 led-active-low;
129 };
130 };
131 };
132
133 &gmac0 {
134 nvmem-cells = <&macaddr_factory_e000 0>;
135 nvmem-cell-names = "mac-address";
136 };
137
138 &gmac1 {
139 status = "okay";
140 label = "wan";
141 phy-handle = <&ethphy4>;
142
143 nvmem-cells = <&macaddr_factory_e000 1>;
144 nvmem-cell-names = "mac-address";
145 };
146
147 &mdio {
148 ethphy4: ethernet-phy@4 {
149 reg = <4>;
150 };
151 };
152
153 &switch0 {
154 ports {
155 port@0 {
156 status = "okay";
157 label = "lan1";
158 };
159
160 port@1 {
161 status = "okay";
162 label = "lan2";
163 };
164
165 port@2 {
166 status = "okay";
167 label = "lan3";
168 };
169 };
170 };
171
172 &state_default {
173 gpio {
174 groups = "jtag", "wdt";
175 function = "gpio";
176 };
177 };