Date: Sat, 13 Apr 2013 10:24:36 GMT From: Petko Bordjukov <bordjukov@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/177832: [mips] [gpio] GPIO and RF LED do not function on UBNT Routerstation Message-ID: <201304131024.r3DAOal0051678@red.freebsd.org> Resent-Message-ID: <201304131030.r3DAU0ZZ040225@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177832 >Category: kern >Synopsis: [mips] [gpio] GPIO and RF LED do not function on UBNT Routerstation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 13 10:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Petko Bordjukov >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD rtrf3n 10.0-CURRENT FreeBSD 10.0-CURRENT #39 r249144M: Fri Apr 5 14:04:07 EEST 2013 root@virtbsd10:/usr/obj/mips.mips/usr/src/sys/ROUTERSTATION mips >Description: The current configuration of the kernel for the UBNT Routerstation does not allow proper GPIO control. >How-To-Repeat: # echo 1 > /dev/led/rf or # gpioctl -f /dev/gpioc0 -l >Fix: Copy over to ROUTERSTATION.hints the portion of RSPRO.hints that remedies this issue. Patch attached with submission follows: Index: ROUTERSTATION.hints =================================================================== --- ROUTERSTATION.hints (revision 249406) +++ ROUTERSTATION.hints (working copy) @@ -12,6 +12,24 @@ # Uncomment this hint for RS (not PRO) hint.arge.1.phymask=0x30000 +# Don't flip on anything that isn't already enabled. +# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're +# not used here. +hint.gpio.0.function_set=0x00000000 +hint.gpio.0.function_clear=0x00000000 + +# These are the GPIO LEDs and buttons which can be software controlled. +hint.gpio.0.pinmask=0x000000ff + +# GPIO 0: Pin 1 +# GPIO 1: Pin 2 +# GPIO 2: RF LED +# GPIO 3: Pin 3 +# GPIO 4: Pin 4 +# GPIO 5: Pin 5 +# GPIO 6: Pin 6 +# GPIO 7: Pin 7 + # RF led hint.gpioled.0.at="gpiobus0" hint.gpioled.0.name="rf" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304131024.r3DAOal0051678>