254472f72cfe0737ef2db548cc5e6c4ec8b04621
[openwrt/staging/robimarko.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1s.dts
1 #include "mt7620a_lenovo_newifi-y1.dtsi"
2
3 / {
4 compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
5 model = "Lenovo Y1S";
6
7 aliases {
8 led-boot = &led_power_blue;
9 led-failsafe = &led_power_blue;
10 led-running = &led_power_blue;
11 led-upgrade = &led_power_blue;
12 label-mac-device = &ethernet;
13 };
14
15 gpio_export {
16 compatible = "gpio-export";
17 #size-cells = <0>;
18
19 usb0 {
20 gpio-export,name = "usb0";
21 gpio-export,output = <1>;
22 gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
23 };
24 usb1 {
25 gpio-export,name = "usb1";
26 gpio-export,output = <1>;
27 gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
28 };
29 usb2 {
30 gpio-export,name = "usb2";
31 gpio-export,output = <1>;
32 gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 power1 {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_YELLOW>;
42 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
43 };
44
45 led_power_blue: power2 {
46 function = LED_FUNCTION_POWER;
47 color = <LED_COLOR_ID_BLUE>;
48 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan1 {
52 label = "yellow:wifi";
53 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
54 };
55
56 wlan2 {
57 label = "blue:wifi";
58 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
59 };
60
61 usb1 {
62 function = LED_FUNCTION_USB;
63 color = <LED_COLOR_ID_YELLOW>;
64 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
65 };
66
67 usb2 {
68 function = LED_FUNCTION_USB;
69 color = <LED_COLOR_ID_BLUE>;
70 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
71 trigger-sources = <&ohci_port1>, <&ehci_port1>;
72 linux,default-trigger = "usbport";
73 };
74
75 internet {
76 label = "blue:internet";
77 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
78 };
79 };
80 };
81
82 &ethernet {
83 pinctrl-names = "default";
84 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
85
86 nvmem-cells = <&macaddr_factory_28>;
87 nvmem-cell-names = "mac-address";
88
89 mediatek,portmap = "wllll";
90
91 port@4 {
92 status = "okay";
93 phy-handle = <&phy4>;
94 phy-mode = "rgmii";
95 };
96
97 port@5 {
98 status = "okay";
99 phy-handle = <&phy5>;
100 phy-mode = "rgmii";
101 };
102
103 mdio-bus {
104 status = "okay";
105
106 phy4: ethernet-phy@4 {
107 reg = <4>;
108 phy-mode = "rgmii";
109 };
110
111 phy5: ethernet-phy@5 {
112 reg = <5>;
113 phy-mode = "rgmii";
114 };
115 };
116 };
117
118 &gsw {
119 mediatek,port4-gmac;
120 mediatek,ephy-base = /bits/ 8 <8>;
121 #include <dt-bindings/leds/common.h>
122
123 };