Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jan Engelhardt | 012bfdf | 2007-07-15 23:39:39 -0700 | [diff] [blame] | 2 | menuconfig W1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | tristate "Dallas's 1-wire support" |
Jan Engelhardt | 012bfdf | 2007-07-15 23:39:39 -0700 | [diff] [blame] | 4 | depends on HAS_IOMEM |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 5 | help |
Evgeniy Polyakov | 46e07f6 | 2006-04-03 12:01:12 +0400 | [diff] [blame] | 6 | Dallas' 1-wire bus is useful to connect slow 1-pin devices |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | such as iButtons and thermal sensors. |
Evgeniy Polyakov | 7785925 | 2005-05-20 22:33:25 +0400 | [diff] [blame] | 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | If you want W1 support, you should say Y here. |
| 10 | |
| 11 | This W1 support can also be built as a module. If so, the module |
Pavel Machek | 4737f09 | 2009-06-05 00:44:53 +0200 | [diff] [blame] | 12 | will be called wire. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Jan Engelhardt | 012bfdf | 2007-07-15 23:39:39 -0700 | [diff] [blame] | 14 | if W1 |
| 15 | |
Evgeniy Polyakov | 46e07f6 | 2006-04-03 12:01:12 +0400 | [diff] [blame] | 16 | config W1_CON |
Jan Engelhardt | 012bfdf | 2007-07-15 23:39:39 -0700 | [diff] [blame] | 17 | depends on CONNECTOR |
Evgeniy Polyakov | 46e07f6 | 2006-04-03 12:01:12 +0400 | [diff] [blame] | 18 | bool "Userspace communication over connector" |
| 19 | default y |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 20 | help |
Dirk Hohndel | e403149 | 2007-10-30 13:37:19 -0700 | [diff] [blame] | 21 | This allows to communicate with userspace using connector. For more |
Mauro Carvalho Chehab | baa293e | 2019-06-27 15:39:22 -0300 | [diff] [blame] | 22 | information see <file:Documentation/driver-api/connector.rst>. |
Evgeniy Polyakov | 46e07f6 | 2006-04-03 12:01:12 +0400 | [diff] [blame] | 23 | There are three types of messages between w1 core and userspace: |
| 24 | 1. Events. They are generated each time new master or slave device found |
| 25 | either due to automatic or requested search. |
Matt LaPlante | 0950960 | 2006-10-03 22:31:37 +0200 | [diff] [blame] | 26 | 2. Userspace commands. Includes read/write and search/alarm search commands. |
Evgeniy Polyakov | 46e07f6 | 2006-04-03 12:01:12 +0400 | [diff] [blame] | 27 | 3. Replies to userspace commands. |
| 28 | |
Masahiro Yamada | 8636a1f | 2018-12-11 20:01:04 +0900 | [diff] [blame] | 29 | source "drivers/w1/masters/Kconfig" |
| 30 | source "drivers/w1/slaves/Kconfig" |
Evgeniy Polyakov | 0a25e4d | 2005-08-17 15:24:37 +0400 | [diff] [blame] | 31 | |
Jan Engelhardt | 012bfdf | 2007-07-15 23:39:39 -0700 | [diff] [blame] | 32 | endif # W1 |