ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_bolt_arion.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 = "bolt,arion", "mediatek,mt7621-soc";
11 model = "Bolt Arion";
12
13 aliases {
14 label-mac-device = &wan;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,57600n8";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_wlan_blue: wlan_blue {
25 function = LED_FUNCTION_WLAN;
26 color = <LED_COLOR_ID_BLUE>;
27 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
28 };
29
30 led_wlan_red: wlan_red {
31 function = LED_FUNCTION_WLAN;
32 color = <LED_COLOR_ID_RED>;
33 gpios = <&gpio 86 GPIO_ACTIVE_LOW>;
34 };
35
36 led_tel_blue: tel_blue {
37 label = "blue:tel";
38 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
39 };
40
41 led_sig1_blue: sig1_blue {
42 label = "blue:sig1";
43 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44 };
45
46 led_sig1_red: sig1_red {
47 label = "red:sig1";
48 gpios = <&gpio 87 GPIO_ACTIVE_LOW>;
49 };
50
51 led_sig2_blue: sig2_blue {
52 label = "blue:sig2";
53 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
54 };
55
56 led_sig3_blue: sig3_blue {
57 label = "blue:sig3";
58 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 keys {
63 compatible = "gpio-keys";
64
65 reset {
66 label = "reset";
67 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
69 };
70
71 wps {
72 label = "WPS";
73 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
75 };
76 };
77 };
78
79 &spi0 {
80 status = "okay";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <50000000>;
86 m25p,fast-read;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x20000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "u-boot-env";
101 reg = <0x20000 0x20000>;
102 read-only;
103 };
104
105 partition@40000 {
106 label = "factory";
107 reg = <0x40000 0x10000>;
108 read-only;
109
110 nvmem-layout {
111 compatible = "fixed-layout";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 eeprom_factory_0: eeprom@0 {
116 reg = <0x0 0x400>;
117 };
118
119 eeprom_factory_8000: eeprom@8000 {
120 reg = <0x8000 0x200>;
121 };
122
123 macaddr_factory_28: macaddr@28 {
124 compatible = "mac-base";
125 reg = <0x28 0x6>;
126 #nvmem-cell-cells = <1>;
127 };
128 };
129 };
130
131 partition@50000 {
132 compatible = "denx,uimage";
133 label = "firmware";
134 reg = <0x50000 0x1fb0000>;
135 };
136 };
137 };
138 };
139
140 &pcie {
141 status = "okay";
142 };
143
144 &pcie0 {
145 wifi@0,0 {
146 compatible = "pci14c3,7603";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&eeprom_factory_0>;
149 nvmem-cell-names = "eeprom";
150 ieee80211-freq-limit = <2400000 2500000>;
151 };
152 };
153
154 &pcie1 {
155 wifi@0,0 {
156 compatible = "pci14c3,7662";
157 reg = <0x0000 0 0 0 0>;
158 nvmem-cells = <&eeprom_factory_8000>;
159 nvmem-cell-names = "eeprom";
160 ieee80211-freq-limit = <5000000 6000000>;
161 };
162 };
163
164 &gmac0 {
165 nvmem-cells = <&macaddr_factory_28 3>;
166 nvmem-cell-names = "mac-address";
167 };
168
169 &switch0 {
170 ports {
171 port@0 {
172 status = "okay";
173 label = "modem";
174 };
175
176 wan: port@1 {
177 status = "okay";
178 label = "wan";
179 nvmem-cells = <&macaddr_factory_28 0>;
180 nvmem-cell-names = "mac-address";
181 };
182
183 port@2 {
184 status = "okay";
185 label = "lan";
186 };
187 };
188 };
189
190 &ethernet {
191 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
192 };
193
194 &state_default {
195 gpio {
196 groups = "jtag", "uart2", "uart3", "wdt", "rgmii2";
197 function = "gpio";
198 };
199 };