1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/st,spear600-adc.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: ST SPEAr ADC device driver 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotmaintainers: 10*833e5d42SEmmanuel Vadot - Jonathan Cameron <jic23@kernel.org> 11*833e5d42SEmmanuel Vadot 12*833e5d42SEmmanuel Vadotdescription: | 13*833e5d42SEmmanuel Vadot Integrated ADC inside the ST SPEAr SoC, SPEAr600, supporting 14*833e5d42SEmmanuel Vadot 10-bit resolution. Datasheet can be found here: 15*833e5d42SEmmanuel Vadot https://www.st.com/resource/en/datasheet/spear600.pdf 16*833e5d42SEmmanuel Vadot 17*833e5d42SEmmanuel Vadotproperties: 18*833e5d42SEmmanuel Vadot compatible: 19*833e5d42SEmmanuel Vadot enum: 20*833e5d42SEmmanuel Vadot - st,spear600-adc 21*833e5d42SEmmanuel Vadot 22*833e5d42SEmmanuel Vadot reg: 23*833e5d42SEmmanuel Vadot maxItems: 1 24*833e5d42SEmmanuel Vadot 25*833e5d42SEmmanuel Vadot interrupts: 26*833e5d42SEmmanuel Vadot maxItems: 1 27*833e5d42SEmmanuel Vadot 28*833e5d42SEmmanuel Vadot sampling-frequency: 29*833e5d42SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 30*833e5d42SEmmanuel Vadot minimum: 2500000 31*833e5d42SEmmanuel Vadot maximum: 20000000 32*833e5d42SEmmanuel Vadot description: 33*833e5d42SEmmanuel Vadot Default sampling frequency of the ADC in Hz. 34*833e5d42SEmmanuel Vadot 35*833e5d42SEmmanuel Vadot vref-external: 36*833e5d42SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 37*833e5d42SEmmanuel Vadot minimum: 1000 38*833e5d42SEmmanuel Vadot maximum: 2800 39*833e5d42SEmmanuel Vadot description: 40*833e5d42SEmmanuel Vadot External voltage reference in milli-volts. If omitted the internal voltage 41*833e5d42SEmmanuel Vadot reference will be used. 42*833e5d42SEmmanuel Vadot 43*833e5d42SEmmanuel Vadot average-samples: 44*833e5d42SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 45*833e5d42SEmmanuel Vadot minimum: 0 46*833e5d42SEmmanuel Vadot maximum: 15 47*833e5d42SEmmanuel Vadot default: 0 48*833e5d42SEmmanuel Vadot description: 49*833e5d42SEmmanuel Vadot Number of samples to generate an average value. If omitted, single data 50*833e5d42SEmmanuel Vadot conversion will be used. 51*833e5d42SEmmanuel Vadot 52*833e5d42SEmmanuel Vadotrequired: 53*833e5d42SEmmanuel Vadot - compatible 54*833e5d42SEmmanuel Vadot - reg 55*833e5d42SEmmanuel Vadot - interrupts 56*833e5d42SEmmanuel Vadot - sampling-frequency 57*833e5d42SEmmanuel Vadot 58*833e5d42SEmmanuel VadotadditionalProperties: false 59*833e5d42SEmmanuel Vadot 60*833e5d42SEmmanuel Vadotexamples: 61*833e5d42SEmmanuel Vadot - | 62*833e5d42SEmmanuel Vadot adc@d8200000 { 63*833e5d42SEmmanuel Vadot compatible = "st,spear600-adc"; 64*833e5d42SEmmanuel Vadot reg = <0xd8200000 0x1000>; 65*833e5d42SEmmanuel Vadot interrupt-parent = <&vic1>; 66*833e5d42SEmmanuel Vadot interrupts = <6>; 67*833e5d42SEmmanuel Vadot sampling-frequency = <5000000>; 68*833e5d42SEmmanuel Vadot vref-external = <2500>; /* 2.5V VRef */ 69*833e5d42SEmmanuel Vadot }; 70