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