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