summaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/patches-3.6/925-actiontec_leds.patch
blob: f8bc81b5a3ac197dafdf6aba852df713ce3a0189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -465,31 +465,22 @@ static struct gpio_led fb_fon_leds[] = {
 	},
 };
 
-static struct gpio_led gt701_leds[] = {
+static struct gpio_led actiontec_leds[] = {
 	{
 		.name			= "inet:green",
 		.gpio			= 13,
-		.active_low		= 1,
-	},
-	{
-		.name			= "usb",
-		.gpio			= 12,
-		.active_low		= 1,
 	},
 	{
 		.name			= "inet:red",
 		.gpio			= 9,
-		.active_low		= 1,
 	},
 	{
-		.name			= "power:red",
+		.name			= "power:green",
 		.gpio			= 7,
-		.active_low		= 1,
 	},
 	{
-		.name			= "power:green",
+		.name			= "power:red",
 		.gpio			= 8,
-		.active_low		= 1,
 		.default_trigger	= "default-on",
 	},
         {
@@ -497,6 +488,44 @@ static struct gpio_led gt701_leds[] = {
                 .gpio                   = 10,
                 .active_low             = 1,
         },
+        {
+                .name                   = "wifi",
+                .gpio                   = 6,
+                .active_low             = 1,
+        },
+        {
+                .name                   = "wifi:red",
+                .gpio                   = 3,
+        },
+        {
+                .name                   = "standby",
+                .gpio                   = 4,
+        },
+        {
+                .name                   = "wps",
+                .gpio                   = 16,
+                .active_low             = 1,
+        },
+	{
+		.name			= "usb",
+		.gpio			= 12,
+		.active_low		= 1,
+	},
+        {
+                .name                   = "voip",
+                .gpio                   = 15,
+                .active_low             = 1,
+        },
+        {
+                .name                   = "line1",
+                .gpio                   = 23,
+                .active_low             = 1,
+        },
+        {
+                .name                   = "line2",
+                .gpio                   = 25,
+                .active_low             = 1,
+        },
 };
 
 static struct gpio_led_platform_data ar7_led_data;
@@ -540,9 +569,9 @@ static void __init detect_leds(void)
 	} else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) {
 		ar7_led_data.num_leds = ARRAY_SIZE(titan_leds);
 		ar7_led_data.leds = titan_leds;
-	} else if (strstr(prid, "GT701")) {
-		ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds);
-		ar7_led_data.leds = gt701_leds;
+	} else if (strstr(prid, "GT7") || strstr(prid, "PK5000")) {
+		ar7_led_data.num_leds = ARRAY_SIZE(actiontec_leds);
+		ar7_led_data.leds = actiontec_leds;
 	}
 }