ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_hiwifi_hc5962.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 = "hiwifi,hc5962", "mediatek,mt7621-soc";
9 model = "HiWiFi HC5962";
10
11 aliases {
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_status: status {
26 function = LED_FUNCTION_STATUS;
27 color = <LED_COLOR_ID_WHITE>;
28 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
29 };
30
31 led_system: system {
32 label = "red:system";
33 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
34 panic-indicator;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47
48 ubi-concat {
49 compatible = "mtd-concat";
50 devices = <&ubiconcat0 &ubiconcat1>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "ubi";
59 reg = <0x0 0x79c0000>;
60 };
61 };
62 };
63 };
64
65 &nand {
66 status = "okay";
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x80000>;
76 read-only;
77 };
78
79 partition@80000 {
80 label = "debug";
81 reg = <0x80000 0x80000>;
82 read-only;
83 };
84
85 partition@100000 {
86 label = "factory";
87 reg = <0x100000 0x40000>;
88 read-only;
89
90 nvmem-layout {
91 compatible = "fixed-layout";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 eeprom_factory_0: eeprom@0 {
96 reg = <0x0 0x400>;
97 };
98
99 eeprom_factory_8000: eeprom@8000 {
100 reg = <0x8000 0x200>;
101 };
102 };
103 };
104
105 partition@140000 {
106 label = "kernel";
107 reg = <0x140000 0x400000>;
108 };
109
110 ubiconcat0: partition@540000 {
111 label = "ubiconcat0";
112 reg = <0x540000 0x1c80000>;
113 };
114
115 partition@21c0000 {
116 label = "bdinfo";
117 reg = <0x21c0000 0x80000>;
118 read-only;
119 };
120
121 ubiconcat1: partition@2240000 {
122 label = "ubiconcat1";
123 reg = <0x2240000 0x5d40000>;
124 };
125 };
126 };
127
128 &pcie {
129 status = "okay";
130 };
131
132 &pcie0 {
133 mt76@0,0 {
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&eeprom_factory_0>;
136 nvmem-cell-names = "eeprom";
137 ieee80211-freq-limit = <2400000 2500000>;
138 };
139 };
140
141 &pcie1 {
142 mt76@0,0 {
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&eeprom_factory_8000>;
145 nvmem-cell-names = "eeprom";
146 ieee80211-freq-limit = <5000000 6000000>;
147 };
148 };
149
150 &gmac1 {
151 status = "okay";
152 label = "wan";
153 phy-handle = <&ethphy4>;
154 };
155
156 &mdio {
157 ethphy4: ethernet-phy@4 {
158 reg = <4>;
159 };
160 };
161
162 &switch0 {
163 ports {
164 port@1 {
165 status = "okay";
166 label = "lan1";
167 };
168
169 port@2 {
170 status = "okay";
171 label = "lan2";
172 };
173
174 port@3 {
175 status = "okay";
176 label = "lan3";
177 };
178 };
179 };
180
181 &state_default {
182 gpio {
183 groups = "uart3", "jtag";
184 function = "gpio";
185 };
186 };