blob: 6cf4867aa3c9b4cf0a0c96381187e1a7e2b0fccd [file] [log] [blame]
Brad Bishop55935602017-06-13 13:31:24 -04001# Phosphor Fan Presence (PFP) example configuration file.
2#
3# The configuration represents an array of fans the application
4# should check for presence. The name attribute is required
5# and is used as the PrettyName attribute for the
6# xyz.openbmc_project.Inventory.Item interface. Path is required
7# and is the location where the fan inventory object will be
8# created. Additional configuration directives described below
9# in the examples.
10
11- name: Example Fan0
12 description: >
Patrick Williamsa49e3f12022-12-08 06:12:40 -060013 'Example fan with tach feedback detection method.
Brad Bishop55935602017-06-13 13:31:24 -040014
Patrick Williamsa49e3f12022-12-08 06:12:40 -060015 Fans without any special presence detection hardware can use one or more
16 tach speed sensor feedbacks as an indicator of presence. Listed sensors
17 are expected to be found in the /xyz/openbmc_project/sensors/fan_tach
18 namespace as required by the OpenBMC DBus API.
Brad Bishop55935602017-06-13 13:31:24 -040019
Patrick Williamsa49e3f12022-12-08 06:12:40 -060020 Supported policy types are fallback or anyof.'
Brad Bishop55935602017-06-13 13:31:24 -040021 path: /system/chassis/motherboard/fan0
22 methods:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060023 - type: tach
24 sensors:
25 - fan0
Brad Bishop55935602017-06-13 13:31:24 -040026
27- name: Example Fan1
28 description: >
Patrick Williamsa49e3f12022-12-08 06:12:40 -060029 'Example fan with gpio detection method.
Brad Bishop55935602017-06-13 13:31:24 -040030
Patrick Williamsa49e3f12022-12-08 06:12:40 -060031 Fans with dedicated gpios can use the gpio detection method. The gpio
32 detection uses Linux gpio-keys: the event number must be provided via the
33 key property.'
Brad Bishop55935602017-06-13 13:31:24 -040034 path: /system/chassis/motherboard/fan1
35 methods:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060036 - type: gpio
37 key: 123
38 physpath: /sys/devices/foo/bar
39 devpath: /dev/input/by-path/platform-gpio-keys-event
Brad Bishop55935602017-06-13 13:31:24 -040040
41- name: Example Fan2
42 description: >
Patrick Williamsa49e3f12022-12-08 06:12:40 -060043 'Example fan with fallback redundancy policy.
Brad Bishop55935602017-06-13 13:31:24 -040044
Patrick Williamsa49e3f12022-12-08 06:12:40 -060045 Multiple detection methods for a single fan are allowed. When multiple
46 detection methods are provided a redundancy algorithm must be specified
47 with the rpolicy attribute.
Brad Bishop55935602017-06-13 13:31:24 -040048
Patrick Williamsa49e3f12022-12-08 06:12:40 -060049 Note that the redundancy policy algorithm may or may not factor the order
50 the detection methods are listed into its logic.
Brad Bishop55935602017-06-13 13:31:24 -040051
Patrick Williamsa49e3f12022-12-08 06:12:40 -060052 The fallback algorithm falls back to subsequently listed detection methods
53 when the first method does not detect a fan and the second method does.'
Brad Bishop55935602017-06-13 13:31:24 -040054 path: /system/chassis/motherboard/fan2
55 methods:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060056 - type: gpio
57 key: 124
58 physpath: /sys/devices/foo/bar
59 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
60 - type: tach
61 sensors:
62 - fan2
Brad Bishop55935602017-06-13 13:31:24 -040063 rpolicy:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060064 type: fallback
Brad Bishop55935602017-06-13 13:31:24 -040065
Brad Bishopfcbedca2017-07-25 19:59:46 -040066- name: Example Fan3
67 description: >
Patrick Williamsa49e3f12022-12-08 06:12:40 -060068 'Example fan with anyof redundancy policy.
Brad Bishopfcbedca2017-07-25 19:59:46 -040069
Patrick Williamsa49e3f12022-12-08 06:12:40 -060070 The anyof algorithm reports true if any redundancy set component sensors
71 report true.'
Brad Bishopfcbedca2017-07-25 19:59:46 -040072 path: /system/chassis/motherboard/fan3
73 methods:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060074 - type: gpio
75 key: 125
76 physpath: /sys/devices/foo/bar
77 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
78 - type: tach
79 sensors:
80 - fan3
Brad Bishopfcbedca2017-07-25 19:59:46 -040081 rpolicy:
Patrick Williamsa49e3f12022-12-08 06:12:40 -060082 type: anyof