ramips: mt7621: update pinctrl nodes
[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         gpio_export {
37                 compatible = "gpio-export";
38                 #size-cells = <0>;
39
40                 usb_power {
41                         gpio-export,name = "usb_power";
42                         gpio-export,output = <0>;
43                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
44                 };
45         };
46 };
47
48 &state_default {
49         gpio {
50                 ralink,group = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an";
51                 ralink,function = "gpio";
52         };
53 };
54
55 &pcie {
56         status = "okay";
57 };
58
59 &pcie0 {
60         wifi@0,0 {
61                 reg = <0x0000 0 0 0 0>;
62                 mediatek,mtd-eeprom = <&factory 0x8000>;
63                 ieee80211-freq-limit = <5000000 6000000>;
64         };
65 };