aboutsummaryrefslogtreecommitdiff
path: root/include/linux/w1-gpio.h
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16onewire: w1-gpio: add ext_pullup_enable pin in platform dataDaniel Mack1-0/+1
In the process of porting boards to devicetree implemenation, we should keep information about external circuitry where they belong - the individual drivers. This patch adds a way to specify a GPIO to drive the (optional) external pull-up logic, rather than using a function pointer for that. Signed-off-by: Daniel Mack <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Acked-by: Ville Syrjälä <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-06-18w1-gpio: add external pull-up enable callbackDaniel Mack1-0/+1
On embedded devices, sleep mode conditions can be tricky to handle, Especially when processors tend to pull-down the w1 bus during sleep. Bus slaves (such as the ds2760) may interpret this as a reason for power-down conditions and entirely switch off the device. This patch adds a callback function pointer to let users switch on and off the external pull-up resistor. This lets the outside world know whether the processor is currently actively driving the bus or not. When this callback is not provided, the code behaviour won't change. Signed-off-by: Daniel Mack <[email protected]> Acked-by: Ville Syrjala <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-02-06w1-gpio: add GPIO w1 bus master driverVille Syrjala1-0/+23
Add a GPIO 1-wire bus master driver. The driver used the GPIO API to control the wire and the GPIO pin can be specified using platform data similar to i2c-gpio. The driver was tested with AT91SAM9260 + DS2401. Signed-off-by: Ville Syrjala <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>