Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml
Extension
.yaml
Size
791 bytes
Lines
38
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ADC-attached Hardware Sensor

maintainers:
  - Jonathan Cameron <jic23@kernel.org>

description: >
  Bindings for hardware monitoring devices connected to ADC controllers
  supporting the Industrial I/O bindings.

properties:
  compatible:
    const: iio-hwmon

  io-channels:
    minItems: 1
    maxItems: 51 # Should be enough
    description: >
      List of phandles to ADC channels to read the monitoring values

required:
  - compatible
  - io-channels

additionalProperties: false

examples:
  - |
    iio-hwmon {
        compatible = "iio-hwmon";
        io-channels = <&adc 1>, <&adc 2>;
    };

Annotation

Implementation Notes