Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 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 | |
| 7 | title: IBM POWERNV platform sensors |
| 8 | |
| 9 | maintainers: |
| 10 | - Javier Carrasco <javier.carrasco.cruz@gmail.com> |
| 11 | |
| 12 | properties: |
| 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 | |
| 26 | required: |
| 27 | - compatible |
| 28 | - sensor-id |
| 29 | |
| 30 | additionalProperties: false |
| 31 | |
| 32 | examples: |
| 33 | - | |
| 34 | sensor { |
| 35 | compatible = "ibm,opal-sensor-cooling-fan"; |
| 36 | sensor-id = <0x7052107>; |
| 37 | }; |