863191bc4b7cfc25ab918fc7c273d60f06e1ee8a
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-router-4a-100m-intl.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-intl", "mediatek,mt7628an-soc";
7 model = "Xiaomi Mi Router 4A (100M International 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 0x200000>;
42 read-only;
43 };
44
45 partition@260000 {
46 label = "firmware";
47 reg = <0x260000 0xda0000>;
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 mediatek,mtd-eeprom = <&factory 0x8000>;
61 ieee80211-freq-limit = <5000000 6000000>;
62 };
63 };
64
65 &ethernet {
66 nvmem-cells = <&macaddr_factory_4>;
67 nvmem-cell-names = "mac-address";
68 mac-address-increment = <(-1)>;
69 };
70
71 &esw {
72 mediatek,portmap = <0x3e>;
73 mediatek,portdisable = <0x2a>;
74 };
75
76 &factory {
77 compatible = "nvmem-cells";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr_factory_4: macaddr@4 {
82 reg = <0x4 0x6>;
83 };
84 };