diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-07-20 14:26:59 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-21 17:49:47 +0000 |
commit | 89600b7b87ca207dcc676b490a4d5e8cce86bbf7 (patch) | |
tree | fc16f9a63529cbc11266b60f00dd13700e1cdd80 | |
parent | ff6ab0a5c2a5b030a9dbfdb4a614a75175f9911d (diff) | |
download | chrome-ec-89600b7b87ca207dcc676b490a4d5e8cce86bbf7.tar.gz |
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 <fabiobaltieri@google.com>
Change-Id: Ibd0f0f3e26a0e245723763c402e718b5e0badd17
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3776918
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | zephyr/include/cros/thermistor/thermistor.dtsi | 9 |
1 files 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>; |