brcm63xx: Add DT support for CT-5365
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 530-board_A4001N1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -236,6 +236,133 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_A4001N1 = {
8 + .name = "963281T_TEF",
9 + .expected_cpu_id = 0x6328,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .use_fallback_sprom = 1,
14 + .has_ohci0 = 1,
15 + .has_ehci0 = 1,
16 + .num_usbh_ports = 1,
17 + .has_enetsw = 1,
18 +
19 + .enetsw = {
20 + .used_ports = {
21 + [0] = {
22 + .used = 1,
23 + .phy_id = 1,
24 + .name = "Port 1",
25 + },
26 + [1] = {
27 + .used = 1,
28 + .phy_id = 2,
29 + .name = "Port 2",
30 + },
31 + [2] = {
32 + .used = 1,
33 + .phy_id = 3,
34 + .name = "Port 3",
35 + },
36 + [3] = {
37 + .used = 1,
38 + .phy_id = 4,
39 + .name = "Port 4",
40 + },
41 + },
42 + },
43 +
44 + .leds = {
45 + {
46 + .name = "A4001N1:green:power",
47 + .gpio = 4,
48 + .active_low = 1,
49 + .default_trigger = "default-on",
50 + },
51 + {
52 + .name = "A4001N1:red:power",
53 + .gpio = 8,
54 + .active_low = 1,
55 + },
56 + {
57 + .name = "A4001N1:green:inet",
58 + .gpio = 11,
59 + .active_low = 1,
60 + },
61 + {
62 + .name = "A4001N1:red:inet",
63 + .gpio = 2,
64 + .active_low = 1,
65 + },
66 + {
67 + .name = "A4001N1:green:ppp",
68 + .gpio = 3,
69 + .active_low = 1,
70 + },
71 + {
72 + .name = "A4001N1:red:ppp",
73 + .gpio = 5,
74 + .active_low = 1,
75 + },
76 + {
77 + .name = "A4001N1:green:3g",
78 + .gpio = 6,
79 + .active_low = 1,
80 + },
81 + {
82 + .name = "A4001N1:red:3g",
83 + .gpio = 7,
84 + .active_low = 1,
85 + },
86 + {
87 + .name = "A4001N1:green:wlan",
88 + .gpio = 9,
89 + .active_low = 1,
90 + },
91 + {
92 + .name = "A4001N1:red:wlan",
93 + .gpio = 10,
94 + .active_low = 1,
95 + },
96 + {
97 + .name = "A4001N1:green:eth",
98 + .gpio = 31,
99 + .active_low = 1,
100 + },
101 + {
102 + .name = "A4001N1:red:eth",
103 + .gpio = 20,
104 + .active_low = 1,
105 + },
106 + },
107 +
108 + .buttons = {
109 + {
110 + .desc = "reset",
111 + .gpio = 23,
112 + .active_low = 1,
113 + .type = EV_KEY,
114 + .code = KEY_RESTART,
115 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
116 + },
117 + {
118 + .desc = "wlan",
119 + .gpio = 24,
120 + .active_low = 1,
121 + .type = EV_KEY,
122 + .code = KEY_WLAN,
123 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
124 + },
125 + },
126 +
127 + .fallback_sprom = {
128 + .type = SPROM_BCM43225,
129 + .pci_bus = 1,
130 + .pci_dev = 0,
131 + },
132 +};
133 +
134 static struct board_info __initdata board_dsl_274xb_f1 = {
135 .name = "AW4339U",
136 .expected_cpu_id = 0x6328,
137 @@ -2694,6 +2821,7 @@ static const struct board_info __initcon
138 #ifdef CONFIG_BCM63XX_CPU_6328
139 &board_96328avng,
140 &board_963281TAN,
141 + &board_A4001N1,
142 &board_dsl_274xb_f1,
143 #endif
144 #ifdef CONFIG_BCM63XX_CPU_6338