Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.12 KB

methods.md

File metadata and controls

60 lines (47 loc) · 1.12 KB

methods

Description

An array of method objects used to detect the fan's present state. Each supported method requires its own set of attributes to be provided.

Attribute Value(s)

Method type:

"tach"

Requires an array of sensors of each fan tach D-Bus sensor name to be used to determine fan presence. This is the name of the fan tach sensor located under the /xyz/openbmc_project/sensors/fan_tach/ D-Bus path.

"type": "tach",
"sensors": [
  "fan0_0"
]

"gpio"

Detects fans with dedicated GPIOs using Linux gpio-keys device tree bindings, where the event number is provided via the key attribute.

"type": "gpio",
"key": 1,
"physpath": "/sys/bus/i2c/devices/1-0001",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"

Example

[
  {
    "name": "fan0",
    "path": "/system/chassis/motherboard/fan0",
    "methods": [
      {
        "type": "tach",
        "sensors": ["fan0_0"]
      }
    ],
    "rpolicy": {
      "type": "anyof"
    }
  }
]