e21274c98af3397d18c66ea88eefbbc5d026cf18
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 554-board_DWVS0_leds_buttons.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2378,6 +2378,94 @@ static struct board_info __initdata boar
4  
5         .has_ohci0                      = 1,
6         .has_ehci0                      = 1,
7 +
8 +       .leds = {
9 +               {
10 +                       .name           = "DWV-S0:red:power",
11 +                       .gpio           = 5,
12 +                       .active_low     = 1,
13 +               },
14 +               {
15 +                       .name           = "DWV-S0:green:power",
16 +                       .gpio           = 4,
17 +                       .active_low     = 1,
18 +                       .default_trigger = "default-on",
19 +               },
20 +               {
21 +                       .name           = "DWV-S0:red:internet",
22 +                       .gpio           = 6,
23 +                       .active_low     = 1,
24 +               },
25 +               {
26 +                       .name           = "DWV-S0:green:internet",
27 +                       .gpio           = 7,
28 +                       .active_low     = 1,
29 +               },
30 +               {
31 +                       .name           = "DWV-S0:green:ADSL",
32 +                       .gpio           = 2,
33 +                       .active_low     = 1,
34 +               },
35 +               {
36 +                       .name           = "DWV-S0:red:ADSL",
37 +                       .gpio           = 12,
38 +                       .active_low     = 1,
39 +               },
40 +               {
41 +                       .name           = "DWV-S0:red:wifi",
42 +                       .gpio           = 10,
43 +                       .active_low     = 1,
44 +               },
45 +               {
46 +                       .name           = "DWV-S0:green:VoIP",
47 +                       .gpio           = 9,
48 +                       .active_low     = 1,
49 +               },
50 +               {
51 +                       .name           = "DWV-S0:red:VoIP",
52 +                       .gpio           = 0,
53 +                       .active_low     = 1,
54 +               },
55 +               {
56 +                       .name           = "DWV-S0:red:ethernet",
57 +                       .gpio           = 1,
58 +                       .active_low     = 1,
59 +               },
60 +               {
61 +                       .name           = "DWV-S0:green:ethernet",
62 +                       .gpio           = 8,
63 +                       .active_low     = 1,
64 +               },
65 +               {
66 +                       .name           = "DWV-S0:red:USB",
67 +                       .gpio           = 11,
68 +                       .active_low     = 1,
69 +               },
70 +               {
71 +                       .name           = "DWV-S0:green:USB",
72 +                       .gpio           = 3,
73 +                       .active_low     = 1,
74 +               },
75 +       },
76 +
77 +       .buttons = {
78 +               {
79 +                       .desc           = "reset",
80 +                       .gpio           = 37,
81 +                       .active_low     = 1,
82 +                       .type           = EV_KEY,
83 +                       .code           = KEY_RESTART,
84 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
85 +               },
86 +               {
87 +                       .desc           = "wps",
88 +                       .gpio           = 34,
89 +                       .active_low     = 1,
90 +                       .type           = EV_KEY,
91 +                       .code           = KEY_WPS_BUTTON,
92 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
93 +               },
94 +       },
95  };
96  
97  /* D-Link DSL-274xB revison C2/C3 */