8859038c30e333bec061f9534b0af21ffc790023
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-ra75.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-ra75", "mediatek,mt7628an-soc";
7 model = "Xiaomi Mi AC1200 WLAN Range Extender RA75";
8 aliases {
9 led-boot = &led_system_amber;
10 led-failsafe = &led_system_amber;
11 led-running = &led_system_blue;
12 led-upgrade = &led_system_amber;
13 label-mac-device = &ethernet;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_system_blue: system_blue {
20 label = "blue:system";
21 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
22 };
23 led_system_amber: system_amber {
24 label = "amber:system";
25 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
26 };
27 led_signal_blue: signal_blue {
28 label = "blue:signal";
29 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
30 };
31 led_signal_amber: signal_amber {
32 label = "amber:signal";
33 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
34 };
35 led_signal_red: signal_red {
36 label = "red:signal";
37 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 wps {
50 label = "wps";
51 gpios = <&gpio 67 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
53 };
54 };
55
56 };
57
58 &state_default {
59 gpio {
60 groups = "gpio", "refclk", "wdt", "wled_an", "uart1";
61 function = "gpio";
62 };
63 };
64
65 &partitions {
66 partition@60000 {
67 label = "overlay";
68 reg = <0x60000 0x100000>;
69 read-only;
70 };
71
72 partition@160000 {
73 label = "firmware";
74 reg = <0x160000 0xea0000>;
75 compatible = "denx,uimage";
76 };
77 };
78
79 &pcie {
80 status = "okay";
81 };
82
83 &pcie0 {
84 wifi@0,0 {
85 compatible = "mediatek,mt76";
86 reg = <0x0000 0 0 0 0>;
87 nvmem-cells = <&eeprom_factory_8000>;
88 nvmem-cell-names = "eeprom";
89 ieee80211-freq-limit = <5000000 6000000>;
90 };
91 };
92
93 &ethernet {
94 nvmem-cells = <&macaddr_factory_28>;
95 nvmem-cell-names = "mac-address";
96 };
97
98 &wmac {
99 nvmem-cells = <&eeprom_factory_0>;
100 nvmem-cell-names = "eeprom";
101 };
102
103 &esw {
104 mediatek,portmap = <0x3e>;
105 mediatek,portdisable = <0x2a>;
106 };
107
108 &ehci {
109 status = "disabled";
110 };
111
112 &ohci {
113 status = "disabled";
114 };