xref: /linux/Documentation/devicetree/bindings/hwmon/ibm,opal-sensor.yaml (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/ibm,opal-sensor.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: IBM POWERNV platform sensors
8
9maintainers:
10  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
11
12properties:
13  compatible:
14    enum:
15      - ibm,opal-sensor-cooling-fan
16      - ibm,opal-sensor-amb-temp
17      - ibm,opal-sensor-power-supply
18      - ibm,opal-sensor-power
19
20  sensor-id:
21    description:
22      An opaque id provided by the firmware to the kernel, identifies a
23      given sensor and its attribute data.
24    $ref: /schemas/types.yaml#/definitions/uint32
25
26required:
27  - compatible
28  - sensor-id
29
30additionalProperties: false
31
32examples:
33  - |
34    sensor {
35        compatible = "ibm,opal-sensor-cooling-fan";
36        sensor-id = <0x7052107>;
37    };
38