xref: /openbmc/linux/Documentation/hwmon/ucd9200.rst (revision 976e3645923bdd2fe7893aae33fd7a21098bfb28)
17ebd8b66SMauro Carvalho ChehabKernel driver ucd9200
27ebd8b66SMauro Carvalho Chehab=====================
37ebd8b66SMauro Carvalho Chehab
47ebd8b66SMauro Carvalho ChehabSupported chips:
57ebd8b66SMauro Carvalho Chehab
67ebd8b66SMauro Carvalho Chehab  * TI UCD9220, UCD9222, UCD9224, UCD9240, UCD9244, UCD9246, and UCD9248
77ebd8b66SMauro Carvalho Chehab
87ebd8b66SMauro Carvalho Chehab    Prefixes: 'ucd9220', 'ucd9222', 'ucd9224', 'ucd9240', 'ucd9244', 'ucd9246',
97ebd8b66SMauro Carvalho Chehab    'ucd9248'
107ebd8b66SMauro Carvalho Chehab
117ebd8b66SMauro Carvalho Chehab    Addresses scanned: -
127ebd8b66SMauro Carvalho Chehab
137ebd8b66SMauro Carvalho Chehab    Datasheets:
147ebd8b66SMauro Carvalho Chehab
157ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9220.pdf
167ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9222.pdf
177ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9224.pdf
187ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9240.pdf
197ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9244.pdf
207ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9246.pdf
217ebd8b66SMauro Carvalho Chehab	- http://focus.ti.com/lit/ds/symlink/ucd9248.pdf
227ebd8b66SMauro Carvalho Chehab
237ebd8b66SMauro Carvalho ChehabAuthor: Guenter Roeck <linux@roeck-us.net>
247ebd8b66SMauro Carvalho Chehab
257ebd8b66SMauro Carvalho Chehab
267ebd8b66SMauro Carvalho ChehabDescription
277ebd8b66SMauro Carvalho Chehab-----------
287ebd8b66SMauro Carvalho Chehab
297ebd8b66SMauro Carvalho Chehab[From datasheets] UCD9220, UCD9222, UCD9224, UCD9240, UCD9244, UCD9246, and
307ebd8b66SMauro Carvalho ChehabUCD9248 are multi-rail, multi-phase synchronous buck digital PWM controllers
317ebd8b66SMauro Carvalho Chehabdesigned for non-isolated DC/DC power applications. The devices integrate
327ebd8b66SMauro Carvalho Chehabdedicated circuitry for DC/DC loop management with flash memory and a serial
337ebd8b66SMauro Carvalho Chehabinterface to support configuration, monitoring and management.
347ebd8b66SMauro Carvalho Chehab
357ebd8b66SMauro Carvalho ChehabThis driver is a client driver to the core PMBus driver. Please see
367ebd8b66SMauro Carvalho ChehabDocumentation/hwmon/pmbus.rst for details on PMBus client drivers.
377ebd8b66SMauro Carvalho Chehab
387ebd8b66SMauro Carvalho Chehab
397ebd8b66SMauro Carvalho ChehabUsage Notes
407ebd8b66SMauro Carvalho Chehab-----------
417ebd8b66SMauro Carvalho Chehab
427ebd8b66SMauro Carvalho ChehabThis driver does not auto-detect devices. You will have to instantiate the
43*ccf988b6SMauro Carvalho Chehabdevices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
447ebd8b66SMauro Carvalho Chehabdetails.
457ebd8b66SMauro Carvalho Chehab
467ebd8b66SMauro Carvalho Chehab
477ebd8b66SMauro Carvalho ChehabPlatform data support
487ebd8b66SMauro Carvalho Chehab---------------------
497ebd8b66SMauro Carvalho Chehab
507ebd8b66SMauro Carvalho ChehabThe driver supports standard PMBus driver platform data. Please see
517ebd8b66SMauro Carvalho ChehabDocumentation/hwmon/pmbus.rst for details.
527ebd8b66SMauro Carvalho Chehab
537ebd8b66SMauro Carvalho Chehab
547ebd8b66SMauro Carvalho ChehabSysfs entries
557ebd8b66SMauro Carvalho Chehab-------------
567ebd8b66SMauro Carvalho Chehab
577ebd8b66SMauro Carvalho ChehabThe following attributes are supported. Limits are read-write; all other
587ebd8b66SMauro Carvalho Chehabattributes are read-only.
597ebd8b66SMauro Carvalho Chehab
607ebd8b66SMauro Carvalho Chehab======================= ========================================================
617ebd8b66SMauro Carvalho Chehabin1_label		"vin".
627ebd8b66SMauro Carvalho Chehabin1_input		Measured voltage. From READ_VIN register.
637ebd8b66SMauro Carvalho Chehabin1_min			Minimum Voltage. From VIN_UV_WARN_LIMIT register.
647ebd8b66SMauro Carvalho Chehabin1_max			Maximum voltage. From VIN_OV_WARN_LIMIT register.
657ebd8b66SMauro Carvalho Chehabin1_lcrit		Critical minimum Voltage. VIN_UV_FAULT_LIMIT register.
667ebd8b66SMauro Carvalho Chehabin1_crit		Critical maximum voltage. From VIN_OV_FAULT_LIMIT
677ebd8b66SMauro Carvalho Chehab			register.
687ebd8b66SMauro Carvalho Chehabin1_min_alarm		Voltage low alarm. From VIN_UV_WARNING status.
697ebd8b66SMauro Carvalho Chehabin1_max_alarm		Voltage high alarm. From VIN_OV_WARNING status.
707ebd8b66SMauro Carvalho Chehabin1_lcrit_alarm		Voltage critical low alarm. From VIN_UV_FAULT status.
717ebd8b66SMauro Carvalho Chehabin1_crit_alarm		Voltage critical high alarm. From VIN_OV_FAULT status.
727ebd8b66SMauro Carvalho Chehab
737ebd8b66SMauro Carvalho Chehabin[2-5]_label		"vout[1-4]".
747ebd8b66SMauro Carvalho Chehabin[2-5]_input		Measured voltage. From READ_VOUT register.
757ebd8b66SMauro Carvalho Chehabin[2-5]_min		Minimum Voltage. From VOUT_UV_WARN_LIMIT register.
767ebd8b66SMauro Carvalho Chehabin[2-5]_max		Maximum voltage. From VOUT_OV_WARN_LIMIT register.
777ebd8b66SMauro Carvalho Chehabin[2-5]_lcrit		Critical minimum Voltage. VOUT_UV_FAULT_LIMIT register.
787ebd8b66SMauro Carvalho Chehabin[2-5]_crit		Critical maximum voltage. From VOUT_OV_FAULT_LIMIT
797ebd8b66SMauro Carvalho Chehab			register.
807ebd8b66SMauro Carvalho Chehabin[2-5]_min_alarm	Voltage low alarm. From VOLTAGE_UV_WARNING status.
817ebd8b66SMauro Carvalho Chehabin[2-5]_max_alarm	Voltage high alarm. From VOLTAGE_OV_WARNING status.
827ebd8b66SMauro Carvalho Chehabin[2-5]_lcrit_alarm	Voltage critical low alarm. From VOLTAGE_UV_FAULT
837ebd8b66SMauro Carvalho Chehab			status.
847ebd8b66SMauro Carvalho Chehabin[2-5]_crit_alarm	Voltage critical high alarm. From VOLTAGE_OV_FAULT
857ebd8b66SMauro Carvalho Chehab			status.
867ebd8b66SMauro Carvalho Chehab
877ebd8b66SMauro Carvalho Chehabcurr1_label		"iin".
887ebd8b66SMauro Carvalho Chehabcurr1_input		Measured current. From READ_IIN register.
897ebd8b66SMauro Carvalho Chehab
907ebd8b66SMauro Carvalho Chehabcurr[2-5]_label		"iout[1-4]".
917ebd8b66SMauro Carvalho Chehabcurr[2-5]_input		Measured current. From READ_IOUT register.
927ebd8b66SMauro Carvalho Chehabcurr[2-5]_max		Maximum current. From IOUT_OC_WARN_LIMIT register.
937ebd8b66SMauro Carvalho Chehabcurr[2-5]_lcrit		Critical minimum output current. From
947ebd8b66SMauro Carvalho Chehab			IOUT_UC_FAULT_LIMIT register.
957ebd8b66SMauro Carvalho Chehabcurr[2-5]_crit		Critical maximum current. From IOUT_OC_FAULT_LIMIT
967ebd8b66SMauro Carvalho Chehab			register.
977ebd8b66SMauro Carvalho Chehabcurr[2-5]_max_alarm	Current high alarm. From IOUT_OC_WARNING status.
987ebd8b66SMauro Carvalho Chehabcurr[2-5]_crit_alarm	Current critical high alarm. From IOUT_OC_FAULT status.
997ebd8b66SMauro Carvalho Chehab
1007ebd8b66SMauro Carvalho Chehabpower1_input		Measured input power. From READ_PIN register.
1017ebd8b66SMauro Carvalho Chehabpower1_label		"pin"
1027ebd8b66SMauro Carvalho Chehab
1037ebd8b66SMauro Carvalho Chehabpower[2-5]_input	Measured output power. From READ_POUT register.
1047ebd8b66SMauro Carvalho Chehabpower[2-5]_label	"pout[1-4]"
1057ebd8b66SMauro Carvalho Chehab
1067ebd8b66SMauro Carvalho Chehab			The number of output voltage, current, and power
1077ebd8b66SMauro Carvalho Chehab			attribute sets is determined by the number of enabled
1087ebd8b66SMauro Carvalho Chehab			rails. See chip datasheets for details.
1097ebd8b66SMauro Carvalho Chehab
1107ebd8b66SMauro Carvalho Chehabtemp[1-5]_input		Measured temperatures. From READ_TEMPERATURE_1 and
1117ebd8b66SMauro Carvalho Chehab			READ_TEMPERATURE_2 registers.
1127ebd8b66SMauro Carvalho Chehab			temp1 is the chip internal temperature. temp[2-5] are
1137ebd8b66SMauro Carvalho Chehab			rail temperatures.  temp[2-5] attributes are only
1147ebd8b66SMauro Carvalho Chehab			created for enabled rails. See chip datasheets for
1157ebd8b66SMauro Carvalho Chehab			details.
1167ebd8b66SMauro Carvalho Chehabtemp[1-5]_max		Maximum temperature. From OT_WARN_LIMIT register.
1177ebd8b66SMauro Carvalho Chehabtemp[1-5]_crit		Critical high temperature. From OT_FAULT_LIMIT register.
1187ebd8b66SMauro Carvalho Chehabtemp[1-5]_max_alarm	Temperature high alarm.
1197ebd8b66SMauro Carvalho Chehabtemp[1-5]_crit_alarm	Temperature critical high alarm.
1207ebd8b66SMauro Carvalho Chehab
1217ebd8b66SMauro Carvalho Chehabfan1_input		Fan RPM. ucd9240 only.
1227ebd8b66SMauro Carvalho Chehabfan1_alarm		Fan alarm. ucd9240 only.
1237ebd8b66SMauro Carvalho Chehabfan1_fault		Fan fault. ucd9240 only.
1247ebd8b66SMauro Carvalho Chehab======================= ========================================================
125