TI AM3359 ADC
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,am3359-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,am3359-adc"
#io-channel-cells — required here #
Exact value (const): 1
ti,adc-channels — required here #
List of analog inputs available for ADC. AIN0 = 0, AIN1 = 1 and so on until AIN7 = 7.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-opendelay — not listed as required here #
List of open delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to wait after applying the step configuration registers and before sending the start of ADC conversion. Maximum value is 0x3FFFF.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-sampledelay — not listed as required here #
List of sample delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to sample (to hold start of conversion high). Maximum value is 0xFF.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
ti,chan-step-avg — not listed as required here #
Number of averages to be performed for each channel of ADC. If average is 16 (this is also the maximum) then input is sampled 16 times and averaged to get more accurate value. This increases the time taken by ADC to generate a sample. Maximum value is 16.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "#io-channel-cells", "ti,adc-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
adc {
compatible = "ti,am3359-adc";
#io-channel-cells = <1>;
ti,adc-channels = <4 5 6 7>;
ti,chan-step-opendelay = <0x098 0x3ffff 0x098 0x0>;
ti,chan-step-sampledelay = <0xff 0x0 0xf 0x0>;
ti,chan-step-avg = <16 2 4 8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)