meta-ibm: Mihawk fan control support 250 soc thermal sensor
Fan control must support 250 soc thermal sensor.
Tested: Fan speed is automatically controlled when using 250 soc
Change-Id: Ibf50def0e5780a23d1c4adc2be3efeed187d3146
Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
diff --git a/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml b/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
index 2efbb0c..721e99a 100644
--- a/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
+++ b/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
@@ -174,6 +174,18 @@
- /temperature/nvme21
- /temperature/nvme22
- /temperature/nvme23
+ - name: zone0_250soc
+ description: Group of nvme temperature sensors for zone 0
+ type: /xyz/openbmc_project/sensors
+ members:
+ - /temperature/250_soc0
+ - /temperature/250_soc1
+ - /temperature/250_soc2
+ - /temperature/250_soc3
+ - /temperature/250_soc4
+ - /temperature/250_soc5
+ - /temperature/250_soc6
+ - /temperature/250_soc7
matches:
- name: propertiesChanged
parameters:
@@ -582,6 +594,11 @@
property:
name: Value
type: int64_t
+ - name: zone0_250soc
+ interface: xyz.openbmc_project.Sensor.Value
+ property:
+ name: Value
+ type: int64_t
triggers:
- name: init
method: getProperties
@@ -838,3 +855,36 @@
delta:
value: 5
type: uint64_t
+ # Speed changes based on 250soc temps
+ - name: set_net_increase_speed
+ groups:
+ - name: zone0_250soc
+ interface: xyz.openbmc_project.Sensor.Value
+ property:
+ name: Value
+ type: int64_t
+ property:
+ value: 80000
+ type: int64_t
+ factor:
+ value: 1000
+ type: int64_t
+ delta:
+ value: 13
+ type: uint64_t
+ - name: set_net_decrease_speed
+ groups:
+ - name: zone0_250soc
+ interface: xyz.openbmc_project.Sensor.Value
+ property:
+ name: Value
+ type: int64_t
+ property:
+ value: 77000
+ type: int64_t
+ factor:
+ value: 3000
+ type: int64_t
+ delta:
+ value: 5
+ type: uint64_t