ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HC5861.dts
1 /dts-v1/;
2
3 #include "HC5X61.dtsi"
4
5 / {
6 compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
7 model = "HiWiFi HC5861";
8
9 aliases {
10 led-status = &led_system;
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15
16 led_system: system {
17 label = "hc5861:blue:system";
18 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
19 };
20
21 wlan2g {
22 label = "hc5861:blue:wlan2g";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 };
25
26 internet {
27 label = "hc5861:blue:internet";
28 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
29 };
30
31 wlan5g {
32 label = "hc5861:blue:wlan5g";
33 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
34 };
35
36 turbo {
37 label = "hc5861:blue:turbo";
38 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 gpio_export {
43 compatible = "gpio-export";
44 #size-cells = <0>;
45
46 usbpower {
47 gpio-export,name = "usbpower";
48 gpio-export,output = <0>;
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 };
51
52 sdpower {
53 gpio-export,name = "sdpower";
54 gpio-export,output = <0>;
55 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
56 };
57 };
58 };
59
60 &ethernet {
61 status = "okay";
62 mtd-mac-address = <&factory 0x4>;
63 pinctrl-names = "default";
64 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
65 mediatek,portmap = "wllll";
66
67 port@4 {
68 status = "okay";
69 phy-handle = <&phy4>;
70 phy-mode = "rgmii";
71 };
72
73 port@5 {
74 status = "okay";
75 phy-handle = <&phy5>;
76 phy-mode = "rgmii";
77 };
78
79 mdio-bus {
80 status = "okay";
81
82 phy4: ethernet-phy@4 {
83 reg = <4>;
84 phy-mode = "rgmii";
85 };
86
87 phy5: ethernet-phy@5 {
88 reg = <5>;
89 phy-mode = "rgmii";
90 };
91 };
92 };
93
94 &gsw {
95 mediatek,port4 = "gmac";
96 };