hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/i2c/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # I2C subsystem configuration
34 #
....@@ -8,7 +9,7 @@
89 tristate "I2C support"
910 select RT_MUTEXES
1011 select IRQ_DOMAIN
11
- ---help---
12
+ help
1213 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in
1314 many micro controller applications and developed by Philips. SMBus,
1415 or System Management Bus is a subset of the I2C protocol. More
....@@ -53,7 +54,7 @@
5354 Say Y here to use i2c-* device files, usually found in the /dev
5455 directory on your system. They make it possible to have user-space
5556 programs use the I2C bus. Information on how to do this is
56
- contained in the file <file:Documentation/i2c/dev-interface>.
57
+ contained in the file <file:Documentation/i2c/dev-interface.rst>.
5758
5859 This support is also available as a module. If so, the module
5960 will be called i2c-dev.
....@@ -68,7 +69,7 @@
6869 This support is also available as a module. If so, the module
6970 will be called i2c-mux.
7071
71
-source drivers/i2c/muxes/Kconfig
72
+source "drivers/i2c/muxes/Kconfig"
7273
7374 config I2C_HELPER_AUTO
7475 bool "Autoselect pertinent helper modules"
....@@ -94,29 +95,43 @@
9495 This support is also available as a module. If so, the module
9596 will be called i2c-smbus.
9697
97
-source drivers/i2c/algos/Kconfig
98
-source drivers/i2c/busses/Kconfig
98
+source "drivers/i2c/algos/Kconfig"
99
+source "drivers/i2c/busses/Kconfig"
99100
100101 config I2C_STUB
101102 tristate "I2C/SMBus Test Stub"
102103 depends on m
103
- default 'n'
104104 help
105105 This module may be useful to developers of SMBus client drivers,
106106 especially for certain kinds of sensor chips.
107107
108108 If you do build this module, be sure to read the notes and warnings
109
- in <file:Documentation/i2c/i2c-stub>.
109
+ in <file:Documentation/i2c/i2c-stub.rst>.
110110
111111 If you don't know what to do here, definitely say N.
112112
113113 config I2C_SLAVE
114114 bool "I2C slave support"
115
+ help
116
+ This enables Linux to act as an I2C slave device. Note that your I2C
117
+ bus master driver also needs to support this functionality. Please
118
+ read Documentation/i2c/slave-interface.rst for further details.
115119
116120 if I2C_SLAVE
117121
118122 config I2C_SLAVE_EEPROM
119123 tristate "I2C eeprom slave driver"
124
+ help
125
+ This backend makes Linux behave like an I2C EEPROM. Please read
126
+ Documentation/i2c/slave-eeprom-backend.rst for further details.
127
+
128
+config I2C_SLAVE_TESTUNIT
129
+ tristate "I2C eeprom testunit driver"
130
+ help
131
+ This backend can be used to trigger test cases for I2C bus masters
132
+ which require a remote device with certain capabilities, e.g.
133
+ multi-master, SMBus Host Notify, etc. Please read
134
+ Documentation/i2c/slave-testunit-backend.rst for further details.
120135
121136 endif
122137