brcm63xx: Add DT support for A4001N
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 505-board_spw500v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -653,6 +653,75 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_spw500v = {
9 + .name = "SPW500V",
10 + .of_board_id = "t-com,spw500v",
11 + .expected_cpu_id = 0x6348,
12 +
13 + .has_uart0 = 1,
14 + .has_enet0 = 1,
15 + .has_pci = 1,
16 + .use_fallback_sprom = 1,
17 +
18 + .enet0 = {
19 + .has_phy = 1,
20 + .use_internal_phy = 1,
21 + },
22 +
23 + .has_dsp = 1,
24 + .dsp = {
25 + .gpio_rst = 6,
26 + .gpio_int = 34,
27 + .ext_irq = 2,
28 + .cs = 2,
29 + },
30 +
31 + .leds = {
32 + {
33 + .name = "SPW500V:red:power",
34 + .gpio = 1,
35 + .active_low = 1,
36 + },
37 + {
38 + .name = "SPW500V:green:power",
39 + .gpio = 0,
40 + .active_low = 1,
41 + .default_trigger = "default-on",
42 + },
43 + {
44 + .name = "SPW500V:green:ppp",
45 + .gpio = 3,
46 + .active_low = 1,
47 + },
48 + { .name = "SPW500V:green:pstn",
49 + .gpio = 28,
50 + .active_low = 1,
51 + },
52 + {
53 + .name = "SPW500V:green:voip",
54 + .gpio = 32,
55 + .active_low = 1,
56 + },
57 + },
58 +
59 + .buttons = {
60 + {
61 + .desc = "reset",
62 + .gpio = 33,
63 + .active_low = 1,
64 + .type = EV_KEY,
65 + .code = KEY_RESTART,
66 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
67 + },
68 + },
69 +
70 + .fallback_sprom = {
71 + .type = SPROM_BCM4318,
72 + .pci_bus = 0,
73 + .pci_dev = 1,
74 + },
75 +};
76 #endif /* CONFIG_BCM63XX_CPU_6348 */
77
78 /*
79 @@ -1252,6 +1321,7 @@ static const struct board_info __initcon
80 &board_96348gw_a,
81 &board_rta1025w_16,
82 &board_96348_D4PW,
83 + &board_spw500v,
84 #endif
85
86 #ifdef CONFIG_BCM63XX_CPU_6358