ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_hiwifi_hc5761a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an_hiwifi_hc5x61a.dtsi"
5
6 / {
7         compatible = "hiwifi,hc5761a", "mediatek,mt7628an-soc";
8         model = "HiWiFi HC5761A";
9
10         leds {
11                 compatible = "gpio-leds";
12
13                 led_system: system {
14                         label = "hc5761a:blue:system";
15                         gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
16                 };
17
18                 internet {
19                         label = "hc5761a:blue:internet";
20                         gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
21                 };
22
23                 wlan2g {
24                         label = "hc5761a:blue:wlan2g";
25                         gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
26                         linux,default-trigger = "phy0tpt";
27                 };
28
29                 wlan5g {
30                         label = "hc5761a:blue:wlan5g";
31                         gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
32                         linux,default-trigger = "phy1tpt";
33                 };
34         };
35 };
36
37 &state_default {
38         gpio {
39                 ralink,group = "i2c", "refclk", "wdt", "p3led_an", "wled_an";
40                 ralink,function = "gpio";
41         };
42 };
43
44 &pcie {
45         status = "okay";
46 };
47
48 &pcie0 {
49         wifi@0,0 {
50                 reg = <0x0000 0 0 0 0>;
51                 mediatek,mtd-eeprom = <&factory 0x8000>;
52                 ieee80211-freq-limit = <5000000 6000000>;
53         };
54 };