Debian Codegraph @

Documentation/hwmon/tsc1641.rst

raw
1 .. SPDX-License-Identifier: GPL-2.0-only
2
3 Kernel driver tsc1641
4 =====================
5
6 Supported chips:
7
8 * ST TSC1641
9
10 Prefix: 'tsc1641'
11
12 Addresses scanned: -
13
14 Datasheet:
15 https://www.st.com/resource/en/datasheet/tsc1641.pdf
16
17 Author:
18 - Igor Reznichenko <[email protected]>
19
20
21 Description
22 -----------
23
24 The TSC1641 is a high-precision current, voltage, power, and temperature
25 monitoring analog front-end (AFE). It monitors bidirectional current into a
26 shunt resistor and load voltage up to 60 V in a synchronized way. Digital bus
27 interface is I2C/SMbus. The TSC1641 allows the assertion of several alerts
28 regarding the voltage, current, power and temperature.
29
30 Usage Notes
31 -----------
32
33 The TSC1641 driver requires the value of the external shunt resistor to
34 correctly compute current and power measurements. The resistor value, in
35 micro-ohms, should be provided either through the device tree property
36 "shunt-resistor-micro-ohms" or via writable sysfs attribute "shunt_resistor".
37 Please refer to the Documentation/devicetree/bindings/hwmon/st,tsc1641.yaml
38 for bindings if the device tree is used.
39
40 Supported range of shunt resistor values is from 100 uOhm to 655.35 mOhm, in
41 10 uOhm steps.
42 When selecting the value keep in mind device maximum DC power measurement is
43 1600W. See datasheet p.22 for ST recommendations on selecting shunt value.
44
45 If the shunt resistor value is not specified in the device tree, the driver
46 initializes it to 1000 uOhm by default. Users may configure the correct shunt
47 resistor value at runtime by writing to the "shunt_resistor" sysfs attribute.
48
49 The driver only supports continuous operating mode.
50 Measurement ranges:
51
52 ================ ===============================================================
53 Current Bidirectional, dependent on shunt
54 Bus voltage 0-60V
55 Maximum DC power 1600W
56 Temperature -40C to +125C
57 ================ ===============================================================
58
59 Sysfs entries
60 -------------
61
62 ==================== ===========================================================
63 in0_input bus voltage (mV)
64 in0_max bus voltage max alarm limit (mV)
65 in0_max_alarm bus voltage max alarm limit exceeded
66 in0_min bus voltage min alarm limit (mV)
67 in0_min_alarm bus voltage min alarm limit exceeded
68
69 curr1_input current measurement (mA)
70 curr1_max current max alarm limit (mA)
71 curr1_max_alarm current max alarm limit exceeded
72 curr1_min current min alarm limit (mA)
73 curr1_min_alarm current min alarm limit exceeded
74
75 power1_input power measurement (uW)
76 power1_max power max alarm limit (uW)
77 power1_max_alarm power max alarm limit exceeded
78
79 shunt_resistor shunt resistor value (uOhms)
80
81 temp1_input temperature measurement (mdegC)
82 temp1_max temperature max alarm limit (mdegC)
83 temp1_max_alarm temperature max alarm limit exceeded
84
85 update_interval data conversion time (1 - 33ms), longer conversion time
86 corresponds to higher effective resolution in bits
87 ==================== ===========================================================