~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/hwmon/pmbus.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/hwmon/pmbus.rst (Version linux-6.12-rc7) and /Documentation/hwmon/pmbus.rst (Version linux-5.11.22)


  1 Kernel driver pmbus                                 1 Kernel driver pmbus
  2 ===================                                 2 ===================
  3                                                     3 
  4 Supported chips:                                    4 Supported chips:
  5                                                     5 
  6   * Flex BMR310, BMR453, BMR454, BMR456, BMR45 !!   6   * Ericsson BMR453, BMR454
  7     BMR490, BMR491, BMR492                     << 
  8                                                     7 
  9     Prefixes: 'bmr310', 'bmr453', 'bmr454', 'b !!   8     Prefixes: 'bmr453', 'bmr454'
 10     'bmr490', 'bmr491', 'bmr492'               << 
 11                                                     9 
 12     Addresses scanned: -                           10     Addresses scanned: -
 13                                                    11 
 14     Datasheets:                                !!  12     Datasheet:
 15                                                << 
 16         https://flexpowermodules.com/products  << 
 17                                                    13 
                                                   >>  14  http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146395
 18                                                    15 
 19   * ON Semiconductor ADP4000, NCP4200, NCP4208     16   * ON Semiconductor ADP4000, NCP4200, NCP4208
 20                                                    17 
 21     Prefixes: 'adp4000', 'ncp4200', 'ncp4208'      18     Prefixes: 'adp4000', 'ncp4200', 'ncp4208'
 22                                                    19 
 23     Addresses scanned: -                           20     Addresses scanned: -
 24                                                    21 
 25     Datasheets:                                    22     Datasheets:
 26                                                    23 
 27         https://www.onsemi.com/pub_link/Collat     24         https://www.onsemi.com/pub_link/Collateral/ADP4000-D.PDF
 28                                                    25 
 29         https://www.onsemi.com/pub_link/Collat     26         https://www.onsemi.com/pub_link/Collateral/NCP4200-D.PDF
 30                                                    27 
 31         https://www.onsemi.com/pub_link/Collat     28         https://www.onsemi.com/pub_link/Collateral/JUNE%202009-%20REV.%200.PDF
 32                                                    29 
 33   * Lineage Power                                  30   * Lineage Power
 34                                                    31 
 35     Prefixes: 'mdt040', 'pdt003', 'pdt006', 'p     32     Prefixes: 'mdt040', 'pdt003', 'pdt006', 'pdt012', 'udt020'
 36                                                    33 
 37     Addresses scanned: -                           34     Addresses scanned: -
 38                                                    35 
 39     Datasheets:                                    36     Datasheets:
 40                                                    37 
 41         http://www.lineagepower.com/oem/pdf/PD     38         http://www.lineagepower.com/oem/pdf/PDT003A0X.pdf
 42                                                    39 
 43         http://www.lineagepower.com/oem/pdf/PD     40         http://www.lineagepower.com/oem/pdf/PDT006A0X.pdf
 44                                                    41 
 45         http://www.lineagepower.com/oem/pdf/PD     42         http://www.lineagepower.com/oem/pdf/PDT012A0X.pdf
 46                                                    43 
 47         http://www.lineagepower.com/oem/pdf/UD     44         http://www.lineagepower.com/oem/pdf/UDT020A0X.pdf
 48                                                    45 
 49         http://www.lineagepower.com/oem/pdf/MD     46         http://www.lineagepower.com/oem/pdf/MDT040A0X.pdf
 50                                                    47 
 51   * Texas Instruments TPS40400, TPS544B20, TPS     48   * Texas Instruments TPS40400, TPS544B20, TPS544B25, TPS544C20, TPS544C25
 52                                                    49 
 53     Prefixes: 'tps40400', 'tps544b20', 'tps544     50     Prefixes: 'tps40400', 'tps544b20', 'tps544b25', 'tps544c20', 'tps544c25'
 54                                                    51 
 55     Addresses scanned: -                           52     Addresses scanned: -
 56                                                    53 
 57     Datasheets:                                    54     Datasheets:
 58                                                    55 
 59         https://www.ti.com/lit/gpn/tps40400        56         https://www.ti.com/lit/gpn/tps40400
 60                                                    57 
 61         https://www.ti.com/lit/gpn/tps544b20       58         https://www.ti.com/lit/gpn/tps544b20
 62                                                    59 
 63         https://www.ti.com/lit/gpn/tps544b25       60         https://www.ti.com/lit/gpn/tps544b25
 64                                                    61 
 65         https://www.ti.com/lit/gpn/tps544c20       62         https://www.ti.com/lit/gpn/tps544c20
 66                                                    63 
 67         https://www.ti.com/lit/gpn/tps544c25       64         https://www.ti.com/lit/gpn/tps544c25
 68                                                    65 
 69   * Maxim MAX20796                                 66   * Maxim MAX20796
 70                                                    67 
 71     Prefix: 'max20796'                             68     Prefix: 'max20796'
 72                                                    69 
 73     Addresses scanned: -                           70     Addresses scanned: -
 74                                                    71 
 75     Datasheet:                                     72     Datasheet:
 76                                                    73 
 77         Not published                              74         Not published
 78                                                    75 
 79   * Generic PMBus devices                          76   * Generic PMBus devices
 80                                                    77 
 81     Prefix: 'pmbus'                                78     Prefix: 'pmbus'
 82                                                    79 
 83     Addresses scanned: -                           80     Addresses scanned: -
 84                                                    81 
 85     Datasheet: n.a.                                82     Datasheet: n.a.
 86                                                    83 
 87                                                    84 
 88 Author: Guenter Roeck <linux@roeck-us.net>          85 Author: Guenter Roeck <linux@roeck-us.net>
 89                                                    86 
 90                                                    87 
 91 Description                                        88 Description
 92 -----------                                        89 -----------
 93                                                    90 
 94 This driver supports hardware monitoring for v     91 This driver supports hardware monitoring for various PMBus compliant devices.
 95 It supports voltage, current, power, and tempe     92 It supports voltage, current, power, and temperature sensors as supported
 96 by the device.                                     93 by the device.
 97                                                    94 
 98 Each monitored channel has its own high and lo     95 Each monitored channel has its own high and low limits, plus a critical
 99 limit.                                             96 limit.
100                                                    97 
101 Fan support will be added in a later version o     98 Fan support will be added in a later version of this driver.
102                                                    99 
103                                                   100 
104 Usage Notes                                       101 Usage Notes
105 -----------                                       102 -----------
106                                                   103 
107 This driver does not probe for PMBus devices,     104 This driver does not probe for PMBus devices, since there is no register
108 which can be safely used to identify the chip     105 which can be safely used to identify the chip (The MFG_ID register is not
109 supported by all chips), and since there is no    106 supported by all chips), and since there is no well defined address range for
110 PMBus devices. You will have to instantiate th    107 PMBus devices. You will have to instantiate the devices explicitly.
111                                                   108 
112 Example: the following will load the driver fo    109 Example: the following will load the driver for an LTC2978 at address 0x60
113 on I2C bus #1::                                   110 on I2C bus #1::
114                                                   111 
115         $ modprobe pmbus                          112         $ modprobe pmbus
116         $ echo ltc2978 0x60 > /sys/bus/i2c/dev    113         $ echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device
117                                                   114 
118                                                   115 
119 Platform data support                             116 Platform data support
120 ---------------------                             117 ---------------------
121                                                   118 
122 Support for additional PMBus chips can be adde    119 Support for additional PMBus chips can be added by defining chip parameters in
123 a new chip specific driver file. For example,     120 a new chip specific driver file. For example, (untested) code to add support for
124 Emerson DS1200 power modules might look as fol    121 Emerson DS1200 power modules might look as follows::
125                                                   122 
126   static struct pmbus_driver_info ds1200_info     123   static struct pmbus_driver_info ds1200_info = {
127         .pages = 1,                               124         .pages = 1,
128         /* Note: All other sensors are in line    125         /* Note: All other sensors are in linear mode */
129         .direct[PSC_VOLTAGE_OUT] = true,          126         .direct[PSC_VOLTAGE_OUT] = true,
130         .direct[PSC_TEMPERATURE] = true,          127         .direct[PSC_TEMPERATURE] = true,
131         .direct[PSC_CURRENT_OUT] = true,          128         .direct[PSC_CURRENT_OUT] = true,
132         .m[PSC_VOLTAGE_IN] = 1,                   129         .m[PSC_VOLTAGE_IN] = 1,
133         .b[PSC_VOLTAGE_IN] = 0,                   130         .b[PSC_VOLTAGE_IN] = 0,
134         .R[PSC_VOLTAGE_IN] = 3,                   131         .R[PSC_VOLTAGE_IN] = 3,
135         .m[PSC_VOLTAGE_OUT] = 1,                  132         .m[PSC_VOLTAGE_OUT] = 1,
136         .b[PSC_VOLTAGE_OUT] = 0,                  133         .b[PSC_VOLTAGE_OUT] = 0,
137         .R[PSC_VOLTAGE_OUT] = 3,                  134         .R[PSC_VOLTAGE_OUT] = 3,
138         .m[PSC_TEMPERATURE] = 1,                  135         .m[PSC_TEMPERATURE] = 1,
139         .b[PSC_TEMPERATURE] = 0,                  136         .b[PSC_TEMPERATURE] = 0,
140         .R[PSC_TEMPERATURE] = 3,                  137         .R[PSC_TEMPERATURE] = 3,
141         .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE    138         .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN | PMBUS_HAVE_STATUS_INPUT
142                    | PMBUS_HAVE_VOUT | PMBUS_H    139                    | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
143                    | PMBUS_HAVE_IOUT | PMBUS_H    140                    | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT
144                    | PMBUS_HAVE_PIN | PMBUS_HA    141                    | PMBUS_HAVE_PIN | PMBUS_HAVE_POUT
145                    | PMBUS_HAVE_TEMP | PMBUS_H    142                    | PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP
146                    | PMBUS_HAVE_FAN12 | PMBUS_    143                    | PMBUS_HAVE_FAN12 | PMBUS_HAVE_STATUS_FAN12,
147   };                                              144   };
148                                                   145 
149   static int ds1200_probe(struct i2c_client *c    146   static int ds1200_probe(struct i2c_client *client)
150   {                                               147   {
151         return pmbus_do_probe(client, &ds1200_    148         return pmbus_do_probe(client, &ds1200_info);
152   }                                               149   }
153                                                   150 
154   static const struct i2c_device_id ds1200_id[    151   static const struct i2c_device_id ds1200_id[] = {
155         {"ds1200"},                            !! 152         {"ds1200", 0},
156         {}                                        153         {}
157   };                                              154   };
158                                                   155 
159   MODULE_DEVICE_TABLE(i2c, ds1200_id);            156   MODULE_DEVICE_TABLE(i2c, ds1200_id);
160                                                   157 
161   /* This is the driver that will be inserted     158   /* This is the driver that will be inserted */
162   static struct i2c_driver ds1200_driver = {      159   static struct i2c_driver ds1200_driver = {
163         .driver = {                               160         .driver = {
164                    .name = "ds1200",              161                    .name = "ds1200",
165                    },                             162                    },
166         .probe = ds1200_probe,                 !! 163         .probe_new = ds1200_probe,
167         .id_table = ds1200_id,                    164         .id_table = ds1200_id,
168   };                                              165   };
169                                                   166 
170   static int __init ds1200_init(void)             167   static int __init ds1200_init(void)
171   {                                               168   {
172         return i2c_add_driver(&ds1200_driver);    169         return i2c_add_driver(&ds1200_driver);
173   }                                               170   }
174                                                   171 
175   static void __exit ds1200_exit(void)            172   static void __exit ds1200_exit(void)
176   {                                               173   {
177         i2c_del_driver(&ds1200_driver);           174         i2c_del_driver(&ds1200_driver);
178   }                                               175   }
179                                                   176 
180                                                   177 
181 Sysfs entries                                     178 Sysfs entries
182 -------------                                     179 -------------
183                                                   180 
184 When probing the chip, the driver identifies w    181 When probing the chip, the driver identifies which PMBus registers are
185 supported, and determines available sensors fr    182 supported, and determines available sensors from this information.
186 Attribute files only exist if respective senso    183 Attribute files only exist if respective sensors are supported by the chip.
187 Labels are provided to inform the user about t    184 Labels are provided to inform the user about the sensor associated with
188 a given sysfs entry.                              185 a given sysfs entry.
189                                                   186 
190 The following attributes are supported. Limits    187 The following attributes are supported. Limits are read-write; all other
191 attributes are read-only.                         188 attributes are read-only.
192                                                   189 
193 ======================= ======================    190 ======================= ========================================================
194 inX_input               Measured voltage. From    191 inX_input               Measured voltage. From READ_VIN or READ_VOUT register.
195 inX_min                 Minimum Voltage.          192 inX_min                 Minimum Voltage.
196                         From VIN_UV_WARN_LIMIT    193                         From VIN_UV_WARN_LIMIT or VOUT_UV_WARN_LIMIT register.
197 inX_max                 Maximum voltage.          194 inX_max                 Maximum voltage.
198                         From VIN_OV_WARN_LIMIT    195                         From VIN_OV_WARN_LIMIT or VOUT_OV_WARN_LIMIT register.
199 inX_lcrit               Critical minimum Volta    196 inX_lcrit               Critical minimum Voltage.
200                         From VIN_UV_FAULT_LIMI    197                         From VIN_UV_FAULT_LIMIT or VOUT_UV_FAULT_LIMIT register.
201 inX_crit                Critical maximum volta    198 inX_crit                Critical maximum voltage.
202                         From VIN_OV_FAULT_LIMI    199                         From VIN_OV_FAULT_LIMIT or VOUT_OV_FAULT_LIMIT register.
203 inX_min_alarm           Voltage low alarm. Fro    200 inX_min_alarm           Voltage low alarm. From VOLTAGE_UV_WARNING status.
204 inX_max_alarm           Voltage high alarm. Fr    201 inX_max_alarm           Voltage high alarm. From VOLTAGE_OV_WARNING status.
205 inX_lcrit_alarm         Voltage critical low a    202 inX_lcrit_alarm         Voltage critical low alarm.
206                         From VOLTAGE_UV_FAULT     203                         From VOLTAGE_UV_FAULT status.
207 inX_crit_alarm          Voltage critical high     204 inX_crit_alarm          Voltage critical high alarm.
208                         From VOLTAGE_OV_FAULT     205                         From VOLTAGE_OV_FAULT status.
209 inX_label               "vin", "vcap", or "vou    206 inX_label               "vin", "vcap", or "voutY"
210 inX_rated_min           Minimum rated voltage.    207 inX_rated_min           Minimum rated voltage.
211                         From MFR_VIN_MIN or MF    208                         From MFR_VIN_MIN or MFR_VOUT_MIN register.
212 inX_rated_max           Maximum rated voltage.    209 inX_rated_max           Maximum rated voltage.
213                         From MFR_VIN_MAX or MF    210                         From MFR_VIN_MAX or MFR_VOUT_MAX register.
214                                                   211 
215 currX_input             Measured current. From    212 currX_input             Measured current. From READ_IIN or READ_IOUT register.
216 currX_max               Maximum current.          213 currX_max               Maximum current.
217                         From IIN_OC_WARN_LIMIT    214                         From IIN_OC_WARN_LIMIT or IOUT_OC_WARN_LIMIT register.
218 currX_lcrit             Critical minimum outpu    215 currX_lcrit             Critical minimum output current.
219                         From IOUT_UC_FAULT_LIM    216                         From IOUT_UC_FAULT_LIMIT register.
220 currX_crit              Critical maximum curre    217 currX_crit              Critical maximum current.
221                         From IIN_OC_FAULT_LIMI    218                         From IIN_OC_FAULT_LIMIT or IOUT_OC_FAULT_LIMIT register.
222 currX_alarm             Current high alarm.       219 currX_alarm             Current high alarm.
223                         From IIN_OC_WARNING or    220                         From IIN_OC_WARNING or IOUT_OC_WARNING status.
224 currX_max_alarm         Current high alarm.       221 currX_max_alarm         Current high alarm.
225                         From IIN_OC_WARN_LIMIT    222                         From IIN_OC_WARN_LIMIT or IOUT_OC_WARN_LIMIT status.
226 currX_lcrit_alarm       Output current critica    223 currX_lcrit_alarm       Output current critical low alarm.
227                         From IOUT_UC_FAULT sta    224                         From IOUT_UC_FAULT status.
228 currX_crit_alarm        Current critical high     225 currX_crit_alarm        Current critical high alarm.
229                         From IIN_OC_FAULT or I    226                         From IIN_OC_FAULT or IOUT_OC_FAULT status.
230 currX_label             "iin", "iinY", "iinY.Z    227 currX_label             "iin", "iinY", "iinY.Z", "ioutY", or "ioutY.Z",
231                         where Y reflects the p    228                         where Y reflects the page number and Z reflects the
232                         phase.                    229                         phase.
233 currX_rated_max         Maximum rated current.    230 currX_rated_max         Maximum rated current.
234                         From MFR_IIN_MAX or MF    231                         From MFR_IIN_MAX or MFR_IOUT_MAX register.
235                                                   232 
236 powerX_input            Measured power. From R    233 powerX_input            Measured power. From READ_PIN or READ_POUT register.
237 powerX_cap              Output power cap. From    234 powerX_cap              Output power cap. From POUT_MAX register.
238 powerX_max              Power limit. From PIN_    235 powerX_max              Power limit. From PIN_OP_WARN_LIMIT or
239                         POUT_OP_WARN_LIMIT reg    236                         POUT_OP_WARN_LIMIT register.
240 powerX_crit             Critical output power     237 powerX_crit             Critical output power limit.
241                         From POUT_OP_FAULT_LIM    238                         From POUT_OP_FAULT_LIMIT register.
242 powerX_alarm            Power high alarm.         239 powerX_alarm            Power high alarm.
243                         From PIN_OP_WARNING or    240                         From PIN_OP_WARNING or POUT_OP_WARNING status.
244 powerX_crit_alarm       Output power critical     241 powerX_crit_alarm       Output power critical high alarm.
245                         From POUT_OP_FAULT sta    242                         From POUT_OP_FAULT status.
246 powerX_label            "pin", "pinY", "pinY.Z    243 powerX_label            "pin", "pinY", "pinY.Z", "poutY", or "poutY.Z",
247                         where Y reflects the p    244                         where Y reflects the page number and Z reflects the
248                         phase.                    245                         phase.
249 powerX_rated_max        Maximum rated power.      246 powerX_rated_max        Maximum rated power.
250                         From MFR_PIN_MAX or MF    247                         From MFR_PIN_MAX or MFR_POUT_MAX register.
251                                                   248 
252 tempX_input             Measured temperature.     249 tempX_input             Measured temperature.
253                         From READ_TEMPERATURE_    250                         From READ_TEMPERATURE_X register.
254 tempX_min               Minimum temperature. F    251 tempX_min               Minimum temperature. From UT_WARN_LIMIT register.
255 tempX_max               Maximum temperature. F    252 tempX_max               Maximum temperature. From OT_WARN_LIMIT register.
256 tempX_lcrit             Critical low temperatu    253 tempX_lcrit             Critical low temperature.
257                         From UT_FAULT_LIMIT re    254                         From UT_FAULT_LIMIT register.
258 tempX_crit              Critical high temperat    255 tempX_crit              Critical high temperature.
259                         From OT_FAULT_LIMIT re    256                         From OT_FAULT_LIMIT register.
260 tempX_min_alarm         Chip temperature low a    257 tempX_min_alarm         Chip temperature low alarm. Set by comparing
261                         READ_TEMPERATURE_X wit    258                         READ_TEMPERATURE_X with UT_WARN_LIMIT if
262                         TEMP_UT_WARNING status    259                         TEMP_UT_WARNING status is set.
263 tempX_max_alarm         Chip temperature high     260 tempX_max_alarm         Chip temperature high alarm. Set by comparing
264                         READ_TEMPERATURE_X wit    261                         READ_TEMPERATURE_X with OT_WARN_LIMIT if
265                         TEMP_OT_WARNING status    262                         TEMP_OT_WARNING status is set.
266 tempX_lcrit_alarm       Chip temperature criti    263 tempX_lcrit_alarm       Chip temperature critical low alarm. Set by comparing
267                         READ_TEMPERATURE_X wit    264                         READ_TEMPERATURE_X with UT_FAULT_LIMIT if
268                         TEMP_UT_FAULT status i    265                         TEMP_UT_FAULT status is set.
269 tempX_crit_alarm        Chip temperature criti    266 tempX_crit_alarm        Chip temperature critical high alarm. Set by comparing
270                         READ_TEMPERATURE_X wit    267                         READ_TEMPERATURE_X with OT_FAULT_LIMIT if
271                         TEMP_OT_FAULT status i    268                         TEMP_OT_FAULT status is set.
272 tempX_rated_min         Minimum rated temperat    269 tempX_rated_min         Minimum rated temperature.
273                         From MFR_TAMBIENT_MIN     270                         From MFR_TAMBIENT_MIN register.
274 tempX_rated_max         Maximum rated temperat    271 tempX_rated_max         Maximum rated temperature.
275                         From MFR_TAMBIENT_MAX,    272                         From MFR_TAMBIENT_MAX, MFR_MAX_TEMP_1, MFR_MAX_TEMP_2 or
276                         MFR_MAX_TEMP_3 registe    273                         MFR_MAX_TEMP_3 register.
277 ======================= ======================    274 ======================= ========================================================
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php