ramips: Use dts alias based status led
[openwrt/staging/dedeckeh.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 };
35
36 lan {
37 label = "y1:blue:lan";
38 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
39 };
40
41 internet {
42 label = "y1:blue:internet";
43 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };
47
48 &ethernet {
49 pinctrl-names = "default";
50 pinctrl-0 = <&ephy_pins>;
51 mtd-mac-address = <&factory 0x4>;
52 mediatek,portmap = "llllw";
53 };