From 89600b7b87ca207dcc676b490a4d5e8cce86bbf7 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Wed, 20 Jul 2022 14:26:59 +0000 Subject: zephyr: thermistor: add /omit-if-no-ref/ to thermistor nodes DTS supports a /omit-if-no-ref/ feature to flag nodes that can be discarded if not referenced, and should be used in dts "libraries". This causes the corresponding node to be discarded from the aggregated zephyr.dts file, and reducing the amount of entries in devicetree-unfixed.h as well. BUG=none BRANCH=none TEST=cq dry run TEST=grep thermistor build/zephyr/brya/build-ro/zephyr/zephyr.dts Signed-off-by: Fabio Baltieri Change-Id: Ibd0f0f3e26a0e245723763c402e718b5e0badd17 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3776918 Reviewed-by: Abe Levkoy --- zephyr/include/cros/thermistor/thermistor.dtsi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/zephyr/include/cros/thermistor/thermistor.dtsi b/zephyr/include/cros/thermistor/thermistor.dtsi index 033d5639e2..a482aab2fc 100644 --- a/zephyr/include/cros/thermistor/thermistor.dtsi +++ b/zephyr/include/cros/thermistor/thermistor.dtsi @@ -1,5 +1,5 @@ / { - thermistor_3V3_30K9_47K_4050B: thermistor-3V3-30K9-47K-4050B { + /omit-if-no-ref/ thermistor_3V3_30K9_47K_4050B: thermistor-3V3-30K9-47K-4050B { status = "disabled"; compatible = "cros-ec,thermistor"; scaling-factor = <11>; @@ -64,8 +64,7 @@ }; }; - - thermistor_3V0_22K6_47K_4050B: thermistor-3V0-22K6-47K-4050B { + /omit-if-no-ref/ thermistor_3V0_22K6_47K_4050B: thermistor-3V0-22K6-47K-4050B { status = "disabled"; compatible = "cros-ec,thermistor"; scaling-factor = <11>; @@ -145,7 +144,7 @@ }; }; - thermistor_3V3_13K7_47K_4050B: thermistor-3V3-13K7-47K-4050B { + /omit-if-no-ref/ thermistor_3V3_13K7_47K_4050B: thermistor-3V3-13K7-47K-4050B { status = "disabled"; compatible = "cros-ec,thermistor"; scaling-factor = <13>; @@ -226,7 +225,7 @@ }; - thermistor_3V3_51K1_47K_4050B: thermistor-3V3-51K1-47K-4050B { + /omit-if-no-ref/ thermistor_3V3_51K1_47K_4050B: thermistor-3V3-51K1-47K-4050B { status = "disabled"; compatible = "cros-ec,thermistor"; scaling-factor = <11>; -- cgit v1.2.1