aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/w1
diff options
context:
space:
mode:
authorDmitry Khromov <dk@icelogic.net>2015-05-12 15:29:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 15:08:59 -0400
commitc3098356927254be270e5dc186a2ca144b64463b (patch)
tree940a4cbc322141f72c57507bc9867cf1489466a9 /Documentation/w1
parent99b7e93c95c78952724a9783de6c78def8fbfc3f (diff)
w1: introduce an ability to specify microseconds bus scanning intervals
Some of 1-Wire devices commonly associated with physical access control systems are attached/generate presence for as short as 100 ms - hence the tens-to-hundreds milliseconds scan intervals are required. Signed-off-by: Dmitry Khromov <dk@icelogic.net> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/w1')
-rw-r--r--Documentation/w1/w1.generic30
1 files changed, 19 insertions, 11 deletions
diff --git a/Documentation/w1/w1.generic b/Documentation/w1/w1.generic
index b2033c64c7da..b3ffaf8cfab2 100644
--- a/Documentation/w1/w1.generic
+++ b/Documentation/w1/w1.generic
@@ -76,21 +76,24 @@ See struct w1_bus_master definition in w1.h for details.
76 76
77w1 master sysfs interface 77w1 master sysfs interface
78------------------------------------------------------------------ 78------------------------------------------------------------------
79<xx-xxxxxxxxxxxxx> - a directory for a found device. The format is family-serial 79<xx-xxxxxxxxxxxxx> - A directory for a found device. The format is family-serial
80bus - (standard) symlink to the w1 bus 80bus - (standard) symlink to the w1 bus
81driver - (standard) symlink to the w1 driver 81driver - (standard) symlink to the w1 driver
82w1_master_add - Manually register a slave device 82w1_master_add - (rw) manually register a slave device
83w1_master_attempts - the number of times a search was attempted 83w1_master_attempts - (ro) the number of times a search was attempted
84w1_master_max_slave_count 84w1_master_max_slave_count
85 - maximum number of slaves to search for at a time 85 - (rw) maximum number of slaves to search for at a time
86w1_master_name - the name of the device (w1_bus_masterX) 86w1_master_name - (ro) the name of the device (w1_bus_masterX)
87w1_master_pullup - 5V strong pullup 0 enabled, 1 disabled 87w1_master_pullup - (rw) 5V strong pullup 0 enabled, 1 disabled
88w1_master_remove - Manually remove a slave device 88w1_master_remove - (rw) manually remove a slave device
89w1_master_search - the number of searches left to do, -1=continual (default) 89w1_master_search - (rw) the number of searches left to do,
90 -1=continual (default)
90w1_master_slave_count 91w1_master_slave_count
91 - the number of slaves found 92 - (ro) the number of slaves found
92w1_master_slaves - the names of the slaves, one per line 93w1_master_slaves - (ro) the names of the slaves, one per line
93w1_master_timeout - the delay in seconds between searches 94w1_master_timeout - (ro) the delay in seconds between searches
95w1_master_timeout_us
96 - (ro) the delay in microseconds beetwen searches
94 97
95If you have a w1 bus that never changes (you don't add or remove devices), 98If you have a w1 bus that never changes (you don't add or remove devices),
96you can set the module parameter search_count to a small positive number 99you can set the module parameter search_count to a small positive number
@@ -101,6 +104,11 @@ generally only make sense when searching is disabled, as a search will
101redetect manually removed devices that are present and timeout manually 104redetect manually removed devices that are present and timeout manually
102added devices that aren't on the bus. 105added devices that aren't on the bus.
103 106
107Bus searches occur at an interval, specified as a summ of timeout and
108timeout_us module parameters (either of which may be 0) for as long as
109w1_master_search remains greater than 0 or is -1. Each search attempt
110decrements w1_master_search by 1 (down to 0) and increments
111w1_master_attempts by 1.
104 112
105w1 slave sysfs interface 113w1 slave sysfs interface
106------------------------------------------------------------------ 114------------------------------------------------------------------