1e01152e3SMiquel Raynal# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2e01152e3SMiquel Raynal%YAML 1.2 3e01152e3SMiquel Raynal--- 4e01152e3SMiquel Raynal$id: http://devicetree.org/schemas/iio/adc/ti,am3359-adc.yaml# 5e01152e3SMiquel Raynal$schema: http://devicetree.org/meta-schemas/core.yaml# 6e01152e3SMiquel Raynal 7e01152e3SMiquel Raynaltitle: TI AM3359 ADC 8e01152e3SMiquel Raynal 9e01152e3SMiquel Raynalmaintainers: 10e01152e3SMiquel Raynal - Miquel Raynal <miquel.raynal@bootlin.com> 11e01152e3SMiquel Raynal 12e01152e3SMiquel Raynalproperties: 13e01152e3SMiquel Raynal compatible: 14*d9d604c7SMiquel Raynal enum: 15*d9d604c7SMiquel Raynal - ti,am3359-adc 16*d9d604c7SMiquel Raynal - ti,am4372-adc 17e01152e3SMiquel Raynal 18e01152e3SMiquel Raynal '#io-channel-cells': 19e01152e3SMiquel Raynal const: 1 20e01152e3SMiquel Raynal 21e01152e3SMiquel Raynal ti,adc-channels: 22e01152e3SMiquel Raynal description: List of analog inputs available for ADC. AIN0 = 0, AIN1 = 1 and 23e01152e3SMiquel Raynal so on until AIN7 = 7. 24e01152e3SMiquel Raynal $ref: /schemas/types.yaml#/definitions/uint32-array 25e01152e3SMiquel Raynal minItems: 1 26e01152e3SMiquel Raynal maxItems: 8 27e01152e3SMiquel Raynal 28e01152e3SMiquel Raynal ti,chan-step-opendelay: 29e01152e3SMiquel Raynal description: List of open delays for each channel of ADC in the order of 30e01152e3SMiquel Raynal ti,adc-channels. The value corresponds to the number of ADC clock cycles 31e01152e3SMiquel Raynal to wait after applying the step configuration registers and before sending 32e01152e3SMiquel Raynal the start of ADC conversion. Maximum value is 0x3FFFF. 33e01152e3SMiquel Raynal $ref: /schemas/types.yaml#/definitions/uint32-array 34e01152e3SMiquel Raynal minItems: 1 35e01152e3SMiquel Raynal maxItems: 8 36e01152e3SMiquel Raynal 37e01152e3SMiquel Raynal ti,chan-step-sampledelay: 38e01152e3SMiquel Raynal description: List of sample delays for each channel of ADC in the order of 39e01152e3SMiquel Raynal ti,adc-channels. The value corresponds to the number of ADC clock cycles 40e01152e3SMiquel Raynal to sample (to hold start of conversion high). Maximum value is 0xFF. 41e01152e3SMiquel Raynal $ref: /schemas/types.yaml#/definitions/uint32-array 42e01152e3SMiquel Raynal minItems: 1 43e01152e3SMiquel Raynal maxItems: 8 44e01152e3SMiquel Raynal 45e01152e3SMiquel Raynal ti,chan-step-avg: 46e01152e3SMiquel Raynal description: Number of averages to be performed for each channel of ADC. If 47e01152e3SMiquel Raynal average is 16 (this is also the maximum) then input is sampled 16 times 48e01152e3SMiquel Raynal and averaged to get more accurate value. This increases the time taken by 49e01152e3SMiquel Raynal ADC to generate a sample. Maximum value is 16. 50e01152e3SMiquel Raynal $ref: /schemas/types.yaml#/definitions/uint32-array 51e01152e3SMiquel Raynal minItems: 1 52e01152e3SMiquel Raynal maxItems: 8 53e01152e3SMiquel Raynal 54e01152e3SMiquel Raynalrequired: 55e01152e3SMiquel Raynal - compatible 56e01152e3SMiquel Raynal - '#io-channel-cells' 57e01152e3SMiquel Raynal - ti,adc-channels 58e01152e3SMiquel Raynal 59e01152e3SMiquel RaynaladditionalProperties: false 60e01152e3SMiquel Raynal 61e01152e3SMiquel Raynalexamples: 62e01152e3SMiquel Raynal - | 63e01152e3SMiquel Raynal adc { 64e01152e3SMiquel Raynal compatible = "ti,am3359-adc"; 65e01152e3SMiquel Raynal #io-channel-cells = <1>; 66e01152e3SMiquel Raynal ti,adc-channels = <4 5 6 7>; 67e01152e3SMiquel Raynal ti,chan-step-opendelay = <0x098 0x3ffff 0x098 0x0>; 68e01152e3SMiquel Raynal ti,chan-step-sampledelay = <0xff 0x0 0xf 0x0>; 69e01152e3SMiquel Raynal ti,chan-step-avg = <16 2 4 8>; 70e01152e3SMiquel Raynal }; 71