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>
This commit is contained in:
parent
44f48f6da7
commit
84fd4e671f
4 changed files with 40 additions and 1 deletions
|
@ -23,6 +23,17 @@ test_adc_emul: adc {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
test_ntc_thermistor_generic: ntc-thermistor-generic {
|
||||
compatible = "ntc-thermistor-generic";
|
||||
io-channels = <&adc0 0>;
|
||||
r25-ohm = <10000>;
|
||||
pullup-uv = <3300000>;
|
||||
pullup-ohm = <0>;
|
||||
pulldown-ohm = <10000>;
|
||||
connected-positive;
|
||||
zephyr,compensation-table = <0 0>, <1 1>;
|
||||
};
|
||||
|
||||
test_epcos_b57861s0103a039: epcos-b57861s0103a039 {
|
||||
compatible = "epcos,b57861s0103a039";
|
||||
io-channels = <&adc0 0>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue