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

Platform Driver Development Framework (PDDF): Generic drivers and plugins #3387

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
openssh-server \
python \
python-setuptools \
python-jsonschema \
monit \
python-apt \
traceroute \
Expand Down
9 changes: 9 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/pddf/fancontrol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
INTERVAL=10
FCTEMPS=/sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/17-0048/hwmon/hwmon[[:print:]]*/temp1_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/17-0049/hwmon/hwmon[[:print:]]*/temp1_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/17-004a/hwmon/hwmon[[:print:]]*/temp1_input
FCFANS=/sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan1_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan2_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan3_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan4_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan5_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan6_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan11_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan12_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan13_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan14_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan15_input /sys/bus/i2c/devices/16-0066/fan1_pwm=/sys/bus/i2c/devices/16-0066/fan16_input
MINTEMP=/sys/bus/i2c/devices/16-0066/fan1_pwm=45
MAXTEMP=/sys/bus/i2c/devices/16-0066/fan1_pwm=53
MINSTART=/sys/bus/i2c/devices/16-0066/fan1_pwm=15
MINSTOP=/sys/bus/i2c/devices/16-0066/fan1_pwm=4
MINPWM=/sys/bus/i2c/devices/16-0066/fan1_pwm=4
MAXPWM=/sys/bus/i2c/devices/16-0066/fan1_pwm=10
35 changes: 35 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,35 @@
{
"PSU":
{
"psu_present":
{
"valmap": { "1":true, "0":false }
},

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

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

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

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

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

}
1,953 changes: 1,953 additions & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/pddf/pddf-device.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions device/accton/x86_64-accton_as7726_32x-r0/pddf/fancontrol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
INTERVAL=10
FCTEMPS=/sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/118-004a/hwmon/hwmon[[:print:]]*/temp1_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/118-004b/hwmon/hwmon[[:print:]]*/temp1_input
FCFANS=/sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan1_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan2_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan3_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan4_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan5_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan6_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan11_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan12_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan13_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan14_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan15_input /sys/bus/i2c/devices/117-0066/fan1_pwm=/sys/bus/i2c/devices/117-0066/fan16_input
MINTEMP=/sys/bus/i2c/devices/117-0066/fan1_pwm=38
MAXTEMP=/sys/bus/i2c/devices/117-0066/fan1_pwm=44
MINSTART=/sys/bus/i2c/devices/117-0066/fan1_pwm=15
MINSTOP=/sys/bus/i2c/devices/117-0066/fan1_pwm=4
MINPWM=/sys/bus/i2c/devices/117-0066/fan1_pwm=4
MAXPWM=/sys/bus/i2c/devices/117-0066/fan1_pwm=8
35 changes: 35 additions & 0 deletions device/accton/x86_64-accton_as7726_32x-r0/pddf/pd-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"PSU":
{
"psu_present":
{
"valmap": { "1":true, "0":false }
},

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

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

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

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

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

}
Loading