Commit fb4747d8 authored by Maxime Ripard's avatar Maxime Ripard Committed by Guenter Roeck
Browse files

dt-bindings: hwmon: Add IIO HWMON binding



Even though we had the iio-hwmon driver for some time and a number of
boards using it already, we never had a binding for it. Let's add it
based on what the driver expects and the boards are providing.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210901091852.479202-24-maxime@cerno.tech


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ada61aa0
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
# 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 Device Tree Bindings

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: 8 # 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>;
      };