summaryrefslogtreecommitdiff
path: root/sys/dev/gpio
AgeCommit message (Collapse)Author
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2013-04-19In {gpio,gdium}iic_bb_read_bits(), report the state of the SCL bit in additionMiod Vallat
to the state of the SDA bit; the MI i2c code is about to depend upon this.
2011-10-03Add a 'flag' locator to gpioiic(4), and define a first flagMatthieu Herrb
value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-08-29submatch functions used with config_found_sm() are required to invoke theMiod Vallat
driver's ca_match function. (only offender in the whole tree) ok deraadt@
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2008-11-28Welcome gpiodcf(4), a driver that attaches to a GPIO pin, decodes theMarc Balmer
signal from an attached DCF77, HG, or TDF receiver and provides a timedelta.
2008-11-26Add my copyright here, too.Marc Balmer
2008-11-26Change the semantics of gpio(4) devices by locking down pinMarc Balmer
configuration and device attachment/detachment to securelevel 0. GPIO pins can now only be configured at securelevel 0. Once the securelevel is raised, only pins that have been configured and set for securelevel access using the GPIOPINSET ioctl are accessible. This also adds the possibility to give GPIO pins a name. ok uwe@
2008-11-24- Add two new ioctls to gpio(4), GPIOATTACH and GPIODETACH, to allow to attachMarc Balmer
and detach devices on a gpiobus at runtime. The offset and mask locators in kernel config files can still be used for static configuration, so this does not break existing custome kernel configs. - Have gpioow(4) unmap the pins it used from the gpiobus during detach Changes to gpioctl(8) will be a separate committ. ok uwe
2008-11-23This is a "dummy" GPIO driver used for development and testing only.Marc Balmer
Not enabled in any kernel (and will not be). ok drahn, uwe
2007-06-05Switch to rwlock(9)Jonathan Gray
ok grange@
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
2006-03-26Don't allow to change gpio pin state if /dev/gpio was openedAlexander Yurchenko
in read-only mode. Spotted by form@.
2006-03-04Dallas 1-Wire bus support. Includes the following drivers:Alexander Yurchenko
gpioow(4) 1-Wire bus bit-banging through GPIO pin onewire(4) 1-Wire bus driver owid(4) 1-Wire ID family type device owtemp(4) 1-Wire temperature family type device Drivers for RS-232 and USB bus masters will follow. ok deraadt@
2006-01-20Add support for driving SDA in push-pull + tri-state mode.Alexander Yurchenko
2006-01-18Check that SDA pin is able to read input.Alexander Yurchenko
2006-01-17Make it detachable.Alexander Yurchenko
2006-01-15Nit.Alexander Yurchenko
2006-01-14Add a comment.Alexander Yurchenko
2006-01-14Some improvements:Alexander Yurchenko
- use gpio_pin_caps() while configuring pins - try to deal not only with open-drain outputs
2006-01-14Add gpio_pin_caps() method to provide pin capabilities.Alexander Yurchenko
2006-01-14Support for I2C bus bit-banging through the GPIO pins.Alexander Yurchenko
Now Soekris people can enjoy our fancy I2C stuff, too: nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS gpio1 at nsclpcsio0: 29 pins gpioiic0 at gpio1 pins 17 19 iic0 at gpioiic0 maxds0 at iic0 addr 0x48: ds1624, starting maxds1 at iic0 addr 0x49: ds1624, starting
2006-01-05Finish framework for attaching kernel drivers to the GPIO pins.Alexander Yurchenko
Not used yet.
2005-03-08Cosmetics...Thierry Deval
Mainly remove space between locators parens, replace spaces with tabs where appropriate and consistently align dependencies.
2004-11-23Let gpio_detach() do something useful.Alexander Yurchenko
Tested by reyk@ on gpio@ath.
2004-11-22added detach function to support hotpluggable gpios.Reyk Floeter
ok grange@
2004-09-15Tweak in comment.Alexander Yurchenko
2004-06-03A framework for supporting various General Purpose Input/Output (GPIO)Alexander Yurchenko
devices. Such devices provide a set of pins that you can use to connect for example leds to it. The pins can be accessed either from userland through the /dev/gpio* device files or from the kernel drivers. The latter is necessary for implementing timing-sensitive things like i2c or 1-wire master controller. ok deraadt@