OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "Y1.dtsi"
4  
5 / {
6 compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
7 model = "Lenovo Y1S";
8  
9 gpio_export {
10 compatible = "gpio-export";
11 #size-cells = <0>;
3 office 12 /* GPIO 54、55、56 USB1、2、3 */
1 office 13 usb0 {
14 gpio-export,name = "usb0";
3 office 15 gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
16 gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
1 office 17 };
18 usb1 {
19 gpio-export,name = "usb1";
20 gpio-export,output = <1>;
21 gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
22 };
23 usb2 {
24 gpio-export,name = "usb2";
25 gpio-export,output = <1>;
26 gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
27 };
28 };
29  
3 office 30 gpio-leds {
1 office 31 compatible = "gpio-leds";
32  
33 power1 {
34 label = "y1s:yellow:power";
35 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
36 };
37  
3 office 38 power2 {
1 office 39 label = "y1s:blue:power";
40 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
41 };
42  
43 wlan1 {
44 label = "y1s:yellow:wifi";
45 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
46 };
47  
48 wlan2 {
49 label = "y1s:blue:wifi";
50 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
51 };
52  
53 usb1 {
54 label = "y1s:yellow:usb";
55 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
56 };
57  
58 usb2 {
59 label = "y1s:blue:usb";
60 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
61 };
62  
63 internet {
64 label = "y1s:blue:internet";
65 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69  
70 &ethernet {
71 status = "okay";
72 mtd-mac-address = <&factory 0x4>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
75 mediatek,portmap = "wllll";
76  
77 port@4 {
78 status = "okay";
79 phy-handle = <&phy4>;
80 phy-mode = "rgmii";
81 };
82  
83 port@5 {
84 status = "okay";
85 phy-handle = <&phy5>;
86 phy-mode = "rgmii";
87 };
88  
89 mdio-bus {
90 status = "okay";
91  
92 phy4: ethernet-phy@4 {
93 reg = <4>;
94 phy-mode = "rgmii";
95 };
96  
97 phy5: ethernet-phy@5 {
98 reg = <5>;
99 phy-mode = "rgmii";
100 };
101 };
102 };
103  
104 &gsw {
105 mediatek,port4 = "gmac";
106 };