ramips: convert MT7628 EEPROM to NVMEM format
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-router-4c.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_xiaomi_mi-router-4.dtsi"
4
5 / {
6 compatible = "xiaomi,mi-router-4c", "mediatek,mt7628an-soc";
7 model = "Xiaomi Mi Router 4C";
8
9 aliases {
10 led-boot = &led_power_yellow;
11 led-failsafe = &led_power_yellow;
12 led-running = &led_power_blue;
13 led-upgrade = &led_power_yellow;
14 label-mac-device = &ethernet;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power_blue: power_blue {
21 label = "blue:power";
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 };
24
25 led_power_yellow: power_yellow {
26 label = "yellow:power";
27 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
28 };
29
30 wan {
31 label = "blue:wan";
32 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
33 };
34
35 };
36
37 };
38
39 &flash0 {
40 spi-max-frequency = <40000000>;
41 };
42
43 &partitions {
44 partition@60000 {
45 label = "overlay";
46 reg = <0x60000 0x100000>;
47 read-only;
48 };
49
50 partition@160000 {
51 label = "firmware";
52 reg = <0x160000 0xea0000>;
53 compatible = "denx,uimage";
54 };
55 };
56
57 &ehci {
58 status = "disabled";
59 };
60
61 &ohci {
62 status = "disabled";
63 };
64
65 &ethernet {
66 nvmem-cells = <&macaddr_factory_28>;
67 nvmem-cell-names = "mac-address";
68 };
69
70 &esw {
71 mediatek,portmap = <0x3d>;
72 mediatek,portdisable = <0x29>;
73 };