OpenBIC
OpenSource Bridge-IC
pmbus.h File Reference
#include "../../zephyr/include/sys/util.h"
Include dependency graph for pmbus.h:

Go to the source code of this file.

Enumerations

enum  PMBUS_PAGE_NUM { PMBUS_PAGE_0 , PMBUS_PAGE_1 , PMBUS_PAGE_2 , PMBUS_PAGE_3 }
 
enum  pmbus_regs {
  PMBUS_PAGE = 0x00 , PMBUS_OPERATION = 0x01 , PMBUS_ON_OFF_CONFIG = 0x02 , PMBUS_CLEAR_FAULTS = 0x03 ,
  PMBUS_PHASE = 0x04 , PMBUS_PAGE_PLUS_WRITE = 0x05 , PMBUS_PAGE_PLUS_READ = 0x06 , PMBUS_WRITE_PROTECT = 0x10 ,
  PMBUS_CAPABILITY = 0x19 , PMBUS_QUERY = 0x1A , PMBUS_VOUT_MODE = 0x20 , PMBUS_VOUT_COMMAND = 0x21 ,
  PMBUS_VOUT_TRIM = 0x22 , PMBUS_VOUT_CAL_OFFSET = 0x23 , PMBUS_VOUT_MAX = 0x24 , PMBUS_VOUT_MARGIN_HIGH = 0x25 ,
  PMBUS_VOUT_MARGIN_LOW = 0x26 , PMBUS_VOUT_TRANSITION_RATE = 0x27 , PMBUS_VOUT_DROOP = 0x28 , PMBUS_VOUT_SCALE_LOOP = 0x29 ,
  PMBUS_VOUT_SCALE_MONITOR = 0x2A , PMBUS_COEFFICIENTS = 0x30 , PMBUS_POUT_MAX = 0x31 , PMBUS_IOUT_CAL_GAIN = 0x38 ,
  PMBUS_FAN_CONFIG_12 = 0x3A , PMBUS_FAN_COMMAND_1 = 0x3B , PMBUS_FAN_COMMAND_2 = 0x3C , PMBUS_FAN_CONFIG_34 = 0x3D ,
  PMBUS_FAN_COMMAND_3 = 0x3E , PMBUS_FAN_COMMAND_4 = 0x3F , PMBUS_VOUT_OV_FAULT_LIMIT = 0x40 , PMBUS_VOUT_OV_FAULT_RESPONSE = 0x41 ,
  PMBUS_VOUT_OV_WARN_LIMIT = 0x42 , PMBUS_VOUT_UV_WARN_LIMIT = 0x43 , PMBUS_VOUT_UV_FAULT_LIMIT = 0x44 , PMBUS_VOUT_UV_FAULT_RESPONSE = 0x45 ,
  PMBUS_IOUT_OC_FAULT_LIMIT = 0x46 , PMBUS_IOUT_OC_FAULT_RESPONSE = 0x47 , PMBUS_IOUT_OC_LV_FAULT_LIMIT = 0x48 , PMBUS_IOUT_OC_LV_FAULT_RESPONSE = 0x49 ,
  PMBUS_IOUT_OC_WARN_LIMIT = 0x4A , PMBUS_IOUT_UC_FAULT_LIMIT = 0x4B , PMBUS_IOUT_UC_FAULT_RESPONSE = 0x4C , PMBUS_OT_FAULT_LIMIT = 0x4F ,
  PMBUS_OT_FAULT_RESPONSE = 0x50 , PMBUS_OT_WARN_LIMIT = 0x51 , PMBUS_UT_WARN_LIMIT = 0x52 , PMBUS_UT_FAULT_LIMIT = 0x53 ,
  PMBUS_UT_FAULT_RESPONSE = 0x54 , PMBUS_VIN_OV_FAULT_LIMIT = 0x55 , PMBUS_VIN_OV_FAULT_RESPONSE = 0x56 , PMBUS_VIN_OV_WARN_LIMIT = 0x57 ,
  PMBUS_VIN_UV_WARN_LIMIT = 0x58 , PMBUS_VIN_UV_FAULT_LIMIT = 0x59 , PMBUS_IIN_OC_FAULT_LIMIT = 0x5B , PMBUS_IIN_OC_WARN_LIMIT = 0x5D ,
  PMBUS_POUT_OP_FAULT_LIMIT = 0x68 , PMBUS_POUT_OP_FAULT_RESPONSE = 0x69 , PMBUS_POUT_OP_WARN_LIMIT = 0x6A , PMBUS_PIN_OP_WARN_LIMIT = 0x6B ,
  PMBUS_STATUS_BYTE = 0x78 , PMBUS_STATUS_WORD = 0x79 , PMBUS_STATUS_VOUT = 0x7A , PMBUS_STATUS_IOUT = 0x7B ,
  PMBUS_STATUS_INPUT = 0x7C , PMBUS_STATUS_TEMPERATURE = 0x7D , PMBUS_STATUS_CML = 0x7E , PMBUS_STATUS_OTHER = 0x7F ,
  PMBUS_STATUS_MFR_SPECIFIC = 0x80 , PMBUS_STATUS_FAN_12 = 0x81 , PMBUS_STATUS_FAN_34 = 0x82 , PMBUS_READ_EIN = 0x86 ,
  PMBUS_READ_VIN = 0x88 , PMBUS_READ_IIN = 0x89 , PMBUS_READ_VCAP = 0x8A , PMBUS_READ_VOUT = 0x8B ,
  PMBUS_READ_IOUT = 0x8C , PMBUS_READ_TEMPERATURE_1 = 0x8D , PMBUS_READ_TEMPERATURE_2 = 0x8E , PMBUS_READ_TEMPERATURE_3 = 0x8F ,
  PMBUS_READ_FAN_SPEED_1 = 0x90 , PMBUS_READ_FAN_SPEED_2 = 0x91 , PMBUS_READ_FAN_SPEED_3 = 0x92 , PMBUS_READ_FAN_SPEED_4 = 0x93 ,
  PMBUS_READ_DUTY_CYCLE = 0x94 , PMBUS_READ_FREQUENCY = 0x95 , PMBUS_READ_POUT = 0x96 , PMBUS_READ_PIN = 0x97 ,
  PMBUS_REVISION = 0x98 , PMBUS_MFR_ID = 0x99 , PMBUS_MFR_MODEL = 0x9A , PMBUS_MFR_REVISION = 0x9B ,
  PMBUS_MFR_LOCATION = 0x9C , PMBUS_MFR_DATE = 0x9D , PMBUS_MFR_SERIAL = 0x9E , PMBUS_MFR_VIN_MIN = 0xA0 ,
  PMBUS_MFR_VIN_MAX = 0xA1 , PMBUS_MFR_IIN_MAX = 0xA2 , PMBUS_MFR_PIN_MAX = 0xA3 , PMBUS_MFR_VOUT_MIN = 0xA4 ,
  PMBUS_MFR_VOUT_MAX = 0xA5 , PMBUS_MFR_IOUT_MAX = 0xA6 , PMBUS_MFR_POUT_MAX = 0xA7 , PMBUS_IC_DEVICE_ID = 0xAD ,
  PMBUS_IC_DEVICE_REV = 0xAE , PMBUS_MFR_MAX_TEMP_1 = 0xC0 , PMBUS_MFR_MAX_TEMP_2 = 0xC1 , PMBUS_MFR_MAX_TEMP_3 = 0xC2
}
 
enum  PMBUS_STATUS_REG_BIT {
  PMBUS_NO_LISTED_FAULT = BIT(0) , PMBUS_CML_FAULT = BIT(1) , PMBUS_TEMPERATURE_WARNING_FAULT = BIT(2) , PMBUS_UNDER_VOLTAGE_FAULT = BIT(3) ,
  PMBUS_OVER_CURRENT_FAULT = BIT(4) , PMBUS_OVER_VOLTAGE_FAULT = BIT(5) , PMBUS_POWER_OFF_FAULT = BIT(6) , PMBUS_POWER_GOOD_FAULT = BIT(11) ,
  PMBUS_MFR_SPECIFIC_FAULT = BIT(12) , PMBUS_INPUT_VOLTAGE_FAULT = BIT(13) , PMBUS_OUTPUT_CURRENT_WARNING_FAULT = BIT(14) , PMBUS_OUTPUT_VOLTAGE_WARNING_FAULT = BIT(15)
}
 

Enumeration Type Documentation

◆ PMBUS_PAGE_NUM

Enumerator
PMBUS_PAGE_0 
PMBUS_PAGE_1 
PMBUS_PAGE_2 
PMBUS_PAGE_3 

◆ pmbus_regs

enum pmbus_regs
Enumerator
PMBUS_PAGE 
PMBUS_OPERATION 
PMBUS_ON_OFF_CONFIG 
PMBUS_CLEAR_FAULTS 
PMBUS_PHASE 
PMBUS_PAGE_PLUS_WRITE 
PMBUS_PAGE_PLUS_READ 
PMBUS_WRITE_PROTECT 
PMBUS_CAPABILITY 
PMBUS_QUERY 
PMBUS_VOUT_MODE 
PMBUS_VOUT_COMMAND 
PMBUS_VOUT_TRIM 
PMBUS_VOUT_CAL_OFFSET 
PMBUS_VOUT_MAX 
PMBUS_VOUT_MARGIN_HIGH 
PMBUS_VOUT_MARGIN_LOW 
PMBUS_VOUT_TRANSITION_RATE 
PMBUS_VOUT_DROOP 
PMBUS_VOUT_SCALE_LOOP 
PMBUS_VOUT_SCALE_MONITOR 
PMBUS_COEFFICIENTS 
PMBUS_POUT_MAX 
PMBUS_IOUT_CAL_GAIN 
PMBUS_FAN_CONFIG_12 
PMBUS_FAN_COMMAND_1 
PMBUS_FAN_COMMAND_2 
PMBUS_FAN_CONFIG_34 
PMBUS_FAN_COMMAND_3 
PMBUS_FAN_COMMAND_4 
PMBUS_VOUT_OV_FAULT_LIMIT 
PMBUS_VOUT_OV_FAULT_RESPONSE 
PMBUS_VOUT_OV_WARN_LIMIT 
PMBUS_VOUT_UV_WARN_LIMIT 
PMBUS_VOUT_UV_FAULT_LIMIT 
PMBUS_VOUT_UV_FAULT_RESPONSE 
PMBUS_IOUT_OC_FAULT_LIMIT 
PMBUS_IOUT_OC_FAULT_RESPONSE 
PMBUS_IOUT_OC_LV_FAULT_LIMIT 
PMBUS_IOUT_OC_LV_FAULT_RESPONSE 
PMBUS_IOUT_OC_WARN_LIMIT 
PMBUS_IOUT_UC_FAULT_LIMIT 
PMBUS_IOUT_UC_FAULT_RESPONSE 
PMBUS_OT_FAULT_LIMIT 
PMBUS_OT_FAULT_RESPONSE 
PMBUS_OT_WARN_LIMIT 
PMBUS_UT_WARN_LIMIT 
PMBUS_UT_FAULT_LIMIT 
PMBUS_UT_FAULT_RESPONSE 
PMBUS_VIN_OV_FAULT_LIMIT 
PMBUS_VIN_OV_FAULT_RESPONSE 
PMBUS_VIN_OV_WARN_LIMIT 
PMBUS_VIN_UV_WARN_LIMIT 
PMBUS_VIN_UV_FAULT_LIMIT 
PMBUS_IIN_OC_FAULT_LIMIT 
PMBUS_IIN_OC_WARN_LIMIT 
PMBUS_POUT_OP_FAULT_LIMIT 
PMBUS_POUT_OP_FAULT_RESPONSE 
PMBUS_POUT_OP_WARN_LIMIT 
PMBUS_PIN_OP_WARN_LIMIT 
PMBUS_STATUS_BYTE 
PMBUS_STATUS_WORD 
PMBUS_STATUS_VOUT 
PMBUS_STATUS_IOUT 
PMBUS_STATUS_INPUT 
PMBUS_STATUS_TEMPERATURE 
PMBUS_STATUS_CML 
PMBUS_STATUS_OTHER 
PMBUS_STATUS_MFR_SPECIFIC 
PMBUS_STATUS_FAN_12 
PMBUS_STATUS_FAN_34 
PMBUS_READ_EIN 
PMBUS_READ_VIN 
PMBUS_READ_IIN 
PMBUS_READ_VCAP 
PMBUS_READ_VOUT 
PMBUS_READ_IOUT 
PMBUS_READ_TEMPERATURE_1 
PMBUS_READ_TEMPERATURE_2 
PMBUS_READ_TEMPERATURE_3 
PMBUS_READ_FAN_SPEED_1 
PMBUS_READ_FAN_SPEED_2 
PMBUS_READ_FAN_SPEED_3 
PMBUS_READ_FAN_SPEED_4 
PMBUS_READ_DUTY_CYCLE 
PMBUS_READ_FREQUENCY 
PMBUS_READ_POUT 
PMBUS_READ_PIN 
PMBUS_REVISION 
PMBUS_MFR_ID 
PMBUS_MFR_MODEL 
PMBUS_MFR_REVISION 
PMBUS_MFR_LOCATION 
PMBUS_MFR_DATE 
PMBUS_MFR_SERIAL 
PMBUS_MFR_VIN_MIN 
PMBUS_MFR_VIN_MAX 
PMBUS_MFR_IIN_MAX 
PMBUS_MFR_PIN_MAX 
PMBUS_MFR_VOUT_MIN 
PMBUS_MFR_VOUT_MAX 
PMBUS_MFR_IOUT_MAX 
PMBUS_MFR_POUT_MAX 
PMBUS_IC_DEVICE_ID 
PMBUS_IC_DEVICE_REV 
PMBUS_MFR_MAX_TEMP_1 
PMBUS_MFR_MAX_TEMP_2 
PMBUS_MFR_MAX_TEMP_3 

◆ PMBUS_STATUS_REG_BIT

Enumerator
PMBUS_NO_LISTED_FAULT 
PMBUS_CML_FAULT 
PMBUS_TEMPERATURE_WARNING_FAULT 
PMBUS_UNDER_VOLTAGE_FAULT 
PMBUS_OVER_CURRENT_FAULT 
PMBUS_OVER_VOLTAGE_FAULT 
PMBUS_POWER_OFF_FAULT 
PMBUS_POWER_GOOD_FAULT 
PMBUS_MFR_SPECIFIC_FAULT 
PMBUS_INPUT_VOLTAGE_FAULT 
PMBUS_OUTPUT_CURRENT_WARNING_FAULT 
PMBUS_OUTPUT_VOLTAGE_WARNING_FAULT