ramips: rtxxxx: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_meig_slt866.dts
1 #include "mt7621.dtsi"
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 compatible = "meig,slt866", "mediatek,mt7621-soc";
8 model = "MeiG SLT866";
9
10 aliases {
11 led-boot = &led_internet;
12 led-failsafe = &led_internet;
13 led-upgrade = &led_internet;
14 label-mac-device = &gmac1;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 signal4 {
21 label = "blue:signal4";
22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23 };
24
25 lanwan {
26 label = "blue:lanwan";
27 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
28 };
29
30 led_internet: internet {
31 label = "blue:internet";
32 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
33 };
34
35 wifi {
36 label = "blue:wifi";
37 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "phy0tpt";
39 };
40
41 signal3 {
42 label = "blue:signal3";
43 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
44 };
45
46 signal2 {
47 label = "blue:signal2";
48 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
49 };
50
51 signal1 {
52 label = "blue:signal1";
53 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
54 };
55 };
56
57 keys {
58 compatible = "gpio-keys";
59
60 reset {
61 label = "reset";
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
64 };
65
66 wps {
67 label = "wps";
68 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
70 };
71 };
72
73 regulator-pa-5g {
74 compatible = "regulator-fixed";
75 regulator-name = "pa-5g";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpio = <&gpio 7 GPIO_ACTIVE_HIGH>;
79 enable-active-high;
80 regulator-boot-on;
81 regulator-always-on;
82 };
83 };
84
85 &state_default {
86 gpio {
87 groups = "jtag", "uart2", "uart3", "wdt";
88 function = "gpio";
89 };
90 };
91
92 &spi0 {
93 status = "okay";
94
95 flash@0 {
96 reg = <0>;
97 compatible = "jedec,spi-nor";
98 spi-max-frequency = <20000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "Bootloader";
107 reg = <0x0 0x30000>;
108 read-only;
109 };
110
111 partition@30000 {
112 label = "Config";
113 reg = <0x30000 0x10000>;
114 };
115
116 partition@40000 {
117 label = "Factory";
118 reg = <0x40000 0x10000>;
119 read-only;
120 compatible = "nvmem-cells";
121
122 nvmem-layout {
123 compatible = "fixed-layout";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 eeprom_factory_0: eeprom@0 {
128 reg = <0x0 0x200>;
129 };
130
131 eeprom_factory_8000: eeprom@8000 {
132 reg = <0x8000 0x4da8>;
133 };
134 };
135 };
136
137 partition@50000 {
138 label = "firmware";
139 compatible = "denx,uimage";
140 reg = <0x50000 0xf90000>;
141 };
142
143 partition@fe0000 {
144 label = "m_custom";
145 reg = <0xfe0000 0x20000>;
146 read-only;
147 compatible = "nvmem-cells";
148
149 nvmem-layout {
150 compatible = "fixed-layout";
151
152 #address-cells = <1>;
153 #size-cells = <1>;
154
155 macaddr_custom_0: macaddr@0 {
156 reg = <0x0 0xc>;
157 compatible = "mac-base";
158 #nvmem-cell-cells = <1>;
159 };
160
161 macaddr_custom_40: macaddr@40 {
162 reg = <0x40 0xc>;
163 compatible = "mac-base";
164 #nvmem-cell-cells = <1>;
165 };
166
167 macaddr_custom_100: macaddr@100 {
168 reg = <0x100 0xc>;
169 compatible = "mac-base";
170 #nvmem-cell-cells = <1>;
171 };
172
173 macaddr_custom_140: macaddr@140 {
174 reg = <0x140 0xc>;
175 compatible = "mac-base";
176 #nvmem-cell-cells = <1>;
177 };
178 };
179 };
180
181 partition@1000000 {
182 label = "fota_bak";
183 reg = <0x1000000 0x1000000>;
184 read-only;
185 };
186 };
187 };
188 };
189
190 &ethernet {
191 pinctrl-names = "default";
192 pinctrl-0 = <&mdio_pins>;
193 };
194
195 &gmac0 {
196 nvmem-cells = <&macaddr_custom_40 0>;
197 nvmem-cell-names = "mac-address";
198 };
199
200 &gmac1 {
201 status = "okay";
202 label = "wan";
203 phy-handle = <&ethphy4>;
204
205 nvmem-cells = <&macaddr_custom_0 0>;
206 nvmem-cell-names = "mac-address";
207 };
208
209 &mdio {
210 ethphy4: ethernet-phy@4 {
211 reg = <4>;
212 };
213 };
214
215 &switch0 {
216 ports {
217 port@3 {
218 status = "okay";
219 label = "lan";
220 };
221 };
222 };
223
224 &pcie {
225 status = "okay";
226 };
227
228 &pcie0 {
229 mt76@0,0 {
230 compatible = "mediatek,mt76";
231 reg = <0x0000 0 0 0 0>;
232 nvmem-cells = <&eeprom_factory_0>, <&macaddr_custom_100 0>;
233 nvmem-cell-names = "eeprom", "mac-address";
234 };
235 };
236
237 &pcie1 {
238 mt76@0,0 {
239 compatible = "mediatek,mt76";
240 reg = <0x0000 0 0 0 0>;
241 ieee80211-freq-limit = <5000000 6000000>;
242 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_custom_140 0>;
243 nvmem-cell-names = "eeprom", "mac-address";
244 };
245 };