ramips: add support for indicating the boot state using multiple leds
[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-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 };
15
16 gpio-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 };
28
29 internet {
30 label = "hc5861:blue:internet";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33
34 wlan5g {
35 label = "hc5861:blue:wlan5g";
36 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
37 };
38
39 turbo {
40 label = "hc5861: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 &ethernet {
64 status = "okay";
65 mtd-mac-address = <&factory 0x4>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
68 mediatek,portmap = "wllll";
69
70 port@4 {
71 status = "okay";
72 phy-handle = <&phy4>;
73 phy-mode = "rgmii";
74 };
75
76 port@5 {
77 status = "okay";
78 phy-handle = <&phy5>;
79 phy-mode = "rgmii";
80 };
81
82 mdio-bus {
83 status = "okay";
84
85 phy4: ethernet-phy@4 {
86 reg = <4>;
87 phy-mode = "rgmii";
88 };
89
90 phy5: ethernet-phy@5 {
91 reg = <5>;
92 phy-mode = "rgmii";
93 };
94 };
95 };
96
97 &gsw {
98 mediatek,port4 = "gmac";
99 };