ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_iptime_a3004t.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 = "iptime,a3004t", "mediatek,mt7621-soc";
11 model = "ipTIME A3004T";
12
13 aliases {
14 led-boot = &led_cpu;
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_cpu: led-0 {
24 color = <LED_COLOR_ID_AMBER>;
25 function = LED_FUNCTION_CPU;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28
29 led-1 {
30 color = <LED_COLOR_ID_AMBER>;
31 function = LED_FUNCTION_WLAN;
32 function-enumerator = <0>;
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0radio";
35 };
36
37 led-2 {
38 color = <LED_COLOR_ID_AMBER>;
39 function = LED_FUNCTION_WLAN;
40 function-enumerator = <1>;
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1radio";
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &nand {
58 status = "okay";
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x80000>;
68 read-only;
69 };
70
71 partition@80000 {
72 label = "config";
73 reg = <0x80000 0x20000>;
74 read-only;
75 };
76
77 partition@a0000 {
78 label = "factory";
79 reg = <0xa0000 0x20000>;
80 read-only;
81
82 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 eeprom_factory_0: eeprom@0 {
88 reg = <0x0 0x4da8>;
89 };
90
91 macaddr_factory_4: macaddr@4 {
92 compatible = "mac-base";
93 reg = <0x4 0x6>;
94 #nvmem-cell-cells = <1>;
95 };
96
97 macaddr_factory_8004: macaddr@8004 {
98 reg = <0x8004 0x6>;
99 };
100 };
101 };
102
103 partition@140000 {
104 label = "firmware";
105 reg = <0x140000 0x7e40000>;
106
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "kernel";
113 reg = <0x0 0x400000>;
114 };
115
116 partition@400000 {
117 label = "ubi";
118 reg = <0x400000 0x7a40000>;
119 };
120 };
121 };
122 };
123
124 &gmac0 {
125 nvmem-cells = <&macaddr_factory_4 3>;
126 nvmem-cell-names = "mac-address";
127 };
128
129 &gmac1 {
130 status = "okay";
131 label = "wan";
132 phy-handle = <&ethphy0>;
133
134 nvmem-cells = <&macaddr_factory_4 1>;
135 nvmem-cell-names = "mac-address";
136 };
137
138 &mdio {
139 ethphy0: ethernet-phy@0 {
140 reg = <0>;
141 };
142 };
143
144 &switch0 {
145 ports {
146 port@1 {
147 status = "okay";
148 label = "lan4";
149 };
150
151 port@2 {
152 status = "okay";
153 label = "lan3";
154 };
155
156 port@3 {
157 status = "okay";
158 label = "lan2";
159 };
160
161 port@4 {
162 status = "okay";
163 label = "lan1";
164 };
165 };
166 };
167
168 &pcie {
169 status = "okay";
170 };
171
172 &pcie0 {
173 wifi@0,0 {
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_factory_0>;
177 nvmem-cell-names = "eeprom";
178 };
179 };
180
181 &state_default {
182 gpio {
183 groups = "i2c", "jtag", "wdt";
184 function = "gpio";
185 };
186 };