ramips: add support for HiWiFi HC5761A
[openwrt/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 &pinctrl {
38 state_default: pinctrl0 {
39 gpio {
40 ralink,group = "i2c", "refclk", "wdt", "p3led_an", "wled_an";
41 ralink,function = "gpio";
42 };
43 };
44 };
45
46 &pcie {
47 status = "okay";
48 };
49
50 &pcie0 {
51 wifi@0,0 {
52 reg = <0x0000 0 0 0 0>;
53 mediatek,mtd-eeprom = <&factory 0x8000>;
54 ieee80211-freq-limit = <5000000 6000000>;
55 };
56 };