Author: adrian Date: Sun Apr 12 00:02:32 2015 New Revision: 281445 URL: https://svnweb.freebsd.org/changeset/base/281445
Log: Start enabling the available GPIO pins on the Carambola 2. The carambola2 exposes all the gpio pins, but some are reserved for core functions (eg usb, ethernet, etc.) Others are configured by default to be available as normal GPIO pins to do interesting things with. GPIO 18->23 is the I2S, SLIC and SPDIF device pins, but none of those are currently used. So, just allow those to show up. Tested: * AR9344, Carambola 2 * (.. bitbang SPI to an Adafruit LCD via libgpio, because FreeBSD could do with more shiny output devices that aren't network interfaces.) TODO: There are some other pins aren't currently included here, but should be. The LED pins are for the internal switch inside the AR9344. * GPIO 0+1 are "LED0 + LED1", but they're tied to high for bootstrapping. * GPIO 13-17 are "LED2..7", but they're tied (H, L, L, L, H) for bootstrapping. * GPIO 11 and 12 are UART RTS/CTS or I2S; but GPIO 12 is tied L for bootstrap. Modified: head/sys/mips/conf/CARAMBOLA2.hints Modified: head/sys/mips/conf/CARAMBOLA2.hints ============================================================================== --- head/sys/mips/conf/CARAMBOLA2.hints Sat Apr 11 22:57:13 2015 (r281444) +++ head/sys/mips/conf/CARAMBOLA2.hints Sun Apr 12 00:02:32 2015 (r281445) @@ -98,19 +98,4 @@ 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=0x001c02ae -hint.gpio.0.pinmask=0x00001803 - -# gpio0 - WLAN LED -# gpio1 - USB LED -# gpio11 - Jumpstart button -# gpio12 - Reset button - -# LEDs are configured separately and driven by the LED device -hint.gpioled.0.at="gpiobus0" -hint.gpioled.0.name="wlan" -hint.gpioled.0.pins=0x0001 - -hint.gpioled.1.at="gpiobus0" -hint.gpioled.1.name="usb" -hint.gpioled.1.pins=0x0002 +hint.gpio.0.pinmask=0x00fc1803 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"