ramips: improve support for HiWiFi HC5661A and HC5861B
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_hiwifi_hc5861b.dts
1 /dts-v1/;
2
3 #include "mt7628an_hiwifi_hc5x61a.dtsi"
4
5 / {
6         compatible = "hiwifi,hc5861b", "mediatek,mt7628an-soc";
7         model = "HiWiFi HC5861B";
8
9         leds {
10                 compatible = "gpio-leds";
11
12                 led_system: system {
13                         label = "hc5861b:green:system";
14                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
15                 };
16
17                 wlan2g {
18                         label = "hc5861b:green:wlan2g";
19                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
20                         linux,default-trigger = "phy0tpt";
21                 };
22         };
23 };
24
25 &pinctrl {
26         state_default: pinctrl0 {
27                 gpio {
28                         ralink,group = "refclk", "wdt", "wled_an";
29                         ralink,function = "gpio";
30                 };
31         };
32 };
33
34 &ehci {
35         status = "disabled";
36 };
37
38 &ohci {
39         status = "disabled";
40 };
41
42 &pcie {
43         status = "okay";
44 };
45
46 &pcie0 {
47         wifi@0,0 {
48                 reg = <0x0000 0 0 0 0>;
49                 mediatek,mtd-eeprom = <&factory 0x8000>;
50                 mtd-mac-address = <&factory 0x2e>;
51                 ieee80211-freq-limit = <5000000 6000000>;
52
53                 led {
54                         led-sources = <2>;
55                         led-active-low;
56                 };
57         };
58 };