Skip to content

Commit

Permalink
[Darwin]: Led_manager use sys leds paths and add missing fan module
Browse files Browse the repository at this point in the history
  • Loading branch information
aalamsi22 committed Jan 30, 2025
1 parent debb3c8 commit c1b863e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions fboss/platform/configs/darwin/led_manager.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"systemLedConfig": {
"presentLedColor": 1,
"presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/system:green:status/brightness",
"presentLedSysfsPath": "/sys/class/leds/sys_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/system:red:status/brightness"
"absentLedSysfsPath": "/sys/class/leds/sys_led:red:status/brightness"
},
"fruTypeLedConfigs": {
"FAN": {
"presentLedColor": 1,
"presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/fan:green:status/brightness",
"presentLedSysfsPath": "/sys/class/leds/fan_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/fan:red:status/brightness"
"absentLedSysfsPath": "/sys/class/leds/fan_led:red:status/brightness"
},
"PEM": {
"presentLedColor": 1,
"presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/pem:green:status/brightness",
"presentLedSysfsPath": "/sys/class/leds/psu_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/pem:red:status/brightness"
"absentLedSysfsPath": "/sys/class/leds/psu_led:red:status/brightness"
}
},
"fruConfigs": [
Expand Down Expand Up @@ -70,6 +70,16 @@
}
}
},
{
"fruName": "FAN6",
"fruType": "FAN",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/fpgas/SCD_FPGA/rackmon_present",
"desiredValue": 1
}
}
},
{
"fruName": "PEM1",
"fruType": "PEM",
Expand Down

0 comments on commit c1b863e

Please sign in to comment.