f61280b7554dad0a59c63fe6c72c5854b80ca4de
[openwrt/openwrt.git] / target / linux / ramips / dts / Y1S.dts
1 /dts-v1/;
2
3 /include/ "Y1.dtsi"
4
5 / {
6 compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
7 model = "Lenovo Y1S";
8
9 ethernet@10100000 {
10 status = "okay";
11 mtd-mac-address = <&factory 0x4>;
12 pinctrl-names = "default";
13 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
14 ralink,port-map = "wllll";
15
16 port@4 {
17 status = "okay";
18 phy-handle = <&phy4>;
19 phy-mode = "rgmii";
20 };
21
22 port@5 {
23 status = "okay";
24 phy-handle = <&phy5>;
25 phy-mode = "rgmii";
26 };
27
28 mdio-bus {
29 status = "okay";
30
31 phy4: ethernet-phy@4 {
32 reg = <4>;
33 phy-mode = "rgmii";
34 };
35
36 phy5: ethernet-phy@5 {
37 reg = <5>;
38 phy-mode = "rgmii";
39 };
40 };
41 };
42
43 gsw@10110000 {
44 ralink,port4 = "gmac";
45 };
46
47 gpio-leds {
48 compatible = "gpio-leds";
49
50 power1 {
51 label = "y1s:yellow:power";
52 gpios = <&gpio0 14 1>;
53 };
54
55 power2 {
56 label = "y1s:blue:power";
57 gpios = <&gpio0 9 1>;
58 };
59
60 wlan1 {
61 label = "y1s:yellow:wifi";
62 gpios = <&gpio3 0 1>;
63 };
64
65 wlan2 {
66 label = "y1s:blue:wifi";
67 gpios = <&gpio2 10 1>;
68 };
69
70 usb1 {
71 label = "y1s:yellow:usb";
72 gpios = <&gpio2 13 1>;
73 };
74
75 usb2 {
76 label = "y1s:blue:usb";
77 gpios = <&gpio2 12 1>;
78 };
79
80 internet {
81 label = "y1s:blue:internet";
82 gpios = <&gpio2 11 1>;
83 };
84 };
85 };