brcm63xx: Add DT support for CT-5365
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 506-board_gw6200_gw6000.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -512,6 +512,114 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_gw6200 = {
8 +       .name                           = "GW6200",
9 +       .of_board_id                    = "tecom,gw6200",
10 +       .expected_cpu_id                = 0x6348,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_enet0                      = 1,
14 +       .has_enet1                      = 1,
15 +       .has_pci                        = 1,
16 +
17 +       .enet0 = {
18 +               .has_phy                = 1,
19 +               .use_internal_phy       = 1,
20 +       },
21 +       .enet1 = {
22 +               .force_speed_100        = 1,
23 +               .force_duplex_full      = 1,
24 +       },
25 +
26 +       .has_ohci0 = 1,
27 +
28 +       .has_dsp                        = 1,
29 +               .dsp = {
30 +               .gpio_rst               = 8, /* FIXME: What is real GPIO here? */
31 +               .gpio_int               = 34,
32 +               .ext_irq                = 2,
33 +               .cs                     = 2,
34 +       },
35 +
36 +       .leds = {
37 +               {
38 +                       .name           = "GW6200:green:line1",
39 +                       .gpio           = 4,
40 +                       .active_low     = 1,
41 +               },
42 +               {
43 +                       .name           = "GW6200:green:line2",
44 +                       .gpio           = 5,
45 +                       .active_low     = 1,
46 +               },
47 +               {
48 +                       .name           = "GW6200:green:line3",
49 +                       .gpio           = 6,
50 +                       .active_low     = 1,
51 +               },
52 +               {
53 +                       .name           = "GW6200:green:tel",
54 +                       .gpio           = 7,
55 +                       .active_low     = 1,
56 +               },
57 +       },
58 +       .buttons = {
59 +               {
60 +                       .desc           = "reset",
61 +                       .gpio           = 36,
62 +                       .active_low     = 1,
63 +                       .type           = EV_KEY,
64 +                       .code           = KEY_RESTART,
65 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
66 +               },
67 +       },
68 +};
69 +
70 +static struct board_info __initdata board_gw6000 = {
71 +       .name                           = "GW6000",
72 +       .of_board_id                    = "tecom,gw6000",
73 +       .expected_cpu_id                = 0x6348,
74 +
75 +       .has_uart0                      = 1,
76 +       .has_enet0                      = 1,
77 +       .has_enet1                      = 1,
78 +       .has_pci                        = 1,
79 +
80 +       .enet0 = {
81 +               .has_phy                = 1,
82 +               .use_internal_phy       = 1,
83 +       },
84 +       .enet1 = {
85 +               .force_speed_100        = 1,
86 +               .force_duplex_full      = 1,
87 +       },
88 +
89 +       .has_ohci0 = 1,
90 +
91 +       .has_dsp                        = 1,
92 +       .dsp = {
93 +               .gpio_rst               = 6,
94 +               .gpio_int               = 34,
95 +               .ext_irq                = 2,
96 +               .cs                     = 2,
97 +       },
98 +
99 +       /* GW6000 has no GPIO-controlled leds */
100 +
101 +       .buttons = {
102 +               {
103 +                       .desc           = "reset",
104 +                       .gpio           = 36,
105 +                       .active_low     = 1,
106 +                       .type           = EV_KEY,
107 +                       .code           = KEY_RESTART,
108 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
109 +               },
110 +       },
111 +};
112 +
113 +
114 +
115  static struct board_info __initdata board_FAST2404 = {
116         .name                           = "F@ST2404",
117         .of_board_id                    = "sagem,f@st2404",
118 @@ -1314,6 +1422,8 @@ static const struct board_info __initcon
119  #ifdef CONFIG_BCM63XX_CPU_6348
120         &board_96348r,
121         &board_96348gw,
122 +       &board_gw6000,
123 +       &board_gw6200,
124         &board_96348gw_10,
125         &board_96348gw_11,
126         &board_FAST2404,