mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
The Devicetree bindings document does not have to say in the title that it is a "binding", but instead just describe the hardware. For shared (re-usable) schemas, name them all as "common properties". Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Guenter Roeck <linux@roeck-us.net> # watchdog Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # IIO Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # MMC Acked-by: Stephen Boyd <sboyd@kernel.org> # clk Acked-by: Vinod Koul <vkoul@kernel.org> # dma Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> # media Acked-by: Sebastian Reichel <sre@kernel.org> # power Acked-by: Viresh Kumar <viresh.kumar@linaro.org> # opp Link: https://lore.kernel.org/r/20221216163815.522628-2-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring <robh@kernel.org>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/adc/adc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: IIO Common Properties for ADC Channels
|
|
|
|
maintainers:
|
|
- Jonathan Cameron <jic23@kernel.org>
|
|
|
|
description:
|
|
A few properties are defined in a common way ADC channels.
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^channel(@[0-9a-f]+)?$"
|
|
description:
|
|
A channel index should match reg.
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
label:
|
|
$ref: /schemas/types.yaml#/definitions/string
|
|
description: Unique name to identify which channel this is.
|
|
|
|
bipolar:
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
description: If provided, the channel is to be used in bipolar mode.
|
|
|
|
diff-channels:
|
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
|
maxItems: 2
|
|
minItems: 2
|
|
description:
|
|
Many ADCs have dual Muxes to allow different input pins to be routed
|
|
to both the positive and negative inputs of a differential ADC.
|
|
The first value specifies the positive input pin, the second
|
|
specifies the negative input pin.
|
|
|
|
settling-time-us:
|
|
description:
|
|
Time between enabling the channel and first stable readings.
|
|
|
|
oversampling-ratio:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description:
|
|
Oversampling is used as replacement of or addition to the low-pass filter.
|
|
In some cases, the desired filtering characteristics are a function the
|
|
device design and can interact with other characteristics such as
|
|
settling time.
|
|
|
|
additionalProperties: true
|