ramips: improve GPIO pin control for HC5x61
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_hiwifi_hc5761.dts
1 #include "mt7620a_hiwifi_hc5x61.dtsi"
2
3 / {
4 compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc";
5 model = "HiWiFi HC5761";
6
7 aliases {
8 led-boot = &led_system;
9 led-failsafe = &led_system;
10 led-running = &led_system;
11 led-upgrade = &led_system;
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 led_system: system {
18 label = "blue:system";
19 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
20 };
21
22 internet {
23 label = "blue:internet";
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 };
26
27 wlan2g {
28 label = "blue:wlan2g";
29 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy1tpt";
31 };
32
33 wlan5g {
34 label = "blue:wlan5g";
35 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38 };
39
40 gpio_export {
41 compatible = "gpio-export";
42 #size-cells = <0>;
43
44 usbpower {
45 gpio-export,name = "usbpower";
46 gpio-export,output = <1>;
47 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
48 };
49 };
50 };
51
52 &ehci {
53 status = "okay";
54 };
55
56 &ohci {
57 status = "okay";
58 };
59
60 &pcie {
61 status = "okay";
62 };
63
64 &pcie0 {
65 mt76@0,0 {
66 reg = <0x0000 0 0 0 0>;
67 mediatek,mtd-eeprom = <&factory 0x8000>;
68 ieee80211-freq-limit = <5000000 6000000>;
69 };
70 };