f9a29ef056
* [AS4630-54PE] Add to support PDDF Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw> * Fix LGTM alerts * Fix LGTM alerts * Fix LGTM alerts * Add post_device.sh to turn off stk led * Add to support system_health * Correct the wait and timeout mechanism for better CPU usage * Add event.c to support port evt change Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
639 lines
25 KiB
JSON
639 lines
25 KiB
JSON
{
|
|
"PLATFORM":
|
|
{
|
|
"num_psus":2,
|
|
"num_fantrays":3,
|
|
"num_fans_pertray":1,
|
|
"num_ports":54,
|
|
"num_temps": 3,
|
|
"pddf_dev_types":
|
|
{
|
|
"description":"AS4630 - 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",
|
|
"CPLD":
|
|
[
|
|
"i2c_cpld"
|
|
],
|
|
"PSU":
|
|
[
|
|
"psu_eeprom",
|
|
"psu_pmbus"
|
|
],
|
|
"FAN":
|
|
[
|
|
"fan_ctrl",
|
|
"fan_eeprom",
|
|
"fan_cpld"
|
|
],
|
|
"PORT_MODULE":
|
|
[
|
|
"pddf_xcvr"
|
|
]
|
|
|
|
},
|
|
"std_kos":
|
|
[
|
|
"i2c_dev",
|
|
"i2c_mux_pca954x force_deselect_on_exit=1",
|
|
"optoe"
|
|
],
|
|
"description":"kernel modules are loaded while moving to pdf mode, but they should not be unloaded while moving to nonpddf mode.",
|
|
"std_perm_kos":
|
|
[
|
|
"i2c-i801",
|
|
"i2c-ismt"
|
|
],
|
|
|
|
"pddf_kos":
|
|
[
|
|
"pddf_client_module",
|
|
"pddf_cpld_module",
|
|
"pddf_cpld_driver",
|
|
"pddf_mux_module",
|
|
"pddf_xcvr_module",
|
|
"pddf_xcvr_driver_module",
|
|
"pddf_psu_driver_module",
|
|
"pddf_psu_module",
|
|
"pddf_fan_driver_module",
|
|
"pddf_fan_module",
|
|
"pddf_led_module"
|
|
]
|
|
},
|
|
|
|
"SYSTEM":
|
|
{
|
|
"dev_info": {"device_type":"CPU", "device_name":"ROOT_COMPLEX", "device_parent":null},
|
|
"i2c":
|
|
{
|
|
"CONTROLLERS":
|
|
[
|
|
{ "dev_name":"i2c-1", "dev":"SMBUS1" }
|
|
]
|
|
}
|
|
},
|
|
|
|
"SMBUS1":
|
|
{
|
|
"dev_info": {"device_type": "SMBUS", "device_name": "SMBUS1", "device_parent": "SYSTEM"},
|
|
"i2c":
|
|
{
|
|
"topo_info": {"dev_addr": "0x1"},
|
|
"DEVICES":
|
|
[
|
|
{"dev": "EEPROM1"},
|
|
{"dev": "MUX1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"EEPROM1":
|
|
{
|
|
"dev_info": {"device_type": "EEPROM", "device_name": "EEPROM1", "device_parent": "SMBUS1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": {"parent_bus": "0x1", "dev_addr": "0x57", "dev_type": "24c02"},
|
|
"dev_attr": {"access_mode": "BLOCK"},
|
|
"attr_list": [
|
|
{"attr_name": "eeprom"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"MUX1":
|
|
{
|
|
"dev_info": { "device_type":"MUX", "device_name":"MUX1", "device_parent":"SMBUS1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x1", "dev_addr":"0x77", "dev_type":"pca9548"},
|
|
"dev_attr": { "virt_bus":"0x2"},
|
|
"channel":
|
|
[
|
|
{ "chn":"0", "dev":"MUX2" },
|
|
{ "chn":"1", "dev":"MUX3" },
|
|
{ "chn":"1", "dev":"CPLD1" },
|
|
{ "chn":"1", "dev":"FAN-CTRL" }
|
|
]
|
|
}
|
|
},
|
|
|
|
"MUX2":
|
|
{
|
|
"dev_info": { "device_type":"MUX", "device_name":"MUX2", "device_parent":"MUX1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x2", "dev_addr":"0x71", "dev_type":"pca9548"},
|
|
"dev_attr": { "virt_bus":"0xa"},
|
|
"channel":
|
|
[
|
|
{ "chn":"0", "dev":"PSU1" },
|
|
{ "chn":"1", "dev":"PSU2" },
|
|
{ "chn":"4", "dev":"TEMP1" }
|
|
]
|
|
}
|
|
},
|
|
|
|
"TEMP1" :
|
|
{
|
|
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX2"},
|
|
"dev_attr": { "display_name":"Temp_1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0xe", "dev_addr":"0x48", "dev_type":"lm77"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp1_crit"},
|
|
{ "attr_name": "temp1_crit_hyst"},
|
|
{ "attr_name": "temp1_crit_alarm"},
|
|
{ "attr_name": "temp1_max_alarm"},
|
|
{ "attr_name": "temp1_min_alarm"},
|
|
{ "attr_name": "temp1_input"},
|
|
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
|
|
{ "attr_name": "temp1_low_threshold", "drv_attr_name":"temp1_min"},
|
|
{ "attr_name": "temp1_max_hyst"},
|
|
{ "attr_name": "temp1_min_hyst"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"MUX3":
|
|
{
|
|
"dev_info": { "device_type":"MUX", "device_name":"MUX3", "device_parent":"MUX1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x70", "dev_type":"pca9548"},
|
|
"dev_attr": { "virt_bus":"0x12"},
|
|
"channel":
|
|
[
|
|
{ "chn":"0", "dev":"PORT49" },
|
|
{ "chn":"1", "dev":"PORT50" },
|
|
{ "chn":"2", "dev":"PORT51" },
|
|
{ "chn":"3", "dev":"PORT52" },
|
|
{ "chn":"4", "dev":"PORT53" },
|
|
{ "chn":"5", "dev":"PORT54" },
|
|
{ "chn":"6", "dev":"TEMP2" },
|
|
{ "chn":"7", "dev":"TEMP3" }
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"TEMP2" :
|
|
{
|
|
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX3"},
|
|
"dev_attr": { "display_name":"Temp_CPU"},
|
|
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x18", "dev_addr":"0x4b", "dev_type":"lm75"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
|
|
{ "attr_name": "temp1_max_hyst"},
|
|
{ "attr_name": "temp1_input"}
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"TEMP3" :
|
|
{
|
|
"dev_info": { "device_type":"TEMP_SENSOR", "device_parent":"MUX3"},
|
|
"dev_attr": { "display_name":"Temp_Fan"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x19", "dev_addr":"0x4a", "dev_type":"lm75"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp1_max"},
|
|
{ "attr_name": "temp1_max_hyst"},
|
|
{ "attr_name": "temp1_input"}
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"CPLD1":
|
|
{
|
|
"dev_info": { "device_type":"CPLD", "device_name":"CPLD1", "device_parent":"MUX1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x60", "dev_type":"i2c_cpld"}
|
|
}
|
|
},
|
|
|
|
|
|
"FAN-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"FAN", "device_name":"FAN-CTRL", "device_parent":"MUX1"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x66", "dev_type":"fan_cpld"},
|
|
"dev_attr": { "num_fantrays":"3"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"fan1_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x1", "attr_cmpval":"0x0", "attr_len":"1"},
|
|
{ "attr_name":"fan2_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"},
|
|
{ "attr_name":"fan3_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x4", "attr_cmpval":"0x0", "attr_len":"1"},
|
|
{ "attr_name":"fan1_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x10", "attr_cmpval":"0x10", "attr_len":"1"},
|
|
{ "attr_name":"fan2_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x20", "attr_cmpval":"0x20", "attr_len":"1"},
|
|
{ "attr_name":"fan3_direction", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x87", "attr_mask":"0x40", "attr_cmpval":"0x40", "attr_len":"1"},
|
|
{ "attr_name":"fan1_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x88", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114", "attr_is_divisor":0},
|
|
{ "attr_name":"fan2_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x89", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114" , "attr_is_divisor":0},
|
|
{ "attr_name":"fan3_input", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x8a", "attr_mask":"0xFF", "attr_len":"1", "attr_mult":"114", "attr_is_divisor":0},
|
|
{ "attr_name":"fan1_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1a", "attr_mask":"0x1F", "attr_len":"1"},
|
|
{ "attr_name":"fan2_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1a", "attr_mask":"0x1F", "attr_len":"1"},
|
|
{ "attr_name":"fan3_pwm", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x1b", "attr_mask":"0x1F", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"SYS_LED":
|
|
{
|
|
"dev_info": { "device_type":"LED", "device_name":"SYS_LED"},
|
|
"dev_attr": { "index":"0"},
|
|
"i2c" : {
|
|
"attr_list":
|
|
[
|
|
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "7:5", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_GREEN_BLINK", "bits" : "7:5", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "7:5", "descr" : "", "value" : "0x4", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_AMBER_BLINK", "bits" : "7:5", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "7:5", "descr" : "", "value" : "0x7", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"}
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"PSU1_LED":
|
|
{
|
|
"dev_info": { "device_type":"LED", "device_name":"PSU_LED"},
|
|
"dev_attr": { "index":"0"},
|
|
"i2c" : {
|
|
"attr_list":
|
|
[
|
|
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "1:0", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "1:0", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"},
|
|
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "1:0", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x30"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PSU2_LED":
|
|
{
|
|
"dev_info": { "device_type":"LED", "device_name":"PSU_LED"},
|
|
"dev_attr": { "index":"1"},
|
|
"i2c" : {
|
|
"attr_list":
|
|
[
|
|
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "7:6", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
|
|
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "7:6", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
|
|
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "7:6", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"FAN_LED":
|
|
{
|
|
"dev_info": { "device_type":"LED", "device_name":"FAN_LED"},
|
|
"dev_attr": { "index":"0"},
|
|
"i2c" : {
|
|
"attr_list":
|
|
[
|
|
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "3:2", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
|
|
{"attr_name":"STATUS_LED_COLOR_AMBER", "bits" : "3:2", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"},
|
|
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "3:2", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x31"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PSU1":
|
|
{
|
|
"dev_info": { "device_type":"PSU", "device_name":"PSU1", "device_parent":"MUX2"},
|
|
"dev_attr": { "dev_idx":"1", "num_psu_fans": "1"},
|
|
"i2c":
|
|
{
|
|
"interface":
|
|
[
|
|
{ "itf":"pmbus", "dev":"PSU1-PMBUS" },
|
|
{ "itf":"eeprom", "dev":"PSU1-EEPROM" }
|
|
]
|
|
|
|
}
|
|
},
|
|
|
|
"PSU1-PMBUS":
|
|
{
|
|
"dev_info": { "device_type":"PSU-PMBUS", "device_name":"PSU1-PMBUS", "device_parent":"MUX2", "virt_parent":"PSU1"},
|
|
"i2c":
|
|
{
|
|
"topo_info":{ "parent_bus":"0xa", "dev_addr":"0x58", "dev_type":"psu_pmbus"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
|
|
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
|
|
{ "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"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PSU1-EEPROM":
|
|
{
|
|
"dev_info": { "device_type":"PSU-EEPROM", "device_name":"PSU1-EEPROM", "device_parent":"MUX2", "virt_parent":"PSU1"},
|
|
"i2c":
|
|
{
|
|
"topo_info":{ "parent_bus":"0xa", "dev_addr":"0x50", "dev_type":"psu_eeprom"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x20", "attr_cmpval":"0x0", "attr_len":"1"},
|
|
{ "attr_name":"psu_model_name", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x20", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"12" },
|
|
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x40", "attr_cmpval":"0x40", "attr_len":"1"},
|
|
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x50", "attr_devtype":"eeprom", "attr_offset":"0x35", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"19" }
|
|
]
|
|
}
|
|
},
|
|
|
|
|
|
"PSU2":
|
|
{
|
|
"dev_info": { "device_type":"PSU", "device_name":"PSU2", "device_parent":"MUX2" },
|
|
"dev_attr": { "dev_idx":"2", "num_psu_fans":"1"},
|
|
"i2c":
|
|
{
|
|
"interface":
|
|
[
|
|
{ "itf":"pmbus", "dev":"PSU2-PMBUS"},
|
|
{ "itf":"eeprom", "dev":"PSU2-EEPROM"}
|
|
]
|
|
}
|
|
|
|
},
|
|
|
|
"PSU2-PMBUS":
|
|
{
|
|
"dev_info": {"device_type":"PSU-PMBUS", "device_name":"PSU2-PMBUS", "device_parent":"MUX2", "virt_parent":"PSU2"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x59", "dev_type":"psu_pmbus"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"psu_mfr_id", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0X99", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"10" },
|
|
{ "attr_name":"psu_fan_dir", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0xc3", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"5"},
|
|
{ "attr_name":"psu_v_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8b", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
|
|
{ "attr_name":"psu_i_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
|
|
{ "attr_name":"psu_p_out", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
|
|
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
|
|
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x59", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PSU2-EEPROM":
|
|
{
|
|
"dev_info": {"device_type":"PSU-EEPROM", "device_name":"PSU2-EEPROM", "device_parent":"MUX2", "virt_parent":"PSU2"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0xb", "dev_addr":"0x51", "dev_type":"psu_eeprom"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"psu_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"},
|
|
{ "attr_name":"psu_model_name", "attr_devaddr":"0x51", "attr_devtype":"eeprom", "attr_offset":"0x20", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"12" },
|
|
{ "attr_name":"psu_power_good", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_offset":"0x22", "attr_mask":"0x4", "attr_cmpval":"0x4", "attr_len":"1"},
|
|
{ "attr_name":"psu_serial_num", "attr_devaddr":"0x51", "attr_devtype":"eeprom", "attr_offset":"0x35", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"19" }
|
|
]
|
|
}
|
|
},
|
|
|
|
"PORT49":
|
|
{
|
|
"dev_info": { "device_type":"SFP28", "device_name":"PORT49", "device_parent":"MUX3"},
|
|
"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":"MUX3", "virt_parent":"PORT49"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x12", "dev_addr":"0x50", "dev_type":"optoe2"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT49-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT49-CTRL", "device_parent":"MUX3", "virt_parent":"PORT49"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x12", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x05", "attr_mask":"0x6", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PORT50":
|
|
{
|
|
"dev_info": { "device_type":"SFP28", "device_name":"PORT50", "device_parent":"MUX3"},
|
|
"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":"MUX3", "virt_parent":"PORT50"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x13", "dev_addr":"0x50", "dev_type":"optoe2"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT50-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT50-CTRL", "device_parent":"MUX3", "virt_parent":"PORT50"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x13", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x05", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PORT51":
|
|
{
|
|
"dev_info": { "device_type":"SFP28", "device_name":"PORT51", "device_parent":"MUX3"},
|
|
"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":"MUX3", "virt_parent":"PORT51"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x14", "dev_addr":"0x50", "dev_type":"optoe2"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT51-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT51-CTRL", "device_parent":"MUX3", "virt_parent":"PORT51"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x14", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x06", "attr_mask":"0x6", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
"PORT52":
|
|
{
|
|
"dev_info": { "device_type":"SFP28", "device_name":"PORT52", "device_parent":"MUX3"},
|
|
"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":"MUX3", "virt_parent":"PORT52"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x15", "dev_addr":"0x50", "dev_type":"optoe2"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT52-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT52-CTRL", "device_parent":"MUX3", "virt_parent":"PORT52"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x15", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x06", "attr_mask":"0x2", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PORT53":
|
|
{
|
|
"dev_info": { "device_type":"QSFP28", "device_name":"PORT53", "device_parent":"MUX3"},
|
|
"dev_attr": { "dev_idx":"53"},
|
|
"i2c":
|
|
{
|
|
"interface":
|
|
[
|
|
{ "itf":"eeprom", "dev":"PORT53-EEPROM" },
|
|
{ "itf":"control", "dev":"PORT53-CTRL" }
|
|
]
|
|
}
|
|
},
|
|
"PORT53-EEPROM":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT53-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT53"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x16", "dev_addr":"0x50", "dev_type":"optoe1"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT53-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT53-CTRL", "device_parent":"MUX3", "virt_parent":"PORT53"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x16", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x21", "attr_mask":"0x0", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
},
|
|
|
|
"PORT54":
|
|
{
|
|
"dev_info": { "device_type":"QSFP28", "device_name":"PORT54", "device_parent":"MUX3"},
|
|
"dev_attr": { "dev_idx":"54"},
|
|
"i2c":
|
|
{
|
|
"interface":
|
|
[
|
|
{ "itf":"eeprom", "dev":"PORT54-EEPROM" },
|
|
{ "itf":"control", "dev":"PORT54-CTRL" }
|
|
]
|
|
}
|
|
},
|
|
"PORT54-EEPROM":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT54-EEPROM", "device_parent":"MUX3", "virt_parent":"PORT54"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x17", "dev_addr":"0x50", "dev_type":"optoe1"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"eeprom"}
|
|
]
|
|
}
|
|
},
|
|
"PORT54-CTRL":
|
|
{
|
|
"dev_info": { "device_type":"", "device_name":"PORT54-CTRL", "device_parent":"MUX3", "virt_parent":"PORT54"},
|
|
"i2c":
|
|
{
|
|
"topo_info": { "parent_bus":"0x17", "dev_addr":"0x53", "dev_type":"pddf_xcvr"},
|
|
"attr_list":
|
|
[
|
|
{ "attr_name":"xcvr_present", "attr_devaddr":"0x60", "attr_devtype":"cpld", "attr_devname":"CPLD1", "attr_offset":"0x21", "attr_mask":"0x4", "attr_cmpval":"0x0", "attr_len":"1"}
|
|
]
|
|
}
|
|
}
|
|
|
|
}
|