ramips: improve GPIO pin control for HC5x61
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_hiwifi_hc5861.dts
1 #include "mt7620a_hiwifi_hc5x61.dtsi"
2
3 / {
4 compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
5 model = "HiWiFi HC5861";
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 wlan2g {
23 label = "blue:wlan2g";
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 linux,default-trigger = "phy1tpt";
26 };
27
28 internet {
29 label = "blue:internet";
30 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan5g {
34 label = "blue:wlan5g";
35 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 turbo {
40 label = "blue:turbo";
41 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 usbpower {
50 gpio-export,name = "usbpower";
51 gpio-export,output = <0>;
52 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 };
54
55 sdpower {
56 gpio-export,name = "sdpower";
57 gpio-export,output = <0>;
58 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &ehci {
64 status = "okay";
65 };
66
67 &ohci {
68 status = "okay";
69 };
70
71 &ethernet {
72 pinctrl-names = "default";
73 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
74
75 mtd-mac-address = <&factory 0x4>;
76
77 mediatek,portmap = "llllw";
78
79 port@5 {
80 status = "okay";
81 phy-handle = <&phy5>;
82 phy-mode = "rgmii";
83 };
84
85 mdio-bus {
86 status = "okay";
87
88 phy5: ethernet-phy@5 {
89 reg = <5>;
90 phy-mode = "rgmii";
91 };
92 };
93 };
94
95 &pcie {
96 status = "okay";
97 };
98
99 &pcie0 {
100 wifi@0,0 {
101 compatible = "pci14c3,7662";
102 reg = <0x0000 0 0 0 0>;
103 mediatek,mtd-eeprom = <&factory 0x8000>;
104 ieee80211-freq-limit = <5000000 6000000>;
105 };
106 };
107
108 &wmac {
109 pinctrl-names = "default";
110 pinctrl-0 = <&pa_pins>;
111 };