18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/ti,am3359-adc.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: TI AM3359 ADC 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Miquel Raynal <miquel.raynal@bootlin.com> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotproperties: 138cc087a1SEmmanuel Vadot compatible: 14*7ef62cebSEmmanuel Vadot oneOf: 15*7ef62cebSEmmanuel Vadot - enum: 168cc087a1SEmmanuel Vadot - ti,am3359-adc 178cc087a1SEmmanuel Vadot - ti,am4372-adc 18*7ef62cebSEmmanuel Vadot - items: 19*7ef62cebSEmmanuel Vadot - enum: 20*7ef62cebSEmmanuel Vadot - ti,am654-adc 21*7ef62cebSEmmanuel Vadot - const: ti,am3359-adc 228cc087a1SEmmanuel Vadot 238cc087a1SEmmanuel Vadot '#io-channel-cells': 248cc087a1SEmmanuel Vadot const: 1 258cc087a1SEmmanuel Vadot 268cc087a1SEmmanuel Vadot ti,adc-channels: 278cc087a1SEmmanuel Vadot description: List of analog inputs available for ADC. AIN0 = 0, AIN1 = 1 and 288cc087a1SEmmanuel Vadot so on until AIN7 = 7. 298cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 308cc087a1SEmmanuel Vadot minItems: 1 318cc087a1SEmmanuel Vadot maxItems: 8 328cc087a1SEmmanuel Vadot 338cc087a1SEmmanuel Vadot ti,chan-step-opendelay: 348cc087a1SEmmanuel Vadot description: List of open delays for each channel of ADC in the order of 358cc087a1SEmmanuel Vadot ti,adc-channels. The value corresponds to the number of ADC clock cycles 368cc087a1SEmmanuel Vadot to wait after applying the step configuration registers and before sending 378cc087a1SEmmanuel Vadot the start of ADC conversion. Maximum value is 0x3FFFF. 388cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 398cc087a1SEmmanuel Vadot minItems: 1 408cc087a1SEmmanuel Vadot maxItems: 8 418cc087a1SEmmanuel Vadot 428cc087a1SEmmanuel Vadot ti,chan-step-sampledelay: 438cc087a1SEmmanuel Vadot description: List of sample delays for each channel of ADC in the order of 448cc087a1SEmmanuel Vadot ti,adc-channels. The value corresponds to the number of ADC clock cycles 458cc087a1SEmmanuel Vadot to sample (to hold start of conversion high). Maximum value is 0xFF. 468cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 478cc087a1SEmmanuel Vadot minItems: 1 488cc087a1SEmmanuel Vadot maxItems: 8 498cc087a1SEmmanuel Vadot 508cc087a1SEmmanuel Vadot ti,chan-step-avg: 518cc087a1SEmmanuel Vadot description: Number of averages to be performed for each channel of ADC. If 528cc087a1SEmmanuel Vadot average is 16 (this is also the maximum) then input is sampled 16 times 538cc087a1SEmmanuel Vadot and averaged to get more accurate value. This increases the time taken by 548cc087a1SEmmanuel Vadot ADC to generate a sample. Maximum value is 16. 558cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 568cc087a1SEmmanuel Vadot minItems: 1 578cc087a1SEmmanuel Vadot maxItems: 8 588cc087a1SEmmanuel Vadot 598cc087a1SEmmanuel Vadotrequired: 608cc087a1SEmmanuel Vadot - compatible 618cc087a1SEmmanuel Vadot - '#io-channel-cells' 628cc087a1SEmmanuel Vadot - ti,adc-channels 638cc087a1SEmmanuel Vadot 648cc087a1SEmmanuel VadotadditionalProperties: false 658cc087a1SEmmanuel Vadot 668cc087a1SEmmanuel Vadotexamples: 678cc087a1SEmmanuel Vadot - | 688cc087a1SEmmanuel Vadot adc { 698cc087a1SEmmanuel Vadot compatible = "ti,am3359-adc"; 708cc087a1SEmmanuel Vadot #io-channel-cells = <1>; 718cc087a1SEmmanuel Vadot ti,adc-channels = <4 5 6 7>; 728cc087a1SEmmanuel Vadot ti,chan-step-opendelay = <0x098 0x3ffff 0x098 0x0>; 738cc087a1SEmmanuel Vadot ti,chan-step-sampledelay = <0xff 0x0 0xf 0x0>; 748cc087a1SEmmanuel Vadot ti,chan-step-avg = <16 2 4 8>; 758cc087a1SEmmanuel Vadot }; 76