From 665f33ec517d8293d9a8bb498e08df2c2d993fdd Mon Sep 17 00:00:00 2001 From: Mathieu Choplain Date: Tue, 27 Aug 2024 17:08:14 +0200 Subject: [PATCH] dts: bindings: stm32-temp: force new series to define 'v25' Set the 'v25' property of 'st,stm32-temp' to required, and remove its default value, to ensure new series cannot be introduced without setting the property to the correct value explicitly. This change does not require any DTSI modification, because there are only two files using this compatible (stm32f1.dtsi / stm32f2.dtsi), and both of these already set 'v25' explicitly. Signed-off-by: Mathieu Choplain --- dts/bindings/sensor/st,stm32-temp.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dts/bindings/sensor/st,stm32-temp.yaml b/dts/bindings/sensor/st,stm32-temp.yaml index 31ce5b84f64..b5a734ea249 100644 --- a/dts/bindings/sensor/st,stm32-temp.yaml +++ b/dts/bindings/sensor/st,stm32-temp.yaml @@ -19,7 +19,7 @@ properties: v25: type: int - default: 760 + required: true description: | Voltage of temperature sensor at 25C in mV according to datasheet "Electrical characteristics/Operating conditions"