Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Edgecore][AS7712-32X/PDDF] Enhance sonic_platform feature #14349

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/pcie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
- bus: '00'
dev: '00'
fn: '0'
id: 1f0c
name: 'Host bridge: Intel Corporation Atom processor C2000 SoC Transaction Router
(rev 02)'
- bus: '00'
dev: '01'
fn: '0'
id: 1f10
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 1 (rev
02)'
- bus: '00'
dev: '02'
fn: '0'
id: 1f11
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 2 (rev
02)'
- bus: '00'
dev: '03'
fn: '0'
id: 1f12
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 3 (rev
02)'
- bus: '00'
dev: 0e
fn: '0'
id: 1f14
name: 'Host bridge: Intel Corporation Atom processor C2000 RAS (rev 02)'
- bus: '00'
dev: 0f
fn: '0'
id: 1f16
name: 'IOMMU: Intel Corporation Atom processor C2000 RCEC (rev 02)'
- bus: '00'
dev: '13'
fn: '0'
id: 1f15
name: 'System peripheral: Intel Corporation Atom processor C2000 SMBus 2.0 (rev
02)'
- bus: '00'
dev: '14'
fn: '0'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '14'
fn: '1'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '14'
fn: '2'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '16'
fn: '0'
id: 1f2c
name: 'USB controller: Intel Corporation Atom processor C2000 USB Enhanced Host
Controller (rev 02)'
- bus: '00'
dev: '17'
fn: '0'
id: 1f22
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA2 Controller
(rev 02)'
- bus: '00'
dev: '18'
fn: '0'
id: 1f32
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA3 Controller
(rev 02)'
- bus: '00'
dev: 1f
fn: '0'
id: 1f38
name: 'ISA bridge: Intel Corporation Atom processor C2000 PCU (rev 02)'
- bus: '00'
dev: 1f
fn: '3'
id: 1f3c
name: 'SMBus: Intel Corporation Atom processor C2000 PCU SMBus (rev 02)'
- bus: '01'
dev: '00'
fn: '0'
id: b960
name: 'Ethernet controller: Broadcom Inc. and subsidiaries Broadcom BCM56960 Switch
ASIC (rev 11)'
- bus: '01'
dev: '00'
fn: '1'
id: b960
name: 'Ethernet controller: Broadcom Inc. and subsidiaries Broadcom BCM56960 Switch
ASIC (rev 11)'
6 changes: 3 additions & 3 deletions device/accton/x86_64-accton_as7712_32x-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
"valmap": { "F2B":"exhaust", "B2F":"intake" }
}
},

"PSU_FAN_MAX_SPEED":"18000"
"PSU_FAN_MAX_SPEED":"26688"
},

"FAN":
Expand All @@ -34,7 +34,7 @@
{
"i2c":
{
"valmap": {"1":"EXHAUST", "0":"INTAKE"}
"valmap": {"1":"exhaust", "0":"intake"}
}
},

Expand Down
100 changes: 86 additions & 14 deletions device/accton/x86_64-accton_as7712_32x-r0/pddf/pddf-device.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"num_fantrays":6,
"num_fans_pertray":2,
"num_ports":32,
"num_temps": 4,
"num_temps": 8,
"pddf_dev_types":
{
"description":"AS7712 - 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",
Expand Down Expand Up @@ -210,7 +210,7 @@
"TEMP1" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP1", "device_parent":"MUX1"},
"dev_attr": { "display_name":"Temp_1"},
"dev_attr": { "display_name":"MB_RearLeft_temp(0x48)"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x48", "dev_type":"lm75"},
Expand All @@ -226,7 +226,7 @@
"TEMP2" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP2", "device_parent":"MUX1"},
"dev_attr": { "display_name":"Temp_2"},
"dev_attr": { "display_name":"MB_FrontMiddle_temp(0x49)"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x49", "dev_type":"lm75"},
Expand All @@ -242,7 +242,7 @@
"TEMP3" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP3", "device_parent":"MUX1"},
"dev_attr": { "display_name":"Temp_3"},
"dev_attr": { "display_name":"MB_MiddleLeft_temp(0x4A)"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x4a", "dev_type":"lm75"},
Expand All @@ -258,7 +258,7 @@
"TEMP4" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP4", "device_parent":"MUX1"},
"dev_attr": { "display_name":"Temp_CPU"},
"dev_attr": { "display_name":"CB_temp(0x4B)"},
"i2c":
{
"topo_info": { "parent_bus":"0x3", "dev_addr":"0x4b", "dev_type":"lm75"},
Expand All @@ -270,7 +270,71 @@
]
}
},

"TEMP5" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP5"},
"dev_attr": { "display_name":"CPU_Core_0_temp"},
"i2c":
{
"path_info": {"sysfs_base_path": "/sys/class/hwmon/hwmon0"},
"attr_list":
[
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp2_crit"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp2_max"},
{ "attr_name": "temp1_input", "drv_attr_name":"temp2_input"}
]
}
},

"TEMP6" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP6"},
"dev_attr": { "display_name":"CPU_Core_1_temp"},
"i2c":
{
"path_info": {"sysfs_base_path": "/sys/class/hwmon/hwmon0"},
"attr_list":
[
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp3_crit"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp3_max"},
{ "attr_name": "temp1_input", "drv_attr_name":"temp3_input"}
]
}
},

"TEMP7" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP7"},
"dev_attr": { "display_name":"CPU_Core_2_temp"},
"i2c":
{
"path_info": {"sysfs_base_path": "/sys/class/hwmon/hwmon0"},
"attr_list":
[
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp4_crit"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp4_max"},
{ "attr_name": "temp1_input", "drv_attr_name":"temp4_input"}
]
}
},

"TEMP8" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP8"},
"dev_attr": { "display_name":"CPU_Core_3_temp"},
"i2c":
{
"path_info": {"sysfs_base_path": "/sys/class/hwmon/hwmon0"},
"attr_list":
[
{ "attr_name": "temp1_high_crit_threshold", "drv_attr_name":"temp5_crit"},
{ "attr_name": "temp1_high_threshold", "drv_attr_name":"temp5_max"},
{ "attr_name": "temp1_input", "drv_attr_name":"temp5_input"}
]
}
},

"CPLD1":
{
"dev_info": { "device_type":"CPLD", "device_name":"CPLD1", "device_parent":"MUX1"},
Expand Down Expand Up @@ -354,7 +418,11 @@
{ "attr_name":"psu_i_out", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8c", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x96", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_fan1_speed_rpm", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x90", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out_max", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0xa5", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out_min", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0xa4", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out_max", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0xa7", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_high_threshold", "attr_devaddr":"0x5b", "attr_devtype":"pmbus", "attr_offset":"0xa8", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
Expand Down Expand Up @@ -391,7 +459,11 @@
{ "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"}
{ "attr_name":"psu_temp1_input", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0x8d", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out_max", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xa5", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_v_out_min", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xa4", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_p_out_max", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xa7", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"},
{ "attr_name":"psu_temp1_high_threshold", "attr_devaddr":"0x58", "attr_devtype":"pmbus", "attr_offset":"0xa8", "attr_mask":"0x0", "attr_cmpval":"0xff", "attr_len":"2"}
]
}
},
Expand Down Expand Up @@ -483,26 +555,26 @@
"LOC_LED":
{
"dev_info": { "device_type":"LED", "device_name":"LOC_LED"},
"dev_attr": { "index":"0"},
"dev_attr": { "index":"0", "flag":"rw"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_BLUE", "bits" : "7", "descr" : "", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "7", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"blue", "bits" : "7", "descr" : "", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "bits" : "7", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
]
}
},

"DIAG_LED":
{
"dev_info": { "device_type":"LED", "device_name":"DIAG_LED"},
"dev_attr": { "index":"0"},
"dev_attr": { "index":"0", "flag":"rw"},
"i2c" : {
"attr_list":
[
{"attr_name":"STATUS_LED_COLOR_GREEN", "bits" : "1:0", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_RED", "bits" : "1:0", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "bits" : "1:0", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"green", "bits" : "1:0", "descr" : "", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"red", "bits" : "1:0", "descr" : "", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "bits" : "1:0", "descr" : "", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
]
}

Expand Down
Loading