xref: /openbmc/phosphor-fan-presence/control/example/events.yaml (revision 799cdf74d50c6ced0e1a1afcef1fe7fc50e71da8)
194b20f7aSMatthew Barth#Example set speed events for phosphor-fan-control
294b20f7aSMatthew Barth
394b20f7aSMatthew Barth#groups:
494b20f7aSMatthew Barth#    - name: [A unique name for this group]
594b20f7aSMatthew Barth#      description: [A user description of what makes up the group]
694b20f7aSMatthew Barth#      type: [The '/xyz/openbmc_project' path extension]
794b20f7aSMatthew Barth#      members:
894b20f7aSMatthew Barth#          [List of object paths under the path extension]
994b20f7aSMatthew Barth#
1067967f9aSMatthew Barth#matches:
1167967f9aSMatthew Barth#    - name: [The name associated with a supported match string function]
1267967f9aSMatthew Barth#      description: [A user description of what this match string represents]
1367967f9aSMatthew Barth#      parameters:
14efbe7abdSMatthew Barth#          [Ordered list of required parameters for the match string function]
1567967f9aSMatthew Barth#
1667967f9aSMatthew Barth#signals:
1767967f9aSMatthew Barth#    - name: [The name associated with a supported signal function]
1867967f9aSMatthew Barth#      description: [A user description of what this signal does]
1967967f9aSMatthew Barth#      parameters:
20efbe7abdSMatthew Barth#          [Ordered list of required parameters for the signal function]
21efbe7abdSMatthew Barth#      match: [Match string function to use in subscribing to the signal]
2267967f9aSMatthew Barth#
23efbe7abdSMatthew Barth#methods:
24efbe7abdSMatthew Barth#    - name: [The name associated with a supported method function]
25efbe7abdSMatthew Barth#      description: [A user description of what this method does]
26efbe7abdSMatthew Barth#      parameters:
27efbe7abdSMatthew Barth#          [Ordered list of required parameteres for the method function]
28efbe7abdSMatthew Barth#
29efbe7abdSMatthew Barth#handlers:
30efbe7abdSMatthew Barth#    - name: [The name associated with a supported handler function]
31efbe7abdSMatthew Barth#      description: [A user descriptiion of what this handler does]
32efbe7abdSMatthew Barth#      parameters:
33efbe7abdSMatthew Barth#          [Ordered list of required parameters for the handler function]
34efbe7abdSMatthew Barth#
35efbe7abdSMatthew Barth#preconditions: [Preconditions are intended to load or unload events based
36efbe7abdSMatthew Barth#                on the precondition's resulting state]
37efbe7abdSMatthew Barth#    - name: [Name associated with an available precondition function]
38e3bab01dSMatthew Barth#      description: [A user description of the precondition's use]
39e3bab01dSMatthew Barth#      parameters:
40efbe7abdSMatthew Barth#          [Ordered list of required parameters for the precondition function]
41e3bab01dSMatthew Barth#
4294b20f7aSMatthew Barth#actions:
43efbe7abdSMatthew Barth#    - name: [Name associated with an available action function]
4494b20f7aSMatthew Barth#      description: [A user description of what this action does]
4594b20f7aSMatthew Barth#      parameters:
4694b20f7aSMatthew Barth#          [Ordered list of required parameters for the associated function]
4794b20f7aSMatthew Barth#
4894b20f7aSMatthew Barth#events:
4994b20f7aSMatthew Barth#    - name: [A unique name for this event]
50efbe7abdSMatthew Barth#      precondition{OPTIONAL}:
51efbe7abdSMatthew Barth#          name: [Name of the precondition function]
52efbe7abdSMatthew Barth#          groups:
53efbe7abdSMatthew Barth#              - name: [A group name from the list of groups]
54efbe7abdSMatthew Barth#                zone_conditions{OPTIONAL}:
5594b20f7aSMatthew Barth#                    - name: [The name of the zone condition]
5694b20f7aSMatthew Barth#                      zones:
5794b20f7aSMatthew Barth#                          - [Zone number to include this set speed event with]
58efbe7abdSMatthew Barth#                interface: [Dbus interface on the group members' object path]
59efbe7abdSMatthew Barth#                property:
60efbe7abdSMatthew Barth#                    name: [Name of the property on the interface]
61efbe7abdSMatthew Barth#                    type: [The property's data type]
62efbe7abdSMatthew Barth#          triggers:
63efbe7abdSMatthew Barth#              [At least 1 trigger is required per event from those available:
64efbe7abdSMatthew Barth#               "init"   - Executes a method(with associated handler) at startup
65efbe7abdSMatthew Barth#                          and then process the event actions
66efbe7abdSMatthew Barth#               "signal" - Subscribes to a signal and executes the associated
67efbe7abdSMatthew Barth#                          handler when the signal is received and then process
68efbe7abdSMatthew Barth#                          the event actions
69efbe7abdSMatthew Barth#               "timer"  - Configures a type of timer over an interval that
70efbe7abdSMatthew Barth#                          processess the event actions each time the timer
71efbe7abdSMatthew Barth#                          expires]
72efbe7abdSMatthew Barth#              - name: [Name of trigger to execute the event]
73efbe7abdSMatthew Barth#                [Provide the required trigger parameter(s)]
74efbe7abdSMatthew Barth#          events: [Define the event that is to be loaded when the precondition
75efbe7abdSMatthew Barth#                   succeeds]
76efbe7abdSMatthew Barth#      groups:
77efbe7abdSMatthew Barth#          - name: [A group name from the list of groups]
78efbe7abdSMatthew Barth#            zone_conditions{OPTIONAL}:
79efbe7abdSMatthew Barth#                - name: [The name of the zone condition]
80efbe7abdSMatthew Barth#                  zones:
81efbe7abdSMatthew Barth#                      - [Zone number to include this set speed event with]
8294b20f7aSMatthew Barth#            interface: [The Dbus interface on the group members' object path]
83efbe7abdSMatthew Barth#            property:
84efbe7abdSMatthew Barth#                name: [Name of the property on the interface]
85efbe7abdSMatthew Barth#                type: [The property's data type]
86efbe7abdSMatthew Barth#      triggers:
87efbe7abdSMatthew Barth#          [At least 1 trigger is required per event from those available:
88efbe7abdSMatthew Barth#           "init"   - Executes a method(with associated handler) at startup
89efbe7abdSMatthew Barth#                      and then process the event actions
90efbe7abdSMatthew Barth#           "signal" - Subscribes to a signal and executes the associated
91efbe7abdSMatthew Barth#                      handler when the signal is received and then process
92efbe7abdSMatthew Barth#                      the event actions
93efbe7abdSMatthew Barth#           "timer"  - Configures a type of timer over an interval that
94efbe7abdSMatthew Barth#                      processess the event actions each time the timer expires]
95efbe7abdSMatthew Barth#          - name: [Name of trigger to execute the event]
96efbe7abdSMatthew Barth#            [Provide the required trigger parameter(s)]
97efbe7abdSMatthew Barth#      actions:
98efbe7abdSMatthew Barth#          - name: [Name of an action from the list of actions]
99efbe7abdSMatthew Barth#            [Ordered list of each required action parameter with a defined
100efbe7abdSMatthew Barth#             type and value for this event. The 'property' parameter utilizes
101efbe7abdSMatthew Barth#             the same type defined under the 'property' attribute.]
10294b20f7aSMatthew Barth
10394b20f7aSMatthew Barth#Example:
10494b20f7aSMatthew Barth#groups:
10594b20f7aSMatthew Barth#    - name: zone0_fans
10694b20f7aSMatthew Barth#      description: Group of fan inventory objects for zone 0
1079af190cdSMatthew Barth#      type: /xyz/openbmc_project/inventory
10894b20f7aSMatthew Barth#      members:
10994b20f7aSMatthew Barth#          - /system/chassis/motherboard/fan0
11094b20f7aSMatthew Barth#          - /system/chassis/motherboard/fan1
11194b20f7aSMatthew Barth#          - /system/chassis/motherboard/fan2
11294b20f7aSMatthew Barth#          - /system/chassis/motherboard/fan3
113be605c5fSMatthew Barth#    - name: zone0_ambient
114be605c5fSMatthew Barth#      description: Group of ambient temperature sensors for zone 0
1159af190cdSMatthew Barth#      type: /xyz/openbmc_project/sensors
116be605c5fSMatthew Barth#      members:
117be605c5fSMatthew Barth#          - /temperature/ambient
1189af190cdSMatthew Barth#    - name: occ0_object
1199af190cdSMatthew Barth#      description: Dbus object containing OCC0 properties
1209af190cdSMatthew Barth#      type: /org/open_power/control
1219af190cdSMatthew Barth#      members:
1229af190cdSMatthew Barth#          - /occ0
123dd5cad66SMatthew Barth#    - name: zone0_regulators
124dd5cad66SMatthew Barth#      description: Group of regulator temperature sensors for zone 0
125dd5cad66SMatthew Barth#      type: /xyz/openbmc_project/sensors
126dd5cad66SMatthew Barth#      members:
127dd5cad66SMatthew Barth#          - /temperature/p0_vdd_temp
128dd5cad66SMatthew Barth#          - /temperature/p1_vdd_temp
129dd5cad66SMatthew Barth#    - name: zone0_dimms
130dd5cad66SMatthew Barth#      description: Group of dimm temperature sensors for zone 0
131dd5cad66SMatthew Barth#      type: /xyz/openbmc_project/sensors
132dd5cad66SMatthew Barth#      members:
133dd5cad66SMatthew Barth#          - /temperature/dimm0_temp
134dd5cad66SMatthew Barth#          - /temperature/dimm1_temp
135dd5cad66SMatthew Barth#          - /temperature/dimm2_temp
136dd5cad66SMatthew Barth#          - /temperature/dimm3_temp
137dd5cad66SMatthew Barth#          - /temperature/dimm4_temp
1389af190cdSMatthew Barth#
139efbe7abdSMatthew Barth#matches:
140efbe7abdSMatthew Barth#    - name: propertiesChanged
141efbe7abdSMatthew Barth#      parameters:
142efbe7abdSMatthew Barth#          - object
143efbe7abdSMatthew Barth#          - interface
144efbe7abdSMatthew Barth#    - name: interfacesAdded
145efbe7abdSMatthew Barth#      parameters:
146efbe7abdSMatthew Barth#          - object
147efbe7abdSMatthew Barth#    - name: interfacesRemoved
148efbe7abdSMatthew Barth#      parameters:
149efbe7abdSMatthew Barth#          - object
150efbe7abdSMatthew Barth#
15167967f9aSMatthew Barth#signals:
15267967f9aSMatthew Barth#    - name: propertiesChanged
15367967f9aSMatthew Barth#      description: >
15467967f9aSMatthew Barth#          A property changed signal
15567967f9aSMatthew Barth#      parameters:
15667967f9aSMatthew Barth#          - object
15767967f9aSMatthew Barth#          - interface
158efbe7abdSMatthew Barth#      match: propertiesChanged
15967967f9aSMatthew Barth#    - name: interfacesAdded
16067967f9aSMatthew Barth#      description: >
16167967f9aSMatthew Barth#          An interfaces added signal
16267967f9aSMatthew Barth#      parameters:
163efbe7abdSMatthew Barth#          - type
16467967f9aSMatthew Barth#          - object
165efbe7abdSMatthew Barth#          - interface
166efbe7abdSMatthew Barth#          - property
167efbe7abdSMatthew Barth#      match: interfacesAdded
168efbe7abdSMatthew Barth#    - name: interfacesRemoved
169efbe7abdSMatthew Barth#      description: >
170efbe7abdSMatthew Barth#          An interfaces removed match
171efbe7abdSMatthew Barth#      parameters:
172efbe7abdSMatthew Barth#          - object
173efbe7abdSMatthew Barth#          - interface
174efbe7abdSMatthew Barth#      match: interfacesRemoved
175efbe7abdSMatthew Barth#
176efbe7abdSMatthew Barth#methods:
177efbe7abdSMatthew Barth#    - name: getProperties
178efbe7abdSMatthew Barth#      description: >
179efbe7abdSMatthew Barth#          Get the property values of the given group members
180efbe7abdSMatthew Barth#          by performing a `GetProperty` method call on each
181efbe7abdSMatthew Barth#      parameters:
182efbe7abdSMatthew Barth#          - type
18367967f9aSMatthew Barth#
18467967f9aSMatthew Barth#handlers:
185efbe7abdSMatthew Barth#    - name: setProperty
18667967f9aSMatthew Barth#      description: >
187efbe7abdSMatthew Barth#          Sets a value for the givent object/interface/property
18867967f9aSMatthew Barth#      parameters:
18967967f9aSMatthew Barth#          - type
19067967f9aSMatthew Barth#
1919af190cdSMatthew Barth#preconditions:
1929af190cdSMatthew Barth#    - name: property_states_match
1939af190cdSMatthew Barth#      description: >
1949af190cdSMatthew Barth#          All defined properties must match the values given to
1959af190cdSMatthew Barth#          enable a set speed event otherwise fan speeds are set to full
1969af190cdSMatthew Barth#      parameters:
1979af190cdSMatthew Barth#          - groups
19894b20f7aSMatthew Barth#
19994b20f7aSMatthew Barth#actions:
20094b20f7aSMatthew Barth#    - name: count_state_before_speed
20194b20f7aSMatthew Barth#      description: Set the speed when a number of properties at a state
20294b20f7aSMatthew Barth#      parameters:
20394b20f7aSMatthew Barth#          - count
20494b20f7aSMatthew Barth#          - property
20594b20f7aSMatthew Barth#          - speed
206be605c5fSMatthew Barth#    - name: set_floor_from_average_sensor_value
207be605c5fSMatthew Barth#      description: Set floor speed from first entry with average less than key
208be605c5fSMatthew Barth#      parameters:
209be605c5fSMatthew Barth#          - map
210dd5cad66SMatthew Barth#    - name: set_ceiling_from_average_sensor_value
211dd5cad66SMatthew Barth#      description: Set ceiling speed based on key transition values with average
212dd5cad66SMatthew Barth#      parameters:
213dd5cad66SMatthew Barth#          - map
214dd5cad66SMatthew Barth#    - name: set_net_increase_speed
215dd5cad66SMatthew Barth#      description: >
216dd5cad66SMatthew Barth#          Set the speed increase delta based on the delta increase
217dd5cad66SMatthew Barth#          size times the given value and property's value difference
218dd5cad66SMatthew Barth#      parameters:
219dd5cad66SMatthew Barth#          - property
220dd5cad66SMatthew Barth#          - factor
221dd5cad66SMatthew Barth#          - delta
222dd5cad66SMatthew Barth#    - name: set_net_decrease_speed
223dd5cad66SMatthew Barth#      description: >
224dd5cad66SMatthew Barth#          Set the speed decrease delta based on the delta decrease
225dd5cad66SMatthew Barth#          size times the given value and property's value difference
226dd5cad66SMatthew Barth#      parameters:
227dd5cad66SMatthew Barth#          - property
228dd5cad66SMatthew Barth#          - factor
229dd5cad66SMatthew Barth#          - delta
2308d06a838SMatthew Barth#    - name: update_default_floor
2318d06a838SMatthew Barth#      description: >
2328d06a838SMatthew Barth#          Update the default fan floor to the given speed
2338d06a838SMatthew Barth#      parameters:
2348d06a838SMatthew Barth#          - property
2358d06a838SMatthew Barth#          - speed
236*799cdf74SMatthew Barth#    - name: use_events_on_state
237*799cdf74SMatthew Barth#      description: >
238*799cdf74SMatthew Barth#          Use a set of events when all the group properties are at a given
239*799cdf74SMatthew Barth#          state, otherwise remove the events
240*799cdf74SMatthew Barth#      parameters:
241*799cdf74SMatthew Barth#          - property
242*799cdf74SMatthew Barth#          - events
24394b20f7aSMatthew Barth#
24494b20f7aSMatthew Barth#events:
24594b20f7aSMatthew Barth#    - name: missing_before_high_speed
246efbe7abdSMatthew Barth#      groups:
247efbe7abdSMatthew Barth#          - name: zone0_fans
24894b20f7aSMatthew Barth#            zone_conditions:
24994b20f7aSMatthew Barth#                - name: air_cooled_chassis
25094b20f7aSMatthew Barth#                  zones:
25194b20f7aSMatthew Barth#                      - 0
25294b20f7aSMatthew Barth#            interface: xyz.openbmc_project.Inventory.Item
25394b20f7aSMatthew Barth#            property:
25494b20f7aSMatthew Barth#                name: Present
25594b20f7aSMatthew Barth#                type: bool
256efbe7abdSMatthew Barth#      triggers:
257efbe7abdSMatthew Barth#          - name: init
258efbe7abdSMatthew Barth#            method: getProperties
259efbe7abdSMatthew Barth#            handler: setProperty
260efbe7abdSMatthew Barth#          - name: signal
261efbe7abdSMatthew Barth#            signal: propertiesChanged
262efbe7abdSMatthew Barth#            handler: setProperty
263dd5cad66SMatthew Barth#      actions:
264dd5cad66SMatthew Barth#          - name: count_state_before_speed
26594b20f7aSMatthew Barth#            count: 1
266efbe7abdSMatthew Barth#            property:
267efbe7abdSMatthew Barth#                value: false
268efbe7abdSMatthew Barth#                type: bool
26994b20f7aSMatthew Barth#            speed:
27094b20f7aSMatthew Barth#                value: 10500
27194b20f7aSMatthew Barth#                type: uint64_t
272dd5cad66SMatthew Barth#    - name: set_air_cooled_speed_boundaries_based_on_ambient
273efbe7abdSMatthew Barth#      groups:
274efbe7abdSMatthew Barth#          - name: zone0_ambient
275be605c5fSMatthew Barth#            zone_conditions:
276be605c5fSMatthew Barth#                - name: air_cooled_chassis
277be605c5fSMatthew Barth#                  zones:
278be605c5fSMatthew Barth#                      - 0
279be605c5fSMatthew Barth#            interface: xyz.openbmc_project.Sensor.Value
280be605c5fSMatthew Barth#            property:
281be605c5fSMatthew Barth#                name: Value
282be605c5fSMatthew Barth#                type: int64_t
283efbe7abdSMatthew Barth#      triggers:
284efbe7abdSMatthew Barth#          - name: init
285efbe7abdSMatthew Barth#            method: getProperties
286efbe7abdSMatthew Barth#            handler: setProperty
287efbe7abdSMatthew Barth#          - name: signal
288efbe7abdSMatthew Barth#            signal: propertiesChanged
289efbe7abdSMatthew Barth#            handler: setProperty
290dd5cad66SMatthew Barth#      actions:
291dd5cad66SMatthew Barth#          - name: set_floor_from_average_sensor_value
292be605c5fSMatthew Barth#            map:
293be605c5fSMatthew Barth#                value:
294dd5cad66SMatthew Barth#                    - 27000: 3500
295dd5cad66SMatthew Barth#                    - 32000: 4600
296dd5cad66SMatthew Barth#                    - 37000: 5200
2979af190cdSMatthew Barth#                    - 40000: 5800
298be605c5fSMatthew Barth#                type: std::map<int64_t, uint64_t>
299dd5cad66SMatthew Barth#          - name: set_ceiling_from_average_sensor_value
300dd5cad66SMatthew Barth#            map:
301dd5cad66SMatthew Barth#                value:
302dd5cad66SMatthew Barth#                    - 25000: 7200
303dd5cad66SMatthew Barth#                    - 27000: 10500
304dd5cad66SMatthew Barth#                type: std::map<int64_t, uint64_t>
305dd5cad66SMatthew Barth#    - name: set_water_cooled_speed_boundaries_based_on_ambient
306efbe7abdSMatthew Barth#      groups:
307efbe7abdSMatthew Barth#          - name: zone0_ambient
308be605c5fSMatthew Barth#            zone_conditions:
309be605c5fSMatthew Barth#                - name: water_and_air_cooled_chassis
310be605c5fSMatthew Barth#                  zones:
311be605c5fSMatthew Barth#                      - 0
312be605c5fSMatthew Barth#            interface: xyz.openbmc_project.Sensor.Value
313be605c5fSMatthew Barth#            property:
314be605c5fSMatthew Barth#                name: Value
315be605c5fSMatthew Barth#                type: int64_t
316efbe7abdSMatthew Barth#      triggers:
317efbe7abdSMatthew Barth#          - name: init
318efbe7abdSMatthew Barth#            method: getProperties
319efbe7abdSMatthew Barth#            handler: setProperty
320efbe7abdSMatthew Barth#          - name: signal
321efbe7abdSMatthew Barth#            signal: propertiesChanged
322efbe7abdSMatthew Barth#            handler: setProperty
323dd5cad66SMatthew Barth#      actions:
324dd5cad66SMatthew Barth#          - name: set_floor_from_average_sensor_value
325be605c5fSMatthew Barth#            map:
326be605c5fSMatthew Barth#                value:
327dd5cad66SMatthew Barth#                    - 27000: 3000
328dd5cad66SMatthew Barth#                    - 32000: 4300
329dd5cad66SMatthew Barth#                    - 37000: 5000
330dd5cad66SMatthew Barth#                    - 40000: 5800
3319af190cdSMatthew Barth#                type: std::map<int64_t, uint64_t>
332dd5cad66SMatthew Barth#          - name: set_ceiling_from_average_sensor_value
333dd5cad66SMatthew Barth#            map:
334dd5cad66SMatthew Barth#                value:
335dd5cad66SMatthew Barth#                    - 25000: 7200
336dd5cad66SMatthew Barth#                    - 27000: 10500
337dd5cad66SMatthew Barth#                type: std::map<int64_t, uint64_t>
338dd5cad66SMatthew Barth#    - name: occ_active_speed_changes
3399af190cdSMatthew Barth#      precondition:
3409af190cdSMatthew Barth#          name: property_states_match
3419af190cdSMatthew Barth#          groups:
3429af190cdSMatthew Barth#              - name: occ0_object
3439af190cdSMatthew Barth#                interface: org.open_power.OCC.Status
3449af190cdSMatthew Barth#                property:
3459af190cdSMatthew Barth#                    name: OccActive
3469af190cdSMatthew Barth#                    type: bool
3479af190cdSMatthew Barth#                    value: true
348dd5cad66SMatthew Barth#              - name: occ1_object
349dd5cad66SMatthew Barth#                interface: org.open_power.OCC.Status
350dd5cad66SMatthew Barth#                property:
351dd5cad66SMatthew Barth#                    name: OccActive
352dd5cad66SMatthew Barth#                    type: bool
353dd5cad66SMatthew Barth#                    value: true
354efbe7abdSMatthew Barth#          triggers:
355efbe7abdSMatthew Barth#              - name: init
356efbe7abdSMatthew Barth#                method: getProperties
357efbe7abdSMatthew Barth#                handler: setProperty
358efbe7abdSMatthew Barth#              - name: signal
359efbe7abdSMatthew Barth#                signal: interfacesAdded
360efbe7abdSMatthew Barth#                handler: setProperty
361efbe7abdSMatthew Barth#              - name: signal
362efbe7abdSMatthew Barth#                signal: propertiesChanged
363efbe7abdSMatthew Barth#                handler: setProperty
364dd5cad66SMatthew Barth#          events:
365efbe7abdSMatthew Barth#              - name: speed_control_sensors
366efbe7abdSMatthew Barth#                groups:
367efbe7abdSMatthew Barth#                    - name: zone0_regulators
3689af190cdSMatthew Barth#                      interface: xyz.openbmc_project.Sensor.Value
3699af190cdSMatthew Barth#                      property:
3709af190cdSMatthew Barth#                          name: Value
3719af190cdSMatthew Barth#                          type: int64_t
372efbe7abdSMatthew Barth#                    - name: zone0_dimms
373efbe7abdSMatthew Barth#                      interface: xyz.openbmc_project.Sensor.Value
374efbe7abdSMatthew Barth#                      property:
375efbe7abdSMatthew Barth#                          name: Value
376efbe7abdSMatthew Barth#                          type: int64_t
377efbe7abdSMatthew Barth#                triggers:
378efbe7abdSMatthew Barth#                    - name: init
379efbe7abdSMatthew Barth#                      method: getProperties
380efbe7abdSMatthew Barth#                      handler: setProperty
381efbe7abdSMatthew Barth#                    - name: signal
382efbe7abdSMatthew Barth#                      signal: interfacesAdded
383efbe7abdSMatthew Barth#                      handler: setProperty
384efbe7abdSMatthew Barth#                    - name: signal
385efbe7abdSMatthew Barth#                      signal: propertiesChanged
386efbe7abdSMatthew Barth#                      handler: setProperty
387efbe7abdSMatthew Barth#                    - name: signal
388efbe7abdSMatthew Barth#                      signal: interfacesRemoved
389efbe7abdSMatthew Barth#                      handler: removeInterface
390efbe7abdSMatthew Barth#              - name: 1sec_speed_change_request_sampling
391efbe7abdSMatthew Barth#                triggers:
392efbe7abdSMatthew Barth#                    - name: timer
393efbe7abdSMatthew Barth#                      interval: 1000000
394efbe7abdSMatthew Barth#                      type: repeating
395dd5cad66SMatthew Barth#                actions:
396efbe7abdSMatthew Barth#                    # Speed changes based on regulator temps
397dd5cad66SMatthew Barth#                    - name: set_net_increase_speed
398efbe7abdSMatthew Barth#                      groups:
399efbe7abdSMatthew Barth#                          - name: zone0_regulators
400efbe7abdSMatthew Barth#                            interface: xyz.openbmc_project.Sensor.Value
401efbe7abdSMatthew Barth#                            property:
402efbe7abdSMatthew Barth#                                name: Value
403efbe7abdSMatthew Barth#                                type: int64_t
404efbe7abdSMatthew Barth#                      property:
405efbe7abdSMatthew Barth#                          value: 85000
406efbe7abdSMatthew Barth#                          type: int64_t
407efbe7abdSMatthew Barth#                      factor:
408efbe7abdSMatthew Barth#                          value: 1000
409efbe7abdSMatthew Barth#                          type: int64_t
410efbe7abdSMatthew Barth#                      delta:
411efbe7abdSMatthew Barth#                          value: 400
412efbe7abdSMatthew Barth#                          type: uint64_t
413efbe7abdSMatthew Barth#                    - name: set_net_decrease_speed
414efbe7abdSMatthew Barth#                      groups:
415efbe7abdSMatthew Barth#                          - name: zone0_regulators
416efbe7abdSMatthew Barth#                            interface: xyz.openbmc_project.Sensor.Value
417efbe7abdSMatthew Barth#                            property:
418efbe7abdSMatthew Barth#                                name: Value
419efbe7abdSMatthew Barth#                                type: int64_t
420efbe7abdSMatthew Barth#                      property:
421efbe7abdSMatthew Barth#                          value: 82000
422efbe7abdSMatthew Barth#                          type: int64_t
423efbe7abdSMatthew Barth#                      factor:
424efbe7abdSMatthew Barth#                          value: 1000
425efbe7abdSMatthew Barth#                          type: int64_t
426efbe7abdSMatthew Barth#                       delta:
427efbe7abdSMatthew Barth#                          value: 40
428efbe7abdSMatthew Barth#                          type: uint64_t
429efbe7abdSMatthew Barth#                    # Speed changes based on dimm temps
430efbe7abdSMatthew Barth#                    - name: set_net_increase_speed
431efbe7abdSMatthew Barth#                      groups:
432efbe7abdSMatthew Barth#                          - name: zone0_dimms
433efbe7abdSMatthew Barth#                            interface: xyz.openbmc_project.Sensor.Value
434efbe7abdSMatthew Barth#                            property:
435efbe7abdSMatthew Barth#                                name: Value
436efbe7abdSMatthew Barth#                                type: int64_t
437efbe7abdSMatthew Barth#                      property:
438efbe7abdSMatthew Barth#                          value: 64000
439efbe7abdSMatthew Barth#                          type: int64_t
440dd5cad66SMatthew Barth#                      factor:
441dd5cad66SMatthew Barth#                          value: 1000
442dd5cad66SMatthew Barth#                          type: int64_t
443dd5cad66SMatthew Barth#                      delta:
444dd5cad66SMatthew Barth#                          value: 200
445dd5cad66SMatthew Barth#                          type: uint64_t
446dd5cad66SMatthew Barth#                    - name: set_net_decrease_speed
447efbe7abdSMatthew Barth#                      groups:
448efbe7abdSMatthew Barth#                          - name: zone0_dimms
449efbe7abdSMatthew Barth#                            interface: xyz.openbmc_project.Sensor.Value
450efbe7abdSMatthew Barth#                            property:
451efbe7abdSMatthew Barth#                                name: Value
452efbe7abdSMatthew Barth#                                type: int64_t
453efbe7abdSMatthew Barth#                      property:
454efbe7abdSMatthew Barth#                          value: 61000
455efbe7abdSMatthew Barth#                          type: int64_t
456dd5cad66SMatthew Barth#                      factor:
457dd5cad66SMatthew Barth#                          value: 1000
458dd5cad66SMatthew Barth#                          type: int64_t
459dd5cad66SMatthew Barth#                      delta:
460dd5cad66SMatthew Barth#                          value: 40
461dd5cad66SMatthew Barth#                          type: uint64_t
462