freebsd-skq/sys/dev/gpio
avg ade6eac179 gpiobus: provide a new hint, pin_list
"pin_list" allows to specify child pins as a list of pin numbers.
Existing hint "pins" serves the same purpose but with a 32-bit wide bit
mask.  One problem with that is that a controller can have more than 32
pins.  One example is amdgpio.  Also, a list of numbers is a little bit
more human friendly than a matching bit mask.  As a side note, it seems
that in FDT pins are typically specified by their numbers as well.

This commit also adds accessors for instance variables (IVARs) that
define the child pins.  My primary goal is to allow a child to be
configured programmatically rather than via hints (assuming that FDT is
not supported on a platform).  Also, while a child should not care about
specific pin numbers that are allocated to it, it could be interested in
how many were actually assigned to it.

While there, I removed "flags" instance variable.  It was unused.

Reviewed by:	mizhka
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D20459
2019-06-27 15:46:06 +00:00
..
bytgpio.c Distinguish _CID match and _HID match and make lower priority probe 2018-10-26 00:05:46 +00:00
chvgpio_reg.h
chvgpio.c Distinguish _CID match and _HID match and make lower priority probe 2018-10-26 00:05:46 +00:00
gpio_if.m
gpiobacklight.c
gpiobus_if.m
gpiobus.c gpiobus: provide a new hint, pin_list 2019-06-27 15:46:06 +00:00
gpiobusvar.h gpiobus: provide a new hint, pin_list 2019-06-27 15:46:06 +00:00
gpioc.c Fix typo: the 4th argument to GPIO_PIN_ACCESS_32 is the set of pins to 2019-04-25 22:27:56 +00:00
gpioiic.c
gpiokeys_codes.c
gpiokeys.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
gpiokeys.h
gpioled_fdt.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
gpioled.c gpioled: add a new hint for initial state 2019-05-23 11:15:22 +00:00
gpiopower.c
gpiopps.c
gpioregulator.c Zero the GPIO regulator pins memory. 2019-06-06 20:54:09 +00:00
gpiospi.c
gpioths.c
ofw_gpiobus.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00