Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas: iio: iio-consumer: add io-backends schema #120

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion dtschema/schemas/iio/iio-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ description:
provided by an IIO device may use.

As well, direct readings of channels on an IIO Device, an IIO device
can provide services to consumer devices. Thes are in the form of channel
can provide services to consumer devices. They are in the form of channel
readings and properties. For example, an ADC might provide 3 channels to
an analog accelerometer so that an accelerometer driver can use them to
read the voltages that correspond to the accelerations on the 3 axis and
apply appropriate calibration to provide useful outputs.

It also describes properties of a consumer of an IIO backend device.
select: true

properties:
Expand All @@ -30,7 +31,19 @@ properties:
to the device. Note: if the IIO provider specifies '0' for
#io-channel-cells, then only the phandle portion of the pair will appear.

io-backends:
$ref: /schemas/types.yaml#/definitions/phandle-array
description:
List of phandles for IIO backends. IIO backends are devices connected to
another IIO devices (consumers of the backends) providing services so
that the consumer IIO device can be fully functional. One typical example
of such an Hardware arrangement would be an high speed ADC that is
connected to an FPGA IP core (through a serial data interface as LVDS)
capable of handling the high sample rates. Examples of the provided
services would be channel enablement/disablement.

dependencies:
io-channel-names: [io-channels]
io-backend-names: [io-backends]

additionalProperties: true
6 changes: 6 additions & 0 deletions dtschema/schemas/iio/iio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ properties:
with a single IIO output and 1 for nodes with multiple IIO outputs.
A few unusual devices have a 2 level mapping.

"#io-backend-cells":
enum: [0, 1]
description:
Number of cells in an IIO backend; Typically 0 for nodes
with a single backend and 1 for nodes with multiple backends.

label:
description:
Unique name to identify which IIO channel or device this is.
Expand Down