| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/iio/iio.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: IIO Provider Common Properties |
| 8 |
|
| 9 |
select: true |
| 10 |
|
| 11 |
maintainers: |
| 12 |
- Jonathan Cameron <[email protected]> |
| 13 |
|
| 14 |
description: |
| 15 |
This binding describes generic properties that can be applied to an |
| 16 |
IIO device binding. |
| 17 |
|
| 18 |
As well, direct readings of channels on an IIO Device, an IIO device |
| 19 |
can provide services in the form of readings and properties for |
| 20 |
channels to consumer devices. For example, an ADC might provide |
| 21 |
3 channels to an analog accelerometer so that an accelerometer |
| 22 |
driver can use them to read the voltages that correspond to the |
| 23 |
accelerations on the 3 axis. |
| 24 |
|
| 25 |
properties: |
| 26 |
"#io-channel-cells": |
| 27 |
enum: [0, 1, 2] |
| 28 |
description: > |
| 29 |
Number of cells in an IIO specifier; Typically 0 for nodes |
| 30 |
with a single IIO output and 1 for nodes with multiple IIO outputs. |
| 31 |
A few unusual devices have a 2 level mapping. |
| 32 |
|
| 33 |
"#io-backend-cells": |
| 34 |
enum: [0, 1] |
| 35 |
description: |
| 36 |
Number of cells in an IIO backend; Typically 0 for nodes |
| 37 |
with a single backend and 1 for nodes with multiple backends. |
| 38 |
|
| 39 |
label: |
| 40 |
description: |
| 41 |
Unique name to identify which IIO channel or device this is. |
| 42 |
|
| 43 |
mount-matrix: |
| 44 |
$ref: /schemas/types.yaml#/definitions/non-unique-string-array |
| 45 |
minItems: 9 |
| 46 |
maxItems: 9 |
| 47 |
description: |
| 48 |
3x3 matrix specifying the sensor orientation wrt to a reference plane. |
| 49 |
|
| 50 |
additionalProperties: true |