brcm63xx: Add DT support for 96368MVWG
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
1 From f0649f7b7c672cf452a1796a1422bf615e1973f8 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Tue, 29 May 2012 11:01:12 +0200
4 Subject: [PATCH] MIPS: BCM63XX: add 963281TAN reference board
5
6 ---
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 71 +++++++++++++++++++++++++++++
8 1 files changed, 71 insertions(+), 0 deletions(-)
9
10 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 @@ -156,6 +156,77 @@ static struct board_info __initdata boar
13 },
14 },
15 };
16 +
17 +static struct board_info __initdata board_963281TAN = {
18 + .name = "963281TAN",
19 + .of_board_id = "brcm,bcm963281TAN",
20 + .expected_cpu_id = 0x6328,
21 +
22 + .has_uart0 = 1,
23 + .has_pci = 1,
24 +
25 + .has_enetsw = 1,
26 +
27 + .enetsw = {
28 + .used_ports = {
29 + [0] = {
30 + .used = 1,
31 + .phy_id = 1,
32 + .name = "Port 1",
33 + },
34 + [1] = {
35 + .used = 1,
36 + .phy_id = 2,
37 + .name = "Port 2",
38 + },
39 + [2] = {
40 + .used = 1,
41 + .phy_id = 3,
42 + .name = "Port 3",
43 + },
44 + [3] = {
45 + .used = 1,
46 + .phy_id = 4,
47 + .name = "Port 4",
48 + },
49 + },
50 + },
51 +
52 + .leds = {
53 + {
54 + .name = "963281TAN::internet",
55 + .gpio = 1,
56 + .active_low = 1,
57 + },
58 + {
59 + .name = "963281TAN::power",
60 + .gpio = 4,
61 + .active_low = 1,
62 + .default_trigger = "default-on",
63 + },
64 + {
65 + .name = "963281TAN::internet-fail",
66 + .gpio = 7,
67 + .active_low = 1,
68 + },
69 + {
70 + .name = "963281TAN::power-fail",
71 + .gpio = 8,
72 + .active_low = 1,
73 + },
74 + {
75 + .name = "963281TAN::wps",
76 + .gpio = 9,
77 + .active_low = 1,
78 + },
79 + {
80 + .name = "963281TAN::dsl",
81 + .gpio = 11,
82 + .active_low = 1,
83 + },
84 +
85 + },
86 +};
87 #endif /* CONFIG_BCM63XX_CPU_6328 */
88
89 /*
90 @@ -2123,6 +2194,7 @@ static const struct board_info __initcon
91 #endif
92 #ifdef CONFIG_BCM63XX_CPU_6328
93 &board_96328avng,
94 + &board_963281TAN,
95 #endif
96 #ifdef CONFIG_BCM63XX_CPU_6338
97 &board_96338gw,