ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_haier-sim_wr1800k.dtsi
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 aliases {
11 label-mac-device = &gmac1;
12 led-boot = &led_status_red;
13 led-failsafe = &led_status_blue;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_blue;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 bootargs-override = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_status_blue: led-0 {
43 color = <LED_COLOR_ID_BLUE>;
44 function = LED_FUNCTION_STATUS;
45 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
46 };
47
48 led_status_green: led-1 {
49 color = <LED_COLOR_ID_GREEN>;
50 function = LED_FUNCTION_STATUS;
51 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
52 };
53
54 led_status_red: led-2 {
55 color = <LED_COLOR_ID_RED>;
56 function = LED_FUNCTION_STATUS;
57 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &gmac0 {
63 nvmem-cells = <&macaddr_factory_8004 0>;
64 nvmem-cell-names = "mac-address";
65 };
66
67 &gmac1 {
68 status = "okay";
69 label = "wan";
70 phy-handle = <&ethphy4>;
71
72 nvmem-cells = <&macaddr_factory_8004 (-3)>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &mdio {
77 ethphy4: ethernet-phy@4 {
78 reg = <4>;
79 };
80 };
81
82 &nand {
83 status = "okay";
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x0000000 0x0080000>;
93 read-only;
94 };
95
96 partition@80000 {
97 label = "u-boot-env";
98 reg = <0x0080000 0x0080000>;
99 };
100
101 partition@100000 {
102 label = "factory";
103 reg = <0x0100000 0x0080000>;
104 read-only;
105
106 nvmem-layout {
107 compatible = "fixed-layout";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 eeprom_factory_0: eeprom@0 {
112 reg = <0x0 0xe00>;
113 };
114
115 macaddr_factory_8004: macaddr@8004 {
116 compatible = "mac-base";
117 reg = <0x8004 0x6>;
118 #nvmem-cell-cells = <1>;
119 };
120 };
121 };
122
123 partition@180000 {
124 label = "firmware";
125 reg = <0x0180000 0x7a80000>;
126
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 label = "kernel";
133 reg = <0x0000000 0x0400000>;
134 };
135
136 partition@400000 {
137 label = "ubi";
138 reg = <0x0400000 0x7680000>;
139 };
140 };
141
142 /* last 128KiB *32 is reserved for bad blocks management */
143 };
144 };
145
146 &pcie {
147 status = "okay";
148 };
149
150 &pcie1 {
151 wifi@0,0 {
152 compatible = "mediatek,mt76";
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&eeprom_factory_0>;
155 nvmem-cell-names = "eeprom";
156 mediatek,disable-radar-background;
157 };
158 };
159
160 &state_default {
161 gpio {
162 groups = "i2c", "uart3", "wdt";
163 function = "gpio";
164 };
165 };
166
167 &switch0 {
168 ports {
169 port@1 {
170 status = "okay";
171 label = "lan3";
172 };
173
174 port@2 {
175 status = "okay";
176 label = "lan2";
177 };
178
179 port@3 {
180 status = "okay";
181 label = "lan1";
182 };
183 };
184 };
185
186 &xhci {
187 status = "disabled";
188 };