84fd4e671f
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>
18 lines
456 B
YAML
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.
|