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