sonic-buildimage/device/alphanetworks/x86_64-alphanetworks_bes2348t-r0/pddf/pddf-device.json
juntseng62 23de13feeb
[Alphanetworks] Add new platform BES2348T (#11196)
* Add BES2348T

Signed-off-by: juntseng62 <juntseng62@gmail.com>

* add get_serial_number

Signed-off-by: juntseng62 <juntseng62@gmail.com>

Signed-off-by: juntseng62 <juntseng62@gmail.com>
2022-09-15 21:34:52 -07:00

565 lines
26 KiB
JSON

{
"PLATFORM":
{
"num_psus":2,
"num_fantrays":4,
"num_fans_pertray":1,
"num_ports":52,
"num_temps":5,
"pddf_dev_types":
{
"description":"BES2348T - Below is the list of supported PDDF device types (chip names) for various components. If any component uses some other driver, we will create the client using 'echo <dev-address> <dev-type> > <path>/new_device' method",
"PSU":
[
"psu_eeprom",
"psu_pmbus"
],
"FAN":
[
"fan_ctrl"
],
"PORT_MODULE":
[
"pddf_xcvr"
]
},
"std_perm_kos":
[
"i2c-ismt",
"i2c-i801"
],
"std_kos":
[
"i2c_dev",
"ipmi_devintf",
"i2c_mux_pca954x",
"gpio_pca953x",
"bes2348t_onie_eeprom",
"optoe"
],
"pddf_kos":
[
"pddf_client_module",
"pddf_mux_module",
"pddf_psu_driver_module",
"pddf_psu_module",
"pddf_gpio_module",
"pddf_xcvr_module",
"pddf_xcvr_driver_module",
"pddf_led_module"
],
"custom_kos":
[
"pddf_custom_psu"
]
},
"SYSTEM":
{
"dev_info": {"device_type":"CPU", "device_name":"ROOT_COMPLEX", "device_parent":null},
"i2c":
{
"CONTROLLERS":
[
{ "dev_name":"i2c-1", "dev":"SMBUS0" }
]
}
},
"SMBUS0":
{
"dev_info": {"device_type": "SMBUS", "device_name": "SMBUS0", "device_parent": "SYSTEM"},
"i2c":
{
"topo_info": {"dev_addr": "0x1"},
"DEVICES":
[
{"dev": "EEPROM1"},
{"dev": "MUX1"},
{"dev": "GPIO1" },
{"dev": "TEMP5" }
]
}
},
"EEPROM1":
{
"dev_info": {"device_type": "EEPROM", "device_name": "EEPROM1", "device_parent": "SMBUS0"},
"i2c":
{
"topo_info": {"parent_bus": "0x1", "dev_addr": "0x56", "dev_type": "bes2348t_eeprom"},
"dev_attr": {"access_mode": "BLOCK"},
"attr_list": [
{"attr_name": "eeprom"}
]
}
},
"MUX1":
{
"dev_info": { "device_type":"MUX", "device_name":"MUX1", "device_parent":"SMBUS0"},
"i2c":
{
"topo_info": { "parent_bus":"0x1", "dev_addr":"0x70", "dev_type":"pca9548"},
"dev_attr": { "virt_bus":"0x2"},
"channel":
[
{ "chn":"4", "dev":"PSU2" },
{ "chn":"5", "dev":"PSU1" },
{ "chn":"6", "dev":"GPIO2" },
{ "chn":"6", "dev":"MUX2" }
]
}
},
"GPIO1":
{
"dev_info": { "device_type":"GPIO", "device_name":"GPIO1", "device_parent":"SMBUS0"},
"i2c":
{
"topo_info": { "parent_bus":"0x1", "dev_addr":"0x75", "dev_type":"pca9539"},
"dev_attr": { "gpio_base":"0x1f0"},
"ports":
[
{"port_num":"0", "direction":"out", "value":"0", "edge":"", "active_low":""},
{"port_num":"1", "direction":"out", "value":"0", "edge":"", "active_low":""},
{"port_num":"2", "direction":"out", "value":"0", "edge":"", "active_low":""},
{"port_num":"3", "direction":"out", "value":"0", "edge":"", "active_low":""}
]
}
},
"PSU1":
{
"dev_info": { "device_type":"PSU", "device_name":"PSU1", "device_parent":"MUX1"},
"dev_attr": { "dev_idx":"1", "num_psu_fans": "1"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"psu_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x3", "raw": "1", "type":"mask", "mask":"0x04"},
{ "attr_name":"psu_power_good", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x3", "raw": "1", "type":"mask", "mask":"0x02"}
]
}
},
"i2c":
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU1-PMBUS" }
]
}
},
"PSU1-PMBUS":
{
"dev_info": { "device_type":"PSU-PMBUS", "device_name":"PSU1-PMBUS", "device_parent":"MUX1", "virt_parent":"PSU1"},
"i2c":
{
"topo_info":{ "parent_bus":"0x6", "dev_addr":"0x58", "dev_type":"psu_pmbus"},
"attr_list":
[
{ "attr_name":"psu_model_name", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9a", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"16" },
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"7" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"16" },
{ "attr_name":"psu_v_in", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x88", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_in", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x89", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"PSU2":
{
"dev_info": { "device_type":"PSU", "device_name":"PSU2", "device_parent":"MUX1"},
"dev_attr": { "dev_idx":"2", "num_psu_fans":"1"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"psu_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x4", "raw": "1", "type":"mask", "mask":"0x04"},
{ "attr_name":"psu_power_good", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x4", "raw": "1", "type":"mask", "mask":"0x02"}
]
}
},
"i2c":
{
"interface":
[
{ "itf":"pmbus", "dev":"PSU2-PMBUS"}
]
}
},
"PSU2-PMBUS":
{
"dev_info": {"device_type":"PSU-PMBUS", "device_name":"PSU2-PMBUS", "device_parent":"MUX1", "virt_parent":"PSU2"},
"i2c":
{
"topo_info": { "parent_bus":"0x7", "dev_addr":"0x58", "dev_type":"psu_pmbus"},
"attr_list":
[
{ "attr_name":"psu_model_name", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9a", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"16" },
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"7" },
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x9e", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"16" },
{ "attr_name":"psu_v_in", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x88", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_in", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x89", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_i_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
"GPIO2":
{
"dev_info": { "device_type":"GPIO", "device_name":"GPIO2", "device_parent":"MUX2"},
"i2c":
{
"topo_info": { "parent_bus":"0x8", "dev_addr":"0x76", "dev_type":"pca9539"},
"dev_attr": { "gpio_base":"0x1e0"},
"ports":
[
{"port_num":"0", "direction":"out", "value":"1", "edge":"", "active_low":""},
{"port_num":"1", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"2", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"3", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"4", "direction":"out", "value":"1", "edge":"", "active_low":""},
{"port_num":"5", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"6", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"7", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"8", "direction":"out", "value":"1", "edge":"", "active_low":""},
{"port_num":"9", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"10", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"11", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"12", "direction":"out", "value":"1", "edge":"", "active_low":""},
{"port_num":"13", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"14", "direction":"in", "value":"", "edge":"", "active_low":""},
{"port_num":"15", "direction":"in", "value":"", "edge":"", "active_low":""}
]
}
},
"TEMP5":
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP5", "device_parent":"SMBUS0"},
"dev_attr": { "display_name":"TMP75#2_Temp"},
"i2c":
{
"topo_info": { "parent_bus":"0x1", "dev_addr":"0x4f", "dev_type":"lm75"},
"attr_list":
[
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
{ "attr_name": "temp1_max_hyst"},
{ "attr_name": "temp1_input"}
]
}
},
"MUX2":
{
"dev_info": { "device_type":"MUX", "device_name":"MUX2", "device_parent":"MUX1"},
"i2c":
{
"topo_info": { "parent_bus":"0x8", "dev_addr":"0x72", "dev_type":"pca9548"},
"dev_attr": { "virt_bus":"0xa"},
"channel":
[
{ "chn":"0", "dev":"PORT49" },
{ "chn":"1", "dev":"PORT50" },
{ "chn":"2", "dev":"PORT51" },
{ "chn":"3", "dev":"PORT52" }
]
}
},
"PORT49":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT49", "device_parent":"MUX2"},
"dev_attr": { "dev_idx":"49"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT49-EEPROM" },
{ "itf":"control", "dev":"PORT49-CTRL" }
]
}
},
"PORT49-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT49-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT49"},
"i2c":
{
"topo_info": { "parent_bus":"0xa", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT49-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT49-CTRL", "device_parent":"MUX2", "virt_parent":"PORT49"},
"i2c":
{
"topo_info": { "parent_bus":"0xa", "dev_addr":"0x66", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_txfault", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x1", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_txdisable", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x0", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_present", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x2", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_rxlos", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x3", "attr_mask":"", "attr_cmpval":"", "attr_len":""}
]
}
},
"PORT50":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT50", "device_parent":"MUX2"},
"dev_attr": { "dev_idx":"50"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT50-EEPROM" },
{ "itf":"control", "dev":"PORT50-CTRL" }
]
}
},
"PORT50-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT50-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT50"},
"i2c":
{
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT50-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT50-CTRL", "device_parent":"MUX2", "virt_parent":"PORT50"},
"i2c":
{
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x66", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_txfault", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x5", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_txdisable", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x4", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_present", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x6", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_rxlos", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x7", "attr_mask":"", "attr_cmpval":"", "attr_len":""}
]
}
},
"PORT51":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT51", "device_parent":"MUX2"},
"dev_attr": { "dev_idx":"51"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT51-EEPROM" },
{ "itf":"control", "dev":"PORT51-CTRL" }
]
}
},
"PORT51-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT51-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT51"},
"i2c":
{
"topo_info": { "parent_bus":"0xc", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT51-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT51-CTRL", "device_parent":"MUX2", "virt_parent":"PORT51"},
"i2c":
{
"topo_info": { "parent_bus":"0xc", "dev_addr":"0x66", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_txfault", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x9", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_txdisable", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0x8", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_present", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xa", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_rxlos", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xb", "attr_mask":"", "attr_cmpval":"", "attr_len":""}
]
}
},
"PORT52":
{
"dev_info": { "device_type":"SFP28", "device_name":"PORT52", "device_parent":"MUX2"},
"dev_attr": { "dev_idx":"52"},
"i2c":
{
"interface":
[
{ "itf":"eeprom", "dev":"PORT52-EEPROM" },
{ "itf":"control", "dev":"PORT52-CTRL" }
]
}
},
"PORT52-EEPROM":
{
"dev_info": { "device_type":"", "device_name":"PORT52-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT52"},
"i2c":
{
"topo_info": { "parent_bus":"0xd", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
]
}
},
"PORT52-CTRL":
{
"dev_info": { "device_type":"", "device_name":"PORT52-CTRL", "device_parent":"MUX2", "virt_parent":"PORT52"},
"i2c":
{
"topo_info": { "parent_bus":"0xd", "dev_addr":"0x66", "dev_type":"pddf_xcvr"},
"attr_list":
[
{ "attr_name":"xcvr_txfault", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xd", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_txdisable", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xc", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_present", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xe", "attr_mask":"", "attr_cmpval":"", "attr_len":""},
{ "attr_name":"xcvr_rxlos", "attr_devaddr":"0x76", "attr_devtype":"gpio", "attr_devname":"GPIO2", "attr_offset":"0xf", "attr_mask":"", "attr_cmpval":"", "attr_len":""}
]
}
},
"FAN-CTRL":
{
"dev_info": { "device_type":"FAN"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"fan1_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x11", "raw": "1", "type":"mask", "mask":"0x02"},
{ "attr_name":"fan2_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x12", "raw": "1", "type":"mask", "mask":"0x02"},
{ "attr_name":"fan3_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x13", "raw": "1", "type":"mask", "mask":"0x02"},
{ "attr_name":"fan4_present", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x14", "raw": "1", "type":"mask", "mask":"0x02"},
{ "attr_name":"fan1_direction", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x11", "raw": "1", "type":"mask", "mask":"0x01"},
{ "attr_name":"fan2_direction", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x12", "raw": "1", "type":"mask", "mask":"0x01"},
{ "attr_name":"fan3_direction", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x13", "raw": "1", "type":"mask", "mask":"0x01"},
{ "attr_name":"fan4_direction", "bmc_cmd":"ipmitool raw 0x06 0x52 0x09 0xbe 0x1 0x14", "raw": "1", "type":"mask", "mask":"0x01"},
{ "attr_name":"fan1_input", "bmc_cmd":"ipmitool sensor reading Fan01", "raw":"0", "field_name" : "Fan01", "separator":"|", "field_pos":"2", "mult":"1"},
{ "attr_name":"fan2_input", "bmc_cmd":"ipmitool sensor reading Fan02", "raw":"0", "field_name" : "Fan02", "separator":"|", "field_pos":"2", "mult":"1"},
{ "attr_name":"fan3_input", "bmc_cmd":"ipmitool sensor reading Fan03", "raw":"0", "field_name" : "Fan03", "separator":"|", "field_pos":"2", "mult":"1"},
{ "attr_name":"fan4_input", "bmc_cmd":"ipmitool sensor reading Fan04", "raw":"0", "field_name" : "Fan04", "separator":"|", "field_pos":"2", "mult":"1"},
{ "attr_name":"fan1_pwm", "bmc_cmd":"ipmitool raw 0x34 0x03 0x1", "raw": "1", "type":"raw"},
{ "attr_name":"fan2_pwm", "bmc_cmd":"ipmitool raw 0x34 0x03 0x2", "raw": "1", "type":"raw"},
{ "attr_name":"fan3_pwm", "bmc_cmd":"ipmitool raw 0x34 0x03 0x3", "raw": "1", "type":"raw"},
{ "attr_name":"fan4_pwm", "bmc_cmd":"ipmitool raw 0x34 0x03 0x4", "raw": "1", "type":"raw"}
]
}
}
},
"TEMP1":
{
"dev_info": { "device_type":"TEMP_SENSOR"},
"dev_attr": { "display_name":"TMP75#0_Temp"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"temp1_high_crit_threshold", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x90 0x1 0x3", "raw":"1", "type":"raw"},
{ "attr_name":"temp1_high_threshold", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x90 0x1 0x2", "raw":"1", "type":"raw"},
{ "attr_name":"temp1_input", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x90 0x1 0x0", "raw":"1", "type":"raw"}
]
}
}
},
"TEMP2":
{
"dev_info": { "device_type":"TEMP_SENSOR"},
"dev_attr": { "display_name":"TMP75#1_Temp"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"temp1_high_crit_threshold", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x92 0x1 0x3", "raw":"1", "type":"raw"},
{ "attr_name":"temp1_high_threshold", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x92 0x1 0x2", "raw":"1", "type":"raw"},
{ "attr_name":"temp1_input", "bmc_cmd":"ipmitool raw 0x06 0x52 0x0B 0x92 0x1 0x0", "raw":"1", "type":"raw"}
]
}
}
},
"TEMP3":
{
"dev_info": { "device_type":"TEMP_SENSOR"},
"dev_attr": { "display_name":"TMP435#L_Temp"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"temp1_high_crit_threshold", "bmc_cmd":"ipmitool sensor get TMP435#L_Temp", "raw":"0", "field_name":"Upper Critical", "separator":": ", "field_pos":"2"},
{ "attr_name":"temp1_high_threshold", "bmc_cmd":"ipmitool sensor get TMP435#L_Temp", "raw":"0", "field_name":"Upper Non-Critical", "separator":": ", "field_pos":"2"},
{ "attr_name":"temp1_input", "bmc_cmd":"ipmitool sensor reading TMP435#L_Temp", "raw":"0", "field_name" : "TMP435#L_Temp", "separator":"| ", "field_pos":"2"}
]
}
}
},
"TEMP4":
{
"dev_info": { "device_type":"TEMP_SENSOR"},
"dev_attr": { "display_name":"TMP435#R_Temp"},
"bmc": {
"ipmitool" : {
"attr_list":
[
{ "attr_name":"temp1_high_crit_threshold", "bmc_cmd":"ipmitool sensor get TMP435#R_Temp", "raw":"0", "field_name":"Upper Critical", "separator":": ", "field_pos":"2"},
{ "attr_name":"temp1_high_threshold", "bmc_cmd":"ipmitool sensor get TMP435#L_Temp", "raw":"0", "field_name":"Upper Non-Critical", "separator":": ", "field_pos":"2"},
{ "attr_name":"temp1_input", "bmc_cmd":"ipmitool sensor reading TMP435#R_Temp", "raw":"0", "field_name" : "TMP435#R_Temp", "separator":"| ", "field_pos":"2"}
]
}
}
},
"SYS_LED" : { "dev_info": { "device_type":"LED", "device_name":"SYS_LED"},
"dev_attr": { "index":"0"},
"i2c": {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Green", "value" : "0x2", "swpld_addr" : "", "swpld_addr_offset" :"0x0"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Amber", "value" : "0x1", "swpld_addr" : "", "swpld_addr_offset" :"0x0"},
{"attr_name":"STATUS_LED_COLOR_OFF", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Off", "value" : "0x0", "swpld_addr" : "", "swpld_addr_offset" :"0x0"}
]
}
},
"FAN_LED" : { "dev_info": { "device_type":"LED", "device_name":"FAN_LED"},
"dev_attr": { "index":"0"},
"i2c": {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Green", "value" : "0x2", "swpld_addr" : "", "swpld_addr_offset" :"0x2"},
{"attr_name":"STATUS_LED_COLOR_AMBER", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Amber", "value" : "0x1", "swpld_addr" : "", "swpld_addr_offset" :"0x2"},
{"attr_name":"STATUS_LED_COLOR_OFF", "attr_devtype":"gpio", "attr_devname":"GPIO1", "bits" : "1:0", "descr" :"Off", "value" : "0x0", "swpld_addr" : "", "swpld_addr_offset" :"0x2"}
]
}
}
}