0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: ADC-attached Hardware Sensor Device Tree Bindings
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description: >
0013 Bindings for hardware monitoring devices connected to ADC controllers
0014 supporting the Industrial I/O bindings.
0015
0016 properties:
0017 compatible:
0018 const: iio-hwmon
0019
0020 io-channels:
0021 minItems: 1
0022 maxItems: 8 # Should be enough
0023 description: >
0024 List of phandles to ADC channels to read the monitoring values
0025
0026 required:
0027 - compatible
0028 - io-channels
0029
0030 additionalProperties: false
0031
0032 examples:
0033 - |
0034 iio-hwmon {
0035 compatible = "iio-hwmon";
0036 io-channels = <&adc 1>, <&adc 2>;
0037 };