blob: 0d6f46702efb0ab31c59025e5b015a4752db48b3 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jan Engelhardt012bfdf2007-07-15 23:39:39 -07002menuconfig W1
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 tristate "Dallas's 1-wire support"
Jan Engelhardt012bfdf2007-07-15 23:39:39 -07004 depends on HAS_IOMEM
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +09005 help
Evgeniy Polyakov46e07f62006-04-03 12:01:12 +04006 Dallas' 1-wire bus is useful to connect slow 1-pin devices
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 such as iButtons and thermal sensors.
Evgeniy Polyakov77859252005-05-20 22:33:25 +04008
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 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 Machek4737f092009-06-05 00:44:53 +020012 will be called wire.
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Jan Engelhardt012bfdf2007-07-15 23:39:39 -070014if W1
15
Evgeniy Polyakov46e07f62006-04-03 12:01:12 +040016config W1_CON
Jan Engelhardt012bfdf2007-07-15 23:39:39 -070017 depends on CONNECTOR
Evgeniy Polyakov46e07f62006-04-03 12:01:12 +040018 bool "Userspace communication over connector"
19 default y
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090020 help
Dirk Hohndele4031492007-10-30 13:37:19 -070021 This allows to communicate with userspace using connector. For more
Mauro Carvalho Chehabbaa293e2019-06-27 15:39:22 -030022 information see <file:Documentation/driver-api/connector.rst>.
Evgeniy Polyakov46e07f62006-04-03 12:01:12 +040023 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 LaPlante09509602006-10-03 22:31:37 +020026 2. Userspace commands. Includes read/write and search/alarm search commands.
Evgeniy Polyakov46e07f62006-04-03 12:01:12 +040027 3. Replies to userspace commands.
28
Masahiro Yamada8636a1f2018-12-11 20:01:04 +090029source "drivers/w1/masters/Kconfig"
30source "drivers/w1/slaves/Kconfig"
Evgeniy Polyakov0a25e4d2005-08-17 15:24:37 +040031
Jan Engelhardt012bfdf2007-07-15 23:39:39 -070032endif # W1