Debian Codegraph @

Documentation/devicetree/bindings/iio/adc/st,spear600-adc.yaml

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