Support for the Mikrotik Groove 52HPn. GPIO 17 appears to be the buzzer. GPIO 14 is a test point to the right of the ethernet port. Everything works except UART, I can receive output from the groove but when i try to transmit keystrokes it seems to struggle on receiving them. I'm guessing there is another driver attempting to use the UART pins? Perhaps they need to be disabled to get proper UART usage? I'm also not sure how to unlock the bottom 2 LED's from the hardware. It appears that the second to last LED is ethernet link, and the last LED is ethernet netdev. Everything else seems to work networking, wireless, etc.
Signed-off-by: Davey Hutchison <[email protected]> --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c 2013-12-16 18:08:51.000000000 +0000 +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c 2014-01-25 04:40:49.000000000 +0000 @@ -174,3 +174,49 @@ } MIPS_MACHINE_NONAME(ATH79_MACH_RB_711GR100, "711Gr100", rb711gr100_setup); + +static struct gpio_led rbgroove_leds_gpio[] __initdata = { + { + .name = "rbgroove:wlan:1", + .gpio = 0, + .active_low = 0, + }, { + .name = "rbgroove:wlan:2", + .gpio = 1, + .active_low = 0, + }, { + .name = "rbgroove:wlan:3", + .gpio = 2, + .active_low = 0, + } +}; + +static void __init rbgroove_setup(void) +{ + const struct rb_info *info; + + info = rb_init_info((void *) KSEG1ADDR(0x1f000000), 0x10000); + if (!info) + return; + + rb711gr100_init_partitions(info); + + ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_MII_GMAC0); + + ath79_register_mdio(0, 0x0); + + ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0); + ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; + ath79_eth0_data.phy_mask = BIT(0); + + ath79_register_eth(0); + rb711gr100_wlan_init(); + + platform_device_register_simple("rb91x-nand", -1, NULL, 0); + + ath79_register_leds_gpio(-1, ARRAY_SIZE(rbgroove_leds_gpio), + rbgroove_leds_gpio); +} + +MIPS_MACHINE(ATH79_MACH_RB_GROOVE, "groove-52", "MikroTik 52HPn", + rbgroove_setup); --- target/linux/ar71xx/patches-3.10/703-MIPS-ath79-add-RB91x-support.patch 2013-12-16 18:08:51.000000000 +0000 +++ target/linux/ar71xx/patches-3.10/703-MIPS-ath79-add-RB91x-support.patch 2014-01-25 05:02:47.000000000 +0000 @@ -5,6 +5,7 @@ ATH79_MACH_RB_493, /* Mikrotik RouterBOARD 493/493AH */ ATH79_MACH_RB_493G, /* Mikrotik RouterBOARD 493G */ + ATH79_MACH_RB_711GR100, /* Mikrotik RouterBOARD 911/912 boards */ ++ ATH79_MACH_RB_GROOVE, /* Mikrotik Groove 52HPn */ ATH79_MACH_RB_750, /* MikroTik RouterBOARD 750 */ ATH79_MACH_RB_750G_R3, /* MikroTik RouterBOARD 750GL */ ATH79_MACH_RB_751, /* MikroTik RouterBOARD 751 */ _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
