summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/gpiokeys.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix detach routine for gpiokeysgonzo2016-05-121-3/+14
| | | | | - Release pin only when all per=key callouts are stopped - Unregister keyboard when detaching device node
* Add OF_prop_free function as a counterpart for OF_*prop_allocgonzo2016-05-111-4/+4
| | | | | | | | | | | | | | | | - Introduce new OF API function OF_prop_free to free memory allocated by OF_getprop_alloc and OF_getencprop_alloc. Current code just calls free(9) with M_OFWPROP memory class which assumes knowledge about OF_*prop_alloc functions' internals and leads to unneccessary code coupling - Convert some of the free(..., M_OFWPROP) instances to OF_prop_free Files affected by this commit are the ones I was able to test on real hardware. The rest of free(..., M_OFWPROP) instances will be handled with idividual maintainers Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D6315
* Add gpiokeys drivergonzo2016-05-111-0/+1006
gpiokey driver implements functional subset of gpiokeys device-tree bindings: https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt It acts as a virtual keyboard, so keys are visible through kbdmux(4) Driver maps linux scancodes for most common keys to FreeBSD scancodes and also extends spec by introducing freebsd,code property to specify FreeBSD-native scancodes. Reviewed by: mmel, jmcneill Differential Revision: https://reviews.freebsd.org/D6279
OpenPOWER on IntegriCloud