acc73a8ec949b3e3aabb018c4877635dc555ae91
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1.dts
1 #include "mt7620a_lenovo_newifi-y1.dtsi"
2
3 / {
4 compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
5 model = "Lenovo Y1";
6
7 aliases {
8 led-boot = &led_power;
9 led-failsafe = &led_power;
10 led-running = &led_power;
11 led-upgrade = &led_power;
12 label-mac-device = &ethernet;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 led_power: power {
19 function = LED_FUNCTION_POWER;
20 color = <LED_COLOR_ID_BLUE>;
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23
24 wlan1 {
25 label = "blue:wifi";
26 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan2 {
30 label = "blue:wifi5g";
31 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
32 };
33
34 usb {
35 function = LED_FUNCTION_USB;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&ohci_port1>, <&ehci_port1>;
39 linux,default-trigger = "usbport";
40 };
41
42 lan {
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_BLUE>;
45 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
46 };
47
48 internet {
49 label = "blue:internet";
50 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &ethernet {
56 pinctrl-names = "default";
57 pinctrl-0 = <&ephy_pins>;
58
59 nvmem-cells = <&macaddr_factory_28>;
60 nvmem-cell-names = "mac-address";
61
62 mediatek,portmap = "llllw";
63 #include <dt-bindings/leds/common.h>
64
65 };