Files
charge-controller-firmware/zephyr/dts/bindings/adc-inputs.yaml
T
Martin Jäger 1b6c56d25b Replace adc-gain DT binding with adc-inputs
Preparation for cleanup of ADC driver.
2020-06-26 15:17:53 +02:00

43 lines
1.0 KiB
YAML

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Martin Jäger / Libre Solar
description: Description for an ADC input including gain (multiplier/divider) and offset
compatible: "adc-inputs"
child-binding:
description: ADC inputs child node
properties:
io-channels:
type: phandle-array
required: true
description: |
ADC channel for this input.
multiplier:
type: int
required: true
description: |
Resistance of the lower leg of the voltage divider.
divider:
type: int
required: true
description: |
Resistance of the full path through the voltage divider.
offset:
type: int
required: false
description: |
Offset to be substracted from ADC raw reading before applying the gain
enable-gpios:
type: phandle-array
required: false
description: |
Enable the voltage divider input or amplifier.
If present the corresponding GPIO must be set to an active level
to enable the divider input.