78653344896a239aa01f5170032afd6221ef4c63
[openwrt/staging/jow.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 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 wps {
46 label = "wps";
47 gpios = <&gpio 67 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50 };
51
52 };
53
54 &partitions {
55 partition@60000 {
56 label = "overlay";
57 reg = <0x60000 0x100000>;
58 read-only;
59 };
60
61 partition@160000 {
62 label = "firmware";
63 reg = <0x160000 0xea0000>;
64 compatible = "denx,uimage";
65 };
66 };
67
68 &pcie {
69 status = "okay";
70 };
71
72 &pcie0 {
73 wifi@0,0 {
74 compatible = "mediatek,mt76";
75 reg = <0x0000 0 0 0 0>;
76 mediatek,mtd-eeprom = <&factory 0x8000>;
77 ieee80211-freq-limit = <5000000 6000000>;
78 };
79 };
80
81 &ethernet {
82 nvmem-cells = <&macaddr_factory_28>;
83 nvmem-cell-names = "mac-address";
84 };
85
86 &wmac {
87 ralink,mtd-eeprom = <&factory 0x0>;
88 };
89
90
91 &esw {
92 mediatek,portmap = <0x3e>;
93 mediatek,portdisable = <0x2a>;
94 };
95
96 &ehci {
97 status = "disabled";
98 };
99
100 &ohci {
101 status = "disabled";
102 };
103
104 &factory {
105 compatible = "nvmem-cells";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 macaddr_factory_4: macaddr@4 {
110 reg = <0x4 0x6>;
111 };
112
113 macaddr_factory_28: macaddr@28 {
114 reg = <0x28 0x6>;
115 };
116 macaddr_factory_8004: macaddr@8004 {
117 reg = <0x8004 0x6>;
118 };
119 };
120
121