f40717267c7a80a38dc8d1eea22e0aaad83207df
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-router-4a-100m.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-4a-100m", "mediatek,mt7628an-soc";
7 model = "Xiaomi Mi Router 4A (100M Edition)";
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 &partitions {
39 partition@60000 {
40 label = "overlay";
41 reg = <0x60000 0x100000>;
42 read-only;
43 };
44
45 partition@160000 {
46 label = "firmware";
47 reg = <0x160000 0xea0000>;
48 compatible = "denx,uimage";
49 };
50 };
51
52 &pcie {
53 status = "okay";
54 };
55
56 &pcie0 {
57 wifi@0,0 {
58 compatible = "mediatek,mt76";
59 reg = <0x0000 0 0 0 0>;
60 nvmem-cells = <&eeprom_factory_8000>;
61 nvmem-cell-names = "eeprom";
62 ieee80211-freq-limit = <5000000 6000000>;
63 };
64 };
65
66 &ethernet {
67 nvmem-cells = <&macaddr_factory_4 (-1)>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &esw {
72 mediatek,portmap = <0x3e>;
73 mediatek,portdisable = <0x2a>;
74 };