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>
67 lines
1.1 KiB
JSON
67 lines
1.1 KiB
JSON
{
|
|
"XCVR":
|
|
{
|
|
"xcvr_present":
|
|
{
|
|
"i2c":
|
|
{
|
|
"valmap-SFP28": {"1":true, "0":false },
|
|
"valmap-QSFP28": {"1":true, "0":false}
|
|
}
|
|
}
|
|
},
|
|
|
|
"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)",
|
|
|
|
"pwm_to_duty_cycle": "lambda pwm: ((pwm*625.0)/100)"
|
|
}
|
|
|
|
}
|