zephyr/dts/bindings/sensor/ntc-thermistor-generic.yaml
Gerard Marull-Paretas 84fd4e671f drivers: sensor: ntc_thermistor: add support for generic NTC
Add support for a generic NTC, `ntc-thermistor-generic`. In this case,
the compensation table is provided via devicetree. Note that DT property
is prefixed with `zephyr,`, because while hardware related, it is linked
to a particular software implementation.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-04 20:49:48 +02:00

18 lines
456 B
YAML

# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: Generic NTC thermistor
compatible: "ntc-thermistor-generic"
include: ntc-thermistor.yaml
properties:
zephyr,compensation-table:
type: array
required: true
description: |
Compensation table, formatted as temperature, resistance pairs. A script
to generate a valid table is provided in
scripts/utils/ntc_thermistor_table.py.