Change the STM32 Temperature Sensor bindings to accept the average slope value in string form instead of integer. With this change, it is possible to use the raw decimal value found in each MCU's datasheet instead of needing to scale it (differently depending on series!). This also allows regrouping the property in a single file to reduce duplication. Also update all DTSI files affected by this change and the dietemp driver to accept the property's new format. Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
24 lines
421 B
Text
24 lines
421 B
Text
/*
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <st/f0/stm32f0.dtsi>
|
|
|
|
/ {
|
|
soc {
|
|
compatible = "st,stm32f030", "st,stm32f0", "simple-bus";
|
|
};
|
|
|
|
die_temp: dietemp {
|
|
compatible = "st,stm32c0-temp-cal";
|
|
ts-cal1-addr = <0x1FFFF7B8>;
|
|
ts-cal1-temp = <30>;
|
|
ts-cal-vrefanalog = <3300>;
|
|
avgslope = "4.3";
|
|
io-channels = <&adc1 16>;
|
|
ntc;
|
|
status = "disabled";
|
|
};
|
|
};
|