Re: [dt-schema PATCH] schemas: iio: add label

Jonathan Cameron
2023-05-13T17:56:14Z

On Sun, 7 May 2023 19:12:19 +0200
Krzysztof Kozlowski <krzk@kernel.org> wrote:

> Linux IIO core code parses label property which is already used in
> several IIO devices.
>
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---
> dtschema/schemas/iio/iio.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/dtschema/schemas/iio/iio.yaml b/dtschema/schemas/iio/iio.yaml
> index 5ce5e147aef1..727ca0f9afec 100644
> --- a/dtschema/schemas/iio/iio.yaml
> +++ b/dtschema/schemas/iio/iio.yaml
> @@ -30,6 +30,10 @@ properties:
> with a single IIO output and 1 for nodes with multiple IIO outputs.
> A few unusual devices have a 2 level mapping.
>
> + label:
> + description:
> + Unique name to identify which IIO channel or device this is.

Ah. I thought this as covered by the entry in dt-core.yaml

If not fair enough, though is this flexible enough to cover that it can
exist at device level and in a channel node?

If so lgtm

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> +
> mount-matrix:
> $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> minItems: 9