mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
w1: masters: omap_hdq: add support for 1-wire mode
This patches makes following changes to omap_hdq driver - Enable 1-wire mode. - Implement w1_triplet callback to facilitate search rom procedure and auto detection of 1-wire slaves. - Proper enabling and disabling of interrupt. - Cleanups (formatting and return value checks). HDQ mode remains unchanged. Signed-off-by: Vignesh R <[email protected]> Cc: Rob Herring <[email protected]> Cc: Pawel Moll <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Ian Campbell <[email protected]> Cc: Kumar Gala <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Cc: Jonathan Corbet <[email protected]> CC: Tony Lindgren <[email protected]> Cc: Vignesh R <[email protected]> Cc: NeilBrown <[email protected]> Cc: Fabian Frederick <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5052436dcb
commit
e93762bbf6
3 changed files with 203 additions and 34 deletions
|
|
@ -44,3 +44,9 @@ e.g:
|
|||
insmod omap_hdq.ko W1_ID=2
|
||||
inamod w1_bq27000.ko F_ID=2
|
||||
|
||||
The driver also supports 1-wire mode. In this mode, there is no need to
|
||||
pass slave ID as parameter. The driver will auto-detect slaves connected
|
||||
to the bus using SEARCH_ROM procedure. 1-wire mode can be selected by
|
||||
setting "ti,mode" property to "1w" in DT (see
|
||||
Documentation/devicetree/bindings/w1/omap-hdq.txt for more details).
|
||||
By default driver is in HDQ mode.
|
||||
|
|
|
|||
Loading…
Reference in a new issue