brcm63xx: Add DT support for HG553
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 516-board_96348A-122.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -592,6 +592,77 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_96348A_122 = {
8 +       .name                           = "96348A-122",
9 +       .of_board_id                    = "comtrend,ct-5365",
10 +       .expected_cpu_id                = 0x6348,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_enet1                      = 1,
14 +       .has_pci                        = 1,
15 +       .use_fallback_sprom             = 1,
16 +
17 +       .enet1 = {
18 +               .has_phy                = 1,
19 +               .phy_id                 = 0,
20 +               .force_speed_100        = 1,
21 +               .force_duplex_full      = 1,
22 +       },
23 +
24 +       .has_ohci0 = 1,
25 +
26 +       .leds = {
27 +               {
28 +                       .name           = "96348A-122:green:power",
29 +                       .gpio           = 0,
30 +                       .active_low     = 1,
31 +                       .default_trigger = "default-on",
32 +               },
33 +               {
34 +                       .name           = "96348A-122:red:alarm",
35 +                       .gpio           = 2,
36 +                       .active_low     = 1,
37 +               },
38 +               {
39 +                       .name           = "96348A-122:green:wps",
40 +                       .gpio           = 6,
41 +                       .active_low     = 1,
42 +               },
43 +       },
44 +       .buttons = {
45 +               {
46 +                       .desc           = "reset",
47 +                       .gpio           = 33,
48 +                       .active_low     = 1,
49 +                       .type           = EV_KEY,
50 +                       .code           = KEY_RESTART,
51 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
52 +               },
53 +               {
54 +                       .desc           = "wlan",
55 +                       .gpio           = 34,
56 +                       .active_low     = 1,
57 +                       .type           = EV_KEY,
58 +                       .code           = KEY_WLAN,
59 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
60 +               },
61 +               {
62 +                       .desc           = "wps",
63 +                       .gpio           = 35,
64 +                       .active_low     = 1,
65 +                       .type           = EV_KEY,
66 +                       .code           = KEY_WPS_BUTTON,
67 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
68 +               },
69 +       },
70 +
71 +       .fallback_sprom = {
72 +               .type                           = SPROM_BCM4318,
73 +               .pci_bus                        = 0,
74 +               .pci_dev                        = 1,
75 +       },
76 +};
77 +
78  static struct board_info __initdata board_96348gw = {
79         .name                           = "96348GW",
80         .of_board_id                    = "brcm,bcm96348gw",
81 @@ -1865,6 +1936,7 @@ static const struct board_info __initcon
82         &board_V2500V_BB,
83         &board_V2110,
84         &board_ct536_ct5621,
85 +       &board_96348A_122,
86  #endif
87  
88  #ifdef CONFIG_BCM63XX_CPU_6358