Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9afd8ce
[Edgecore][AS7726/PDDF] Enhance sonic_platform feature
jostar-yang Dec 8, 2022
e5cedd9
Fix LGTM alerts
jostar-yang Dec 9, 2022
cdad806
Add get_name to pass pytest
jostar-yang Dec 12, 2022
be7af5c
Modify fan direction name to lower case
jostar-yang Dec 12, 2022
2b3e8a5
Add platform.json to pass pytest
jostar-yang Dec 21, 2022
2315510
Add compoment.py
jostar-yang Dec 22, 2022
f3637e4
Add enable fan-wdt and kick
jostar-yang Jan 19, 2023
045a8df
Fix Semgrep check
jostar-yang Feb 9, 2023
122fd25
Modify CPLD name to more detail
jostar-yang Feb 10, 2023
d2b2118
Modify sys_led attr name
jostar-yang Feb 14, 2023
0fcffa2
Modify eeprom.py to support cache
jostar-yang Feb 16, 2023
bc460f6
Modify devices_to_ignore for pus_fan
jostar-yang Feb 17, 2023
dbe07a3
Add psu_fan target speed
jostar-yang Feb 21, 2023
cb2be41
Modify system_health_monitoring_config.json led_color string
jostar-yang Feb 21, 2023
2a96a94
Fix pytest issue
roger530-ho Mar 15, 2023
c64e384
Fix incorrect variable
roger530-ho Apr 13, 2023
459bf03
Support to show CPU all core temp
jostar-yang May 2, 2023
4f1c650
Add CPU all core temp
roger530-ho Jun 20, 2023
66fa15a
[Edgecore][AS7726-32X] Read the data when the PSU is in the power-goo…
roger530-ho Aug 15, 2023
c352370
Fix port33,34 to use optoe2 for sfp
jostar-yang Sep 28, 2023
6c8cab5
Add reset() in sfp.py for check sfp_port to avoid fail
jostar-yang Sep 4, 2024
fee0c25
Disable fan_wdt when set fan_speed
jostar-yang Dec 5, 2024
e034689
Add get_lpmode to set lpmode default setting is disable
jostar-yang May 22, 2025
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
471 changes: 471 additions & 0 deletions device/accton/x86_64-accton_as7726_32x-r0/pcie.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions device/accton/x86_64-accton_as7726_32x-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
"valmap": { "F2B":"exhaust", "B2F":"intake" }
}
},

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

Expand All @@ -61,7 +61,7 @@

"duty_cycle_to_pwm": "lambda dc: ((dc*100)/625 -1)",

"pwm_to_duty_cycle": "lambda pwm: (((pwm+1)*625+75)/100)"
"pwm_to_duty_cycle": "lambda pwm: (((pwm+1)*625)/100)"
}

}
109 changes: 96 additions & 13 deletions device/accton/x86_64-accton_as7726_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":34,
"num_temps":5,
"num_temps":10,
"pddf_dev_types":
{
"description":"AS7726 - 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 @@ -1545,7 +1545,7 @@
"dev_info": { "device_type":"", "device_name":"PORT33-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT33"},
"i2c":
{
"topo_info": { "parent_bus":"0xf", "dev_addr":"0x50", "dev_type":"optoe1"},
"topo_info": { "parent_bus":"0xf", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
Expand Down Expand Up @@ -1584,7 +1584,7 @@
"dev_info": { "device_type":"", "device_name":"PORT34-EEPROM", "device_parent":"MUX2", "virt_parent":"PORT34"},
"i2c":
{
"topo_info": { "parent_bus":"0x10", "dev_addr":"0x50", "dev_type":"optoe1"},
"topo_info": { "parent_bus":"0x10", "dev_addr":"0x50", "dev_type":"optoe2"},
"attr_list":
[
{ "attr_name":"eeprom"}
Expand Down Expand Up @@ -1657,7 +1657,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 @@ -1705,7 +1709,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 @@ -1865,7 +1873,82 @@
]
}
},

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

"TEMP7" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP7"},
"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"}
]
}
},
"TEMP8" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP8"},
"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"}
]
}
},
"TEMP9" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP9"},
"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"}
]
}
},
"TEMP10" :
{
"dev_info": { "device_type":"TEMP_SENSOR", "device_name":"TEMP10"},
"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"}
]
}
},
"SYSSTATUS":
{
"dev_info":{ "device_type":"SYSSTAT", "device_name":"SYSSTATUS"},
Expand All @@ -1890,26 +1973,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", "descr" : "", "bits" : "7", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "descr" : "", "bits" : "7", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"blue", "descr" : "", "bits" : "7", "value" : "0x0", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "descr" : "", "bits" : "7", "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", "descr" : "", "bits" : "1:0", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_RED", "descr" : "" ,"bits" : "1:0", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"STATUS_LED_COLOR_OFF", "descr" : "" ,"bits" : "1:0", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
{"attr_name":"green", "descr" : "", "bits" : "1:0", "value" : "0x2", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"red", "descr" : "" ,"bits" : "1:0", "value" : "0x1", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"},
{"attr_name":"off", "descr" : "" ,"bits" : "1:0", "value" : "0x3", "swpld_addr" : "0x60", "swpld_addr_offset" : "0x41"}
]
}

Expand Down
Loading
Loading