Skip to content

Commit

Permalink
Update presence for fan to work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
scottpaulsen committed Dec 3, 2024
1 parent 9b5fcd3 commit 2588828
Showing 1 changed file with 87 additions and 84 deletions.
171 changes: 87 additions & 84 deletions fboss/platform/configs/morgan800cc/platform_manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,89 +446,7 @@
"slotType": "FCB_SLOT",
"outgoingI2cBusNames": [
"MCB_MUX_A@0"
],
"outgoingSlotConfigs": {
"FANTRAY_SLOT@0": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan1_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@1": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan2_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@2": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan3_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@3": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan4_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@4": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan5_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@5": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan6_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@6": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan7_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@7": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan8_presence",
"desiredValue": 1
}
}
}
}
]
},
"SMB_SLOT@0": {
"slotType": "SMB_SLOT",
Expand Down Expand Up @@ -567,7 +485,92 @@
}
},
"MORGAN800CC": {
"pluggedInSlotType": "FCB_SLOT"
"pluggedInSlotType": "FCB_SLOT",
"outgoingSlotConfigs": {
"FANTRAY_SLOT@0": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan1_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@1": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan2_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@2": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan3_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@3": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan4_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@4": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan5_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@5": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan6_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@6": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan7_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@7": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan8_presence",
"desiredValue": 1
}
}
}
}
},
"FAN": {
"pluggedInSlotType": "FANTRAY_SLOT"
},
"PDB": {
"pluggedInSlotType": "PDB_SLOT"
Expand Down

0 comments on commit 2588828

Please sign in to comment.