ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.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 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
89 };
90 };
91
92 &ethernet {
93 nvmem-cells = <&macaddr_factory_28>;
94 nvmem-cell-names = "mac-address";
95 };
96
97 &wmac {
98 ralink,mtd-eeprom = <&factory 0x0>;
99 };
100
101
102 &esw {
103 mediatek,portmap = <0x3e>;
104 mediatek,portdisable = <0x2a>;
105 };
106
107 &ehci {
108 status = "disabled";
109 };
110
111 &ohci {
112 status = "disabled";
113 };
114
115 &factory {
116 compatible = "nvmem-cells";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 macaddr_factory_4: macaddr@4 {
121 reg = <0x4 0x6>;
122 };
123
124 macaddr_factory_28: macaddr@28 {
125 reg = <0x28 0x6>;
126 };
127 macaddr_factory_8004: macaddr@8004 {
128 reg = <0x8004 0x6>;
129 };
130 };
131
132