ramips: mt76x8: fix bogus mediatek,portmap
[oweals/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         status = "okay";
75         mtd-mac-address = <&factory 0x4>;
76         pinctrl-names = "default";
77         pinctrl-0 = <&rgmii1_pins &mdio_pins>;
78         mediatek,portmap = "wllll";
79
80         port@5 {
81                 status = "okay";
82                 phy-handle = <&phy5>;
83                 phy-mode = "rgmii";
84         };
85
86         mdio-bus {
87                 status = "okay";
88
89                 phy5: ethernet-phy@5 {
90                         reg = <5>;
91                         phy-mode = "rgmii";
92                 };
93         };
94 };
95
96 &pcie {
97         status = "okay";
98 };
99
100 &pcie0 {
101         wifi@0,0 {
102                 compatible = "pci14c3,7662";
103                 reg = <0x0000 0 0 0 0>;
104                 mediatek,mtd-eeprom = <&factory 0x8000>;
105                 ieee80211-freq-limit = <5000000 6000000>;
106         };
107 };