Skip to content

Commit

Permalink
[AS7712-32X] Add to support PDDF
Browse files Browse the repository at this point in the history
Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
  • Loading branch information
Jostar Yang committed Jul 2, 2021
1 parent 01f51e0 commit 867d386
Show file tree
Hide file tree
Showing 21 changed files with 2,622 additions and 2 deletions.
54 changes: 54 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"PSU":
{
"psu_present":
{
"i2c":
{
"valmap": { "1":true, "0":false }
}
},

"psu_power_good":
{
"i2c":
{
"valmap": { "1": true, "0":false }
}
},

"psu_fan_dir":
{
"i2c":
{
"valmap": { "F2B":"EXHAUST", "B2F":"INTAKE" }
}
},

"PSU_FAN_MAX_SPEED":"18000"
},

"FAN":
{
"direction":
{
"i2c":
{
"valmap": {"1":"EXHAUST", "0":"INTAKE"}
}
},

"present":
{
"i2c":
{
"valmap": {"1":true, "0":false}
}
},

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

"pwm_to_duty_cycle": "lambda pwm: math.ceil(((pwm+1)*625.0)/100)"
}

}
Loading

0 comments on commit 867d386

Please sign in to comment.