ramips: set usb led trigger via devicetree
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / Y1.dts
1 /dts-v1/;
2
3 #include "Y1.dtsi"
4
5 / {
6 compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
7 model = "Lenovo Y1";
8
9 aliases {
10 led-status = &led_power;
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15
16 led_power: power {
17 label = "y1:blue:power";
18 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
19 };
20
21 wlan1 {
22 label = "y1:blue:wifi";
23 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
24 };
25
26 wlan2 {
27 label = "y1:blue:wifi5g";
28 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
29 };
30
31 usb {
32 label = "y1:blue:usb";
33 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&ohci_port1>, <&ehci_port1>;
35 linux,default-trigger = "usbport";
36 };
37
38 lan {
39 label = "y1:blue:lan";
40 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
41 };
42
43 internet {
44 label = "y1:blue:internet";
45 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
46 };
47 };
48 };
49
50 &ethernet {
51 pinctrl-names = "default";
52 pinctrl-0 = <&ephy_pins>;
53 mtd-mac-address = <&factory 0x4>;
54 mediatek,portmap = "llllw";
55 };