-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DARWIN48V: platform definition & led_manager (#293)
Summary: # Description Combines #257, #258 and #263. #263 fails builds due to a dependencies found in #257 and #258. Pull Request resolved: #293 Reviewed By: somasun, mikechoifb Differential Revision: D65801211 Pulled By: joancaneus fbshipit-source-id: 2724e1073e2369fe802c4d144555ce93e95e6c6f
- Loading branch information
1 parent
c645744
commit 08e131f
Showing
14 changed files
with
120 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"systemLedConfig": { | ||
"presentLedColor": 1, | ||
"presentLedSysfsPath": "/sys/class/leds/sys_led:green:status/brightness", | ||
"absentLedColor": 2, | ||
"absentLedSysfsPath": "/sys/class/leds/sys_led:red:status/brightness" | ||
}, | ||
"fruTypeLedConfigs": { | ||
"FAN": { | ||
"presentLedColor": 1, | ||
"presentLedSysfsPath": "/sys/class/leds/fan_led:green:status/brightness", | ||
"absentLedColor": 2, | ||
"absentLedSysfsPath": "/sys/class/leds/fan_led:red:status/brightness" | ||
}, | ||
"PSU": { | ||
"presentLedColor": 1, | ||
"presentLedSysfsPath": "/sys/class/leds/psu_led:green:status/brightness", | ||
"absentLedColor": 2, | ||
"absentLedSysfsPath": "/sys/class/leds/psu_led:red:status/brightness" | ||
} | ||
}, | ||
"fruConfigs": [ | ||
{ | ||
"fruName": "FAN1", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan1_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "FAN2", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan2_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "FAN3", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan3_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "FAN4", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan4_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "FAN5", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan5_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "FAN6", | ||
"fruType": "FAN", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/fpgas/SCD_FPGA/rackmon_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"fruName": "PSU1", | ||
"fruType": "PSU", | ||
"presenceDetection": { | ||
"sysfsFileHandle": { | ||
"presenceFilePath": "/run/devmap/fpgas/SCD_FPGA/pem_present", | ||
"desiredValue": 1 | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters