OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 4... Line 4...
4   4  
5 / { 5 / {
6 compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc"; 6 compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
Line 7... Line -...
7 model = "Lenovo Y1S"; -  
8   -  
9 aliases { -  
10 led-boot = &led_power_blue; -  
11 led-failsafe = &led_power_blue; -  
12 led-running = &led_power_blue; -  
13 led-upgrade = &led_power_blue; -  
14 }; 7 model = "Lenovo Y1S";
15   8  
16 gpio_export { 9 gpio_export {
17 compatible = "gpio-export"; -  
-   10 compatible = "gpio-export";
18 #size-cells = <0>; 11 #size-cells = <0>;
19   12 /* GPIO 54、55、56 USB1、2、3 */
20 usb0 { 13 usb0 {
21 gpio-export,name = "usb0"; 14 gpio-export,name = "usb0";
22 gpio-export,output = <1>; 15 gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
23 gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; 16 gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
24 }; 17 };
25 usb1 { 18 usb1 {
26 gpio-export,name = "usb1"; 19 gpio-export,name = "usb1";
Line 32... Line 25...
32 gpio-export,output = <1>; 25 gpio-export,output = <1>;
33 gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>; 26 gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
34 }; 27 };
35 }; 28 };
Line 36... Line 29...
36   29  
37 leds { 30 gpio-leds {
Line 38... Line 31...
38 compatible = "gpio-leds"; 31 compatible = "gpio-leds";
39   32  
40 power1 { 33 power1 {
41 label = "y1s:yellow:power"; 34 label = "y1s:yellow:power";
Line 42... Line 35...
42 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 35 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
43 }; 36 };
44   37  
45 led_power_blue: power2 { 38 power2 {
Line 46... Line 39...
46 label = "y1s:blue:power"; 39 label = "y1s:blue:power";
Line 63... Line 56...
63 }; 56 };
Line 64... Line 57...
64   57  
65 usb2 { 58 usb2 {
66 label = "y1s:blue:usb"; 59 label = "y1s:blue:usb";
67 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; -  
68 trigger-sources = <&ohci_port1>, <&ehci_port1>; -  
69 linux,default-trigger = "usbport"; 60 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
Line 70... Line 61...
70 }; 61 };
71   62  
72 internet { 63 internet {