summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/hwmon/ibm,opal-sensor.yaml
blob: 376ee7f1cdb73364e1e33265d1cc4ffcf578c9eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/ibm,opal-sensor.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: IBM POWERNV platform sensors

maintainers:
  - Javier Carrasco <javier.carrasco.cruz@gmail.com>

properties:
  compatible:
    enum:
      - ibm,opal-sensor-cooling-fan
      - ibm,opal-sensor-amb-temp
      - ibm,opal-sensor-power-supply
      - ibm,opal-sensor-power

  sensor-id:
    description:
      An opaque id provided by the firmware to the kernel, identifies a
      given sensor and its attribute data.
    $ref: /schemas/types.yaml#/definitions/uint32

required:
  - compatible
  - sensor-id

additionalProperties: false

examples:
  - |
    sensor {
        compatible = "ibm,opal-sensor-cooling-fan";
        sensor-id = <0x7052107>;
    };