zephyr/dts/bindings/iio/adc/atmel,sam0-adc.yaml
Kumar Gala a918d301fe drivers: adc: adc_sam0: rework devicetree support
Rework the devicetree to utilize new DT_INST macros and extract per
instance data for clocks from devicetree.

We add a property ('calib-offset') for the SAM{D,E}5x family of SoCs
that is the bit position offset from ADC0 BIASCOMP in the NVM Software
Calibration Area Mapping.  For ADC0 this is typically 0 and for ADC1
this will be 14.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-04-29 08:02:36 -05:00

49 lines
975 B
YAML

# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
# SPDX-License-Identifier: Apache-2.0
description: Atmel SAM0 family ADC
compatible: "atmel,sam0-adc"
include: adc-controller.yaml
properties:
reg:
required: true
interrupts:
required: true
clocks:
required: true
clock-names:
required: true
gclk:
type: int
required: true
description: generic clock generator source
prescaler:
type: int
required: true
description: clock prescaler divisor applied to the generic clock
"#io-channel-cells":
const: 1
calib-offset:
type: int
required: false
description: |
bit position offset in NVM SW Calib for start of ADC0 BIASCOMP field.
This property is expected to be set on SAM{D,E}5x family of SoCs.
For ADC0 this should be 0, and for ADC1 this should be 14.
enum:
- 0
- 14
io-channel-cells:
- input