freebsd-dev/sys/dev/gpio
Ian Lepore 9f8df20c85 Several small fixes for the gpioths (temp/humidity sensor) driver.
At the end of a read cycle, set the gpio pin to INPUT rather than OUTPUT.
The state of the single-wire "bus" when idle should be high; setting the
pin to input allows the external pullup to pull the line high.  Setting it
to output (and leaving it driving low) was leading a good read cycle followed
by one that would fail, and it just continued like that forever, effectively
reading the sensor once every 10 seconds instead of 5.

In the attach function, do an initial read from the device before registering
the sysctls for accessing the last-read values, to prevent reading spurious
values for the first 5 seconds after the driver attaches.

Do a callout_drain() in the detach function to prevent crashes after
unloading the module.
2019-12-08 20:13:42 +00:00
..
dwgpio o Add support for multi-port instances of Synopsys DesignWare APB GPIO 2019-09-04 15:37:24 +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 Implement bus_rescan for gpiobus(4). This allows on-the-fly reconfiguration 2019-12-06 22:32:06 +00:00
gpiobusvar.h Move most of the gpio_pin_* functions from ofw_gpiobus.c to gpiobus.c so 2019-12-01 21:27:09 +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 Remove "all rights reserved" from copyright after getting a response from 2019-12-02 16:15:18 +00:00
gpiokeys_codes.c
gpiokeys.c Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00
gpiokeys.h
gpioled_fdt.c
gpioled.c gpioled: add a new hint for initial state 2019-05-23 11:15:22 +00:00
gpiomdio.c Add a GPIO based MDIO bit-banging bus driver. 2019-12-06 20:21:07 +00:00
gpiopower.c
gpiopps.c Add PNP_INFO to the gpiopps driver. 2019-08-13 15:38:05 +00:00
gpioregulator.c Remove "all rights reserved" from copyright for the file that Jared McNeill 2019-12-03 21:05:33 +00:00
gpiospi.c
gpioths.c Several small fixes for the gpioths (temp/humidity sensor) driver. 2019-12-08 20:13:42 +00:00
ofw_gpiobus.c Move most of the gpio_pin_* functions from ofw_gpiobus.c to gpiobus.c so 2019-12-01 21:27:09 +00:00