brcm63xx: convert RTA1320 to dts
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 514-board_ct536_ct5621.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -531,6 +531,58 @@ static struct board_info __initdata boar
4  };
5  
6  
7 +static struct board_info __initdata board_ct536_ct5621 = {
8 +       .name                           = "CT536_CT5621",
9 +       .expected_cpu_id                = 0x6348,
10 +
11 +       .has_uart0                      = 1,
12 +       .has_enet0                      = 0,
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 +       .has_pccard = 1,
26 +       .has_ehci0 = 1,
27 +
28 +       .leds = {
29 +               {
30 +                       .name           = "CT536_CT5621:green:adsl-fail",
31 +                       .gpio           = 2,
32 +                       .active_low     = 1,
33 +               },
34 +               {
35 +                       .name           = "CT536_CT5621:green:power",
36 +                       .gpio           = 0,
37 +                       .active_low     = 1,
38 +                       .default_trigger = "default-on",
39 +               },
40 +       },
41 +       .buttons = {
42 +               {
43 +                       .desc           = "reset",
44 +                       .gpio           = 33,
45 +                       .active_low     = 1,
46 +                       .type           = EV_KEY,
47 +                       .code           = KEY_RESTART,
48 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
49 +               },
50 +       },
51 +
52 +       .fallback_sprom = {
53 +               .type                           = SPROM_BCM4318,
54 +               .pci_bus                        = 0,
55 +               .pci_dev                        = 1,
56 +       },
57 +};
58 +
59  static struct board_info __initdata board_96348gw = {
60         .name                           = "96348GW",
61         .expected_cpu_id                = 0x6348,
62 @@ -1794,6 +1846,7 @@ static const struct board_info __initcon
63         &board_96348sv,
64         &board_V2500V_BB,
65         &board_V2110,
66 +       &board_ct536_ct5621,
67  #endif
68  
69  #ifdef CONFIG_BCM63XX_CPU_6358
70 @@ -1832,6 +1885,8 @@ static struct of_device_id const bcm963x
71         { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
72         { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
73         { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
74 +       { .compatible = "comtrend,ct-536+", .data = &board_ct536_ct5621, },
75 +       { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
76         { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
77         { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
78         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },