Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hwmon: (ina238) Update documentation and Kconfig entry

Update driver documentation and Kconfig entry to list all chips supported
by the driver.

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz> # INA780
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

+35 -13
+30 -9
Documentation/hwmon/ina238.rst
··· 5 5 6 6 Supported chips: 7 7 8 + * Texas Instruments INA228 9 + 10 + Prefix: 'ina228' 11 + 12 + Addresses: I2C 0x40 - 0x4f 13 + 14 + Datasheet: 15 + https://www.ti.com/lit/gpn/ina228 16 + 17 + * Texas Instruments INA237 18 + 19 + Prefix: 'ina237' 20 + 21 + Addresses: I2C 0x40 - 0x4f 22 + 23 + Datasheet: 24 + https://www.ti.com/lit/gpn/ina237 25 + 8 26 * Texas Instruments INA238 9 27 10 28 Prefix: 'ina238' ··· 52 34 Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for bindings if 53 35 device tree is used. 54 36 37 + INA237 is a functionally equivalent variant of INA238 with slightly 38 + different accuracy. INA228 is another variant of INA238 with higher ADC 39 + resolution. This chip also reports the energy. 40 + 41 + SQ52206 is a mostly compatible chip from Sylergy. It reports the energy 42 + as well as the peak power consumption. 43 + 55 44 Sysfs entries 56 45 ------------- 57 46 ··· 78 53 power1_input Power measurement (uW) 79 54 power1_max Maximum power threshold (uW) 80 55 power1_max_alarm Maximum power alarm 56 + power1_input_highest Peak Power (uW) 57 + (SQ52206 only) 81 58 82 59 curr1_input Current measurement (mA) 60 + 61 + energy1_input Energy measurement (uJ) 62 + (SQ52206 and INA237 only) 83 63 84 64 temp1_input Die temperature measurement (mC) 85 65 temp1_max Maximum die temperature threshold (mC) 86 66 temp1_max_alarm Maximum die temperature alarm 87 - ======================= ======================================================= 88 - 89 - Additional sysfs entries for sq52206 90 - ------------------------------------ 91 - 92 - ======================= ======================================================= 93 - energy1_input Energy measurement (uJ) 94 - 95 - power1_input_highest Peak Power (uW) 96 67 ======================= =======================================================
+5 -4
drivers/hwmon/Kconfig
··· 2252 2252 will be called ina2xx. 2253 2253 2254 2254 config SENSORS_INA238 2255 - tristate "Texas Instruments INA238" 2255 + tristate "Texas Instruments INA238 and compatibles" 2256 2256 depends on I2C 2257 2257 select REGMAP_I2C 2258 2258 help 2259 - If you say yes here you get support for the INA238 power monitor 2260 - chip. This driver supports voltage, current, power and temperature 2261 - measurements as well as alarm configuration. 2259 + If you say yes here you get support for INA228, INA237, INA238, and 2260 + SQ52206 power monitor chips. This driver supports voltage, current, 2261 + power, energy, and temperature measurements as well as alarm 2262 + configuration. 2262 2263 2263 2264 This driver can also be built as a module. If so, the module 2264 2265 will be called ina238.