2 * Support for COMFAST boards:
3 * - CF-E316N v2 (AR9341)
4 * - CF-E320N v2 (QCA9531)
5 * - CF-E355AC (QCA9531)
6 * - CF-E375AC (QCA9563 + QCA9886 + QCA8337)
7 * - CF-E380AC v1/v2 (QCA9558)
8 * - CF-E520N/CF-E530N (QCA9531)
10 * Copyright (C) 2016 Piotr Dymacz <pepe2k@gmail.com>
11 * Copyright (C) 2016 Gareth Parker <gareth41@orcon.net.nz>
12 * Copyright (C) 2015 Paul Fertser <fercerpav@gmail.com>
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License version 2 as published
16 * by the Free Software Foundation.
19 #include <linux/gpio.h>
20 #include <linux/ar8216_platform.h>
21 #include <linux/platform_data/phy-at803x.h>
22 #include <linux/platform_device.h>
23 #include <linux/timer.h>
25 #include <asm/mach-ath79/ath79.h>
26 #include <asm/mach-ath79/ar71xx_regs.h>
29 #include "dev-ap9x-pci.h"
31 #include "dev-gpio-buttons.h"
32 #include "dev-leds-gpio.h"
33 #include "dev-m25p80.h"
36 #include "machtypes.h"
38 #define CF_EXXXN_KEYS_POLL_INTERVAL 20
39 #define CF_EXXXN_KEYS_DEBOUNCE_INTERVAL (3 * CF_EXXXN_KEYS_POLL_INTERVAL)
42 #define CF_E316N_V2_GPIO_LED_DIAG_B 0
43 #define CF_E316N_V2_GPIO_LED_DIAG_R 2
44 #define CF_E316N_V2_GPIO_LED_DIAG_G 3
45 #define CF_E316N_V2_GPIO_LED_WLAN 12
46 #define CF_E316N_V2_GPIO_LED_WAN 17
47 #define CF_E316N_V2_GPIO_LED_LAN 19
49 #define CF_E316N_V2_GPIO_EXT_WDT 16
51 #define CF_E316N_V2_GPIO_EXTERNAL_PA0 13
52 #define CF_E316N_V2_GPIO_EXTERNAL_PA1 14
54 #define CF_E316N_V2_GPIO_BTN_RESET 20
56 static struct gpio_led cf_e316n_v2_leds_gpio[] __initdata = {
58 .name = "cf-e316n-v2:blue:diag",
59 .gpio = CF_E316N_V2_GPIO_LED_DIAG_B,
62 .name = "cf-e316n-v2:red:diag",
63 .gpio = CF_E316N_V2_GPIO_LED_DIAG_R,
66 .name = "cf-e316n-v2:green:diag",
67 .gpio = CF_E316N_V2_GPIO_LED_DIAG_G,
70 .name = "cf-e316n-v2:blue:wlan",
71 .gpio = CF_E316N_V2_GPIO_LED_WLAN,
74 .name = "cf-e316n-v2:blue:wan",
75 .gpio = CF_E316N_V2_GPIO_LED_WAN,
78 .name = "cf-e316n-v2:blue:lan",
79 .gpio = CF_E316N_V2_GPIO_LED_LAN,
84 static struct gpio_keys_button cf_e316n_v2_gpio_keys[] __initdata = {
89 .debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
90 .gpio = CF_E316N_V2_GPIO_BTN_RESET,
96 #define CF_E320N_V2_GPIO_LED_WLAN 0
97 #define CF_E320N_V2_GPIO_LED_WAN 2
98 #define CF_E320N_V2_GPIO_LED_LAN 3
100 #define CF_E320N_V2_GPIO_HEADER_J9_1 14
101 #define CF_E320N_V2_GPIO_HEADER_J9_2 12
102 #define CF_E320N_V2_GPIO_HEADER_J9_3 11
103 #define CF_E320N_V2_GPIO_HEADER_J9_4 16
105 #define CF_E320N_V2_GPIO_EXT_WDT 13
107 #define CF_E320N_V2_GPIO_BTN_RESET 17
109 static struct gpio_led cf_e320n_v2_leds_gpio[] __initdata = {
111 .name = "cf-e320n-v2:green:lan",
112 .gpio = CF_E320N_V2_GPIO_LED_LAN,
115 .name = "cf-e320n-v2:red:wan",
116 .gpio = CF_E320N_V2_GPIO_LED_WAN,
119 .name = "cf-e320n-v2:blue:wlan",
120 .gpio = CF_E320N_V2_GPIO_LED_WLAN,
125 static struct gpio_keys_button cf_e320n_v2_gpio_keys[] __initdata = {
127 .desc = "Reset button",
130 .debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
131 .gpio = CF_E320N_V2_GPIO_BTN_RESET,
137 #define CF_E355AC_GPIO_LED_LAN 3
138 #define CF_E355AC_GPIO_LED_WLAN2G 0
139 #define CF_E355AC_GPIO_LED_WLAN5G 2
141 #define CF_E355AC_GPIO_EXT_WDT 13
143 #define CF_E355AC_GPIO_BTN_RESET 17
145 static struct gpio_led cf_e355ac_leds_gpio[] __initdata = {
147 .name = "cf-e355ac:green:lan",
148 .gpio = CF_E355AC_GPIO_LED_LAN,
151 .name = "cf-e355ac:blue:wlan2g",
152 .gpio = CF_E355AC_GPIO_LED_WLAN2G,
155 .name = "cf-e355ac:red:wlan5g",
156 .gpio = CF_E355AC_GPIO_LED_WLAN5G,
161 static struct gpio_keys_button cf_e355ac_gpio_keys[] __initdata = {
163 .desc = "Reset button",
166 .debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
167 .gpio = CF_E355AC_GPIO_BTN_RESET,
172 #define CF_E375AC_GPIO_XWDT_TRIGGER 6
174 #define CF_E375AC_GPIO_BTN_RESET_WPS 2
176 #define CF_E375AC_GPIO_LED_WAN 15
177 #define CF_E375AC_GPIO_LED_LAN 17
178 #define CF_E375AC_GPIO_LED_WLAN 16
180 static struct gpio_led cf_e375ac_leds_gpio[] __initdata = {
182 .name = "comfast:red:wan",
183 .gpio = CF_E375AC_GPIO_LED_WAN,
186 .name = "comfast:green:lan",
187 .gpio = CF_E375AC_GPIO_LED_LAN,
190 .name = "comfast:blue:wlan",
191 .gpio = CF_E375AC_GPIO_LED_WLAN,
196 static struct gpio_keys_button cf_e375ac_gpio_keys[] __initdata = {
198 .desc = "Reset button/WPS button",
201 .debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
202 .gpio = CF_E375AC_GPIO_BTN_RESET_WPS,
207 static struct ar8327_pad_cfg cf_e375ac_ar8337_pad0_cfg = {
208 .mode = AR8327_PAD_MAC_SGMII,
209 .sgmii_delay_en = true,
212 static struct ar8327_platform_data cf_e375ac_ar8337_data = {
213 .pad0_cfg = &cf_e375ac_ar8337_pad0_cfg,
216 .speed = AR8327_PORT_SPEED_1000,
223 static struct mdio_board_info cf_e375ac_mdio0_info[] = {
225 .bus_id = "ag71xx-mdio.0",
227 .platform_data = &cf_e375ac_ar8337_data,
231 /* CF-E380AC v1/v2 */
232 #define CF_E380AC_V1V2_GPIO_LED_LAN 0
233 #define CF_E380AC_V1V2_GPIO_LED_WLAN2G 2
234 #define CF_E380AC_V1V2_GPIO_LED_WLAN5G 3
236 #define CF_E380AC_V1V2_GPIO_EXT_WDT 17
238 #define CF_E380AC_V1V2_GPIO_BTN_RESET 19
240 static struct gpio_led cf_e380ac_v1_leds_gpio[] __initdata = {
242 .name = "cf-e380ac-v1:green:lan",
243 .gpio = CF_E380AC_V1V2_GPIO_LED_LAN,
246 .name = "cf-e380ac-v1:blue:wlan2g",
247 .gpio = CF_E380AC_V1V2_GPIO_LED_WLAN2G,
250 .name = "cf-e380ac-v1:red:wlan5g",
251 .gpio = CF_E380AC_V1V2_GPIO_LED_WLAN5G,
256 static struct gpio_led cf_e380ac_v2_leds_gpio[] __initdata = {
258 .name = "cf-e380ac-v2:green:lan",
259 .gpio = CF_E380AC_V1V2_GPIO_LED_LAN,
262 .name = "cf-e380ac-v2:blue:wlan2g",
263 .gpio = CF_E380AC_V1V2_GPIO_LED_WLAN2G,
266 .name = "cf-e380ac-v2:red:wlan5g",
267 .gpio = CF_E380AC_V1V2_GPIO_LED_WLAN5G,
272 static struct gpio_keys_button cf_e380ac_v1v2_gpio_keys[] __initdata = {
274 .desc = "Reset button",
277 .debounce_interval = CF_EXXXN_KEYS_DEBOUNCE_INTERVAL,
278 .gpio = CF_E380AC_V1V2_GPIO_BTN_RESET,
283 static struct at803x_platform_data cf_e380ac_v1v2_at803x_data = {
284 .disable_smarteee = 1,
287 static struct mdio_board_info cf_e380ac_v1v2_mdio0_info[] = {
289 .bus_id = "ag71xx-mdio.0",
291 .platform_data = &cf_e380ac_v1v2_at803x_data,
295 /* CF-E520N/CF-E530N */
296 #define CF_E5X0N_GPIO_LED_WAN 11
297 #define CF_E5X0N_GPIO_BTN_RESET 17
299 static struct gpio_led cf_e520n_leds_gpio[] __initdata = {
301 .name = "cf-e520n:blue:wan",
302 .gpio = CF_E5X0N_GPIO_LED_WAN,
307 static struct gpio_led cf_e530n_leds_gpio[] __initdata = {
309 .name = "cf-e530n:blue:wan",
310 .gpio = CF_E5X0N_GPIO_LED_WAN,
316 * Some COMFAST devices include external hardware watchdog chip,
317 * Pericon Technology PT7A7514, connected to a selected GPIO
318 * and WiSoC RESET_L input. Watchdog time-out is ~1.6 s.
320 #define CF_EXXXN_EXT_WDT_TIMEOUT_MS 500
322 static struct timer_list gpio_wdt_timer;
324 static void gpio_wdt_toggle(unsigned long gpio)
329 gpio_set_value(gpio, state);
331 mod_timer(&gpio_wdt_timer,
332 jiffies + msecs_to_jiffies(CF_EXXXN_EXT_WDT_TIMEOUT_MS));
335 static void __init cf_exxxn_common_setup(unsigned long art_ofs, int gpio_wdt)
337 u8 *art = (u8 *) KSEG1ADDR(0x1f001000 + art_ofs);
340 gpio_request_one(gpio_wdt, GPIOF_OUT_INIT_HIGH,
341 "PT7A7514 watchdog");
343 setup_timer(&gpio_wdt_timer, gpio_wdt_toggle, gpio_wdt);
344 gpio_wdt_toggle(gpio_wdt);
347 ath79_register_m25p80(NULL);
349 ath79_register_wmac(art, NULL);
351 ath79_register_usb();
354 static void __init cf_e316n_v2_setup(void)
356 u8 *mac = (u8 *) KSEG1ADDR(0x1f010000);
358 cf_exxxn_common_setup(0x10000, CF_E316N_V2_GPIO_EXT_WDT);
360 ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
362 ath79_register_mdio(1, 0x0);
364 /* GMAC0 is connected to the PHY0 of the internal switch */
365 ath79_switch_data.phy4_mii_en = 1;
366 ath79_switch_data.phy_poll_mask = BIT(0);
367 ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
368 ath79_eth0_data.phy_mask = BIT(0);
369 ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev;
370 ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
371 ath79_register_eth(0);
373 /* GMAC1 is connected to the internal switch */
374 ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
375 ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
376 ath79_register_eth(1);
378 /* Enable 2x Skyworks SE2576L WLAN power amplifiers */
379 gpio_request_one(CF_E316N_V2_GPIO_EXTERNAL_PA0, GPIOF_OUT_INIT_HIGH,
381 gpio_request_one(CF_E316N_V2_GPIO_EXTERNAL_PA1, GPIOF_OUT_INIT_HIGH,
384 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e316n_v2_leds_gpio),
385 cf_e316n_v2_leds_gpio);
387 ath79_register_gpio_keys_polled(1, CF_EXXXN_KEYS_POLL_INTERVAL,
388 ARRAY_SIZE(cf_e316n_v2_gpio_keys),
389 cf_e316n_v2_gpio_keys);
392 MIPS_MACHINE(ATH79_MACH_CF_E316N_V2, "CF-E316N-V2", "COMFAST CF-E316N v2",
395 static void __init cf_exxxn_qca953x_eth_setup(void)
397 u8 *mac = (u8 *) KSEG1ADDR(0x1f010000);
399 ath79_setup_ar933x_phy4_switch(false, false);
401 ath79_register_mdio(0, 0x0);
403 ath79_switch_data.phy4_mii_en = 1;
404 ath79_switch_data.phy_poll_mask |= BIT(4);
407 ath79_eth1_data.duplex = DUPLEX_FULL;
408 ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
409 ath79_eth1_data.speed = SPEED_1000;
410 ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
411 ath79_register_eth(1);
414 ath79_eth0_data.duplex = DUPLEX_FULL;
415 ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
416 ath79_eth0_data.speed = SPEED_100;
417 ath79_eth0_data.phy_mask = BIT(4);
418 ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
419 ath79_register_eth(0);
422 static void __init cf_e320n_v2_setup(void)
424 cf_exxxn_common_setup(0x10000, CF_E320N_V2_GPIO_EXT_WDT);
426 cf_exxxn_qca953x_eth_setup();
428 /* Disable JTAG (enables GPIO0-3) */
429 ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE);
431 ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_LAN, true);
432 ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_WAN, true);
433 ath79_gpio_direction_select(CF_E320N_V2_GPIO_LED_WLAN, true);
435 ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_LAN, 0);
436 ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_WAN, 0);
437 ath79_gpio_output_select(CF_E320N_V2_GPIO_LED_WLAN, 0);
439 /* Enable GPIO function for GPIOs in J9 header */
440 ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_1, 0);
441 ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_2, 0);
442 ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_3, 0);
443 ath79_gpio_output_select(CF_E320N_V2_GPIO_HEADER_J9_4, 0);
445 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e320n_v2_leds_gpio),
446 cf_e320n_v2_leds_gpio);
448 ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
449 ARRAY_SIZE(cf_e320n_v2_gpio_keys),
450 cf_e320n_v2_gpio_keys);
453 MIPS_MACHINE(ATH79_MACH_CF_E320N_V2, "CF-E320N-V2", "COMFAST CF-E320N v2",
456 static void __init cf_e355ac_setup(void)
458 u8 *art = (u8 *) KSEG1ADDR(0x1f010000);
460 /* Disable JTAG, enabling GPIOs 0-3 */
461 ath79_gpio_function_setup(AR934X_GPIO_FUNC_JTAG_DISABLE, 0);
463 cf_exxxn_common_setup(0x10000, CF_E355AC_GPIO_EXT_WDT);
465 cf_exxxn_qca953x_eth_setup();
467 ath79_gpio_output_select(CF_E355AC_GPIO_LED_LAN, 0);
468 ath79_gpio_output_select(CF_E355AC_GPIO_LED_WLAN2G, 0);
469 ath79_gpio_output_select(CF_E355AC_GPIO_LED_WLAN5G, 0);
471 ap91_pci_init(art + 0x5000, NULL);
473 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e355ac_leds_gpio),
474 cf_e355ac_leds_gpio);
476 ath79_register_gpio_keys_polled(1, CF_EXXXN_KEYS_POLL_INTERVAL,
477 ARRAY_SIZE(cf_e355ac_gpio_keys),
478 cf_e355ac_gpio_keys);
481 MIPS_MACHINE(ATH79_MACH_CF_E355AC, "CF-E355AC", "COMFAST CF-E355AC",
484 static void __init cf_e375ac_setup(void)
486 u8 *mac = (u8 *) KSEG1ADDR(0x1f040000);
487 u8 *art = (u8 *) KSEG1ADDR(0x1f040000);
488 u8 wlan1_mac[ETH_ALEN];
490 ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
491 ath79_init_mac(ath79_eth1_data.mac_addr, mac, 1);
492 ath79_init_mac(wlan1_mac, art, 3);
494 /* Disable JTAG, enabling GPIOs 0-3 */
495 /* Configure OBS4 line, for GPIO 4*/
496 ath79_gpio_function_setup(AR934X_GPIO_FUNC_JTAG_DISABLE, 0);
498 cf_exxxn_common_setup(0x40000, CF_E375AC_GPIO_XWDT_TRIGGER);
500 ath79_gpio_output_select(CF_E375AC_GPIO_LED_WAN, 0);
501 ath79_gpio_output_select(CF_E375AC_GPIO_LED_LAN, 0);
502 ath79_gpio_output_select(CF_E375AC_GPIO_LED_WLAN, 0);
504 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e375ac_leds_gpio),
505 cf_e375ac_leds_gpio);
506 ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
507 ARRAY_SIZE(cf_e375ac_gpio_keys),
508 cf_e375ac_gpio_keys);
510 platform_device_register(&ath79_mdio0_device);
512 mdiobus_register_board_info(cf_e375ac_mdio0_info,
513 ARRAY_SIZE(cf_e375ac_mdio0_info));
515 /* GMAC0 is connected to an AR8337 switch */
516 ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
517 ath79_eth0_data.speed = SPEED_1000;
518 ath79_eth0_data.duplex = DUPLEX_FULL;
519 ath79_eth0_data.phy_mask = BIT(0);
520 ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
521 ath79_register_eth(0);
523 ap91_pci_init(art + 0x5000, wlan1_mac);
525 MIPS_MACHINE(ATH79_MACH_CF_E375AC, "CF-E375AC", "COMFAST CF-E375AC", cf_e375ac_setup);
527 static void __init cf_e380ac_v1v2_common_setup(unsigned long art_ofs)
529 u8 *mac = (u8 *) KSEG1ADDR(0x1f000000 + art_ofs);
531 cf_exxxn_common_setup(art_ofs, CF_E380AC_V1V2_GPIO_EXT_WDT);
533 ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);
535 ath79_register_mdio(0, 0x0);
536 mdiobus_register_board_info(cf_e380ac_v1v2_mdio0_info,
537 ARRAY_SIZE(cf_e380ac_v1v2_mdio0_info));
540 ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
541 ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
542 ath79_eth0_data.phy_mask = BIT(0);
543 ath79_eth0_pll_data.pll_1000 = 0xbe000000;
544 ath79_eth0_pll_data.pll_100 = 0xb0000101;
545 ath79_eth0_pll_data.pll_10 = 0xb0001313;
546 ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
547 ath79_register_eth(0);
549 ap91_pci_init(mac + 0x5000, NULL);
551 /* Disable JTAG (enables GPIO0-3) */
552 ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE);
554 ath79_gpio_direction_select(CF_E380AC_V1V2_GPIO_LED_LAN, true);
555 ath79_gpio_direction_select(CF_E380AC_V1V2_GPIO_LED_WLAN2G, true);
556 ath79_gpio_direction_select(CF_E380AC_V1V2_GPIO_LED_WLAN5G, true);
558 ath79_gpio_output_select(CF_E380AC_V1V2_GPIO_LED_LAN, 0);
559 ath79_gpio_output_select(CF_E380AC_V1V2_GPIO_LED_WLAN2G, 0);
560 ath79_gpio_output_select(CF_E380AC_V1V2_GPIO_LED_WLAN5G, 0);
563 ath79_gpio_function_disable(AR934X_GPIO_FUNC_CLK_OBS4_EN);
565 ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
566 ARRAY_SIZE(cf_e380ac_v1v2_gpio_keys),
567 cf_e380ac_v1v2_gpio_keys);
570 static void __init cf_e380ac_v1_setup(void)
572 cf_e380ac_v1v2_common_setup(0x20000);
574 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e380ac_v1_leds_gpio),
575 cf_e380ac_v1_leds_gpio);
578 MIPS_MACHINE(ATH79_MACH_CF_E380AC_V1, "CF-E380AC-V1", "COMFAST CF-E380AC v1",
581 static void __init cf_e380ac_v2_setup(void)
583 cf_e380ac_v1v2_common_setup(0x40000);
585 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e380ac_v2_leds_gpio),
586 cf_e380ac_v2_leds_gpio);
589 MIPS_MACHINE(ATH79_MACH_CF_E380AC_V2, "CF-E380AC-V2", "COMFAST CF-E380AC v2",
592 static void __init cf_e5x0n_gpio_setup(void)
594 ath79_gpio_direction_select(CF_E5X0N_GPIO_LED_WAN, true);
596 ath79_gpio_output_select(CF_E5X0N_GPIO_LED_WAN, 0);
598 ath79_register_gpio_keys_polled(-1, CF_EXXXN_KEYS_POLL_INTERVAL,
599 ARRAY_SIZE(cf_e320n_v2_gpio_keys),
600 cf_e320n_v2_gpio_keys);
603 static void __init cf_e520n_setup(void)
605 cf_exxxn_common_setup(0x10000, -1);
607 cf_exxxn_qca953x_eth_setup();
609 cf_e5x0n_gpio_setup();
611 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e520n_leds_gpio),
615 MIPS_MACHINE(ATH79_MACH_CF_E520N, "CF-E520N", "COMFAST CF-E520N",
618 static void __init cf_e530n_setup(void)
620 cf_exxxn_common_setup(0x10000, -1);
622 cf_exxxn_qca953x_eth_setup();
624 cf_e5x0n_gpio_setup();
626 ath79_register_leds_gpio(-1, ARRAY_SIZE(cf_e530n_leds_gpio),
630 MIPS_MACHINE(ATH79_MACH_CF_E530N, "CF-E530N", "COMFAST CF-E530N",