Debian Codegraph @

dtschema/schemas/iio/iio-consumer.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/iio-consumer.yaml#
5 $schema: http://devicetree.org/meta-schemas/base.yaml#
6
7 title: IIO Consumer Common Properties
8
9 maintainers:
10 - Jonathan Cameron <[email protected]>
11
12 description:
13 This binding describes generic properties a consumer of the channels
14 provided by an IIO device may use.
15
16 As well, direct readings of channels on an IIO Device, an IIO device
17 can provide services to consumer devices. They are in the form of channel
18 readings and properties. For example, an ADC might provide 3 channels to
19 an analog accelerometer so that an accelerometer driver can use them to
20 read the voltages that correspond to the accelerations on the 3 axis and
21 apply appropriate calibration to provide useful outputs.
22
23 It also describes properties of a consumer of an IIO backend device.
24 select: true
25
26 properties:
27 io-channels:
28 $ref: /schemas/types.yaml#/definitions/phandle-array
29 description: >
30 List of phandle and IIO specifier pairs, one pair for each IIO input
31 to the device. Note: if the IIO provider specifies '0' for
32 #io-channel-cells, then only the phandle portion of the pair will appear.
33
34 io-channel-names:
35 $ref: /schemas/types.yaml#/definitions/string-array
36
37 io-backends:
38 $ref: /schemas/types.yaml#/definitions/phandle-array
39 description:
40 List of phandles for IIO backends. IIO backends are devices connected to
41 another IIO devices (consumers of the backends) providing services so
42 that the consumer IIO device can be fully functional. One typical example
43 of such an Hardware arrangement would be an high speed ADC that is
44 connected to an FPGA IP core (through a serial data interface as LVDS)
45 capable of handling the high sample rates. Examples of the provided
46 services would be channel enablement/disablement.
47
48 io-backend-names:
49 $ref: /schemas/types.yaml#/definitions/string-array
50
51 dependencies:
52 io-channel-names: [io-channels]
53 io-backend-names: [io-backends]
54
55 additionalProperties: true