meta-facebook: yosemite4: Add virtual NIC_TEMP sensors into fan table
# Summary:
Add NIC temperature virtual sensors to fan table for thermal protection.
# Description:
The 4 virtual sensors are now included in the fan control table.
If any of these virtual sensors report a temperature < 10°C (including 0
from NA), the fan controller will raise the fan speed to 100% to prevent
thermal risk.
# Motivation:
Prevent the system from undercooling in cases where NIC temperature
sensors return invalid (NA) or abnormally low readings. Ensures
proactive fan response to maintain safe operating temperatures.
# Test Plan:
- Trigger NIC temperature sensors to report "NA" and <10°C.
- Verify that the fan speed ramps up to 100% when virtual sensor value
is low.
Change-Id: Ic59280b440dda3359b09abdfcb67007ff1f6b293
Signed-off-by: Patrick NC Lin <patrick.nc.lin.wiwynn@gmail.com>
diff --git a/configurations/meta/yosemite4.json b/configurations/meta/yosemite4.json
index 8019113..81040e2 100644
--- a/configurations/meta/yosemite4.json
+++ b/configurations/meta/yosemite4.json
@@ -697,6 +697,50 @@
]
},
{
+ "Class": "temp",
+ "Inputs": [
+ "VIRTUAL_NIC0_TEMP_C",
+ "VIRTUAL_NIC1_TEMP_C",
+ "VIRTUAL_NIC2_TEMP_C",
+ "VIRTUAL_NIC3_TEMP_C"
+ ],
+ "Name": "Stepwise_VIRTUAL_NIC_TEMP_C",
+ "NegativeHysteresis": 0,
+ "Output": [
+ 100.0,
+ 10.0,
+ 10.0,
+ 11.0,
+ 12.0,
+ 13.0,
+ 14.0,
+ 15.0,
+ 16.0,
+ 17.0,
+ 18.0,
+ 19.0
+ ],
+ "PositiveHysteresis": 0,
+ "Reading": [
+ 0.0,
+ 10.0,
+ 77.0,
+ 78.0,
+ 79.0,
+ 80.0,
+ 81.0,
+ 82.0,
+ 83.0,
+ 84.0,
+ 85.0,
+ 86.0
+ ],
+ "Type": "Stepwise",
+ "Zones": [
+ "Zone 1"
+ ]
+ },
+ {
"Address": "0x48",
"Bus": 34,
"Name": "MGNT_TEMP_C",