1# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
2# SPDX-License-Identifier: Apache-2.0
3
4description: Atmel SAM0 family ADC
5
6compatible: "atmel,sam0-adc"
7
8include:
9  - name: adc-controller.yaml
10  - name: pinctrl-device.yaml
11
12properties:
13  reg:
14    required: true
15
16  interrupts:
17    required: true
18
19  clocks:
20    required: true
21
22  clock-names:
23    required: true
24
25  gclk:
26    type: int
27    required: true
28    description: generic clock generator source
29
30  prescaler:
31    type: int
32    required: true
33    description: clock prescaler divisor applied to the generic clock
34
35  "#io-channel-cells":
36    const: 1
37
38  calib-offset:
39    type: int
40    description: |
41      bit position offset in NVM SW Calib for start of ADC0 BIASCOMP field.
42      This property is expected to be set on SAM{D,E}5x family of SoCs.
43      For ADC0 this should be 0, and for ADC1 this should be 14.
44    enum:
45      - 0
46      - 14
47
48io-channel-cells:
49  - input
50