From 9ed1ee842320e649a0ce12ac26cd777885d186f2 Mon Sep 17 00:00:00 2001 From: Remi Buisson Date: Fri, 17 Jan 2025 15:11:27 +0100 Subject: [PATCH] dts: bindings: sensor: Add invensense icp101xx properties Replace icp10125. tests: sensor: rename icp10125 to icp101xx Signed-off-by: Remi Buisson --- dts/bindings/sensor/invensense,icp10125.yaml | 29 -------------------- dts/bindings/sensor/invensense,icp101xx.yaml | 19 +++++++++++++ tests/drivers/build_all/sensor/i2c.dtsi | 7 ++--- 3 files changed, 22 insertions(+), 33 deletions(-) delete mode 100644 dts/bindings/sensor/invensense,icp10125.yaml create mode 100644 dts/bindings/sensor/invensense,icp101xx.yaml diff --git a/dts/bindings/sensor/invensense,icp10125.yaml b/dts/bindings/sensor/invensense,icp10125.yaml deleted file mode 100644 index 78fa69d7851754..00000000000000 --- a/dts/bindings/sensor/invensense,icp10125.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2022, Mizuki Agawa -# SPDX-License-Identifier: Apache-2.0 - -description: ICP10125 barometric pressure/temperature sensor - -compatible: "invensense,icp10125" - -include: [sensor-device.yaml, i2c-device.yaml] - -properties: - temperature-measurement-mode: - type: string - required: true - description: Mode of ambient temperature measurement - enum: - - "low-power" - - "normal" - - "low-noise" - - "ultra-low-noise" - - pressure-measurement-mode: - type: string - required: true - description: Mode of barometric pressure measurement - enum: - - "low-power" - - "normal" - - "low-noise" - - "ultra-low-noise" diff --git a/dts/bindings/sensor/invensense,icp101xx.yaml b/dts/bindings/sensor/invensense,icp101xx.yaml new file mode 100644 index 00000000000000..765fa4eb20dd4a --- /dev/null +++ b/dts/bindings/sensor/invensense,icp101xx.yaml @@ -0,0 +1,19 @@ +# Copyright (c) 2024 TDK Invensense +# SPDX-License-Identifier: Apache-2.0 + +description: ICP101xx High Accuracy, Low Power, Barometric Pressure and Temperature Sensor IC + +compatible: "invensense,icp101xx" + +include: [sensor-device.yaml, i2c-device.yaml] + +properties: + mode: + type: string + default: "normal" + description: Mode of pressure and temperature measurement + enum: + - "low-power" + - "normal" + - "low-noise" + - "ultra-low-noise" diff --git a/tests/drivers/build_all/sensor/i2c.dtsi b/tests/drivers/build_all/sensor/i2c.dtsi index 2f8b412b36658b..b03c37995f6710 100644 --- a/tests/drivers/build_all/sensor/i2c.dtsi +++ b/tests/drivers/build_all/sensor/i2c.dtsi @@ -628,11 +628,10 @@ test_i2c_max31875: max31875@5b { reg = <0x5b>; }; -test_i2c_icp10125: icp10125@5c { - compatible = "invensense,icp10125"; +test_i2c_icp101xx: icp101xx@5c { + compatible = "invensense,icp101xx"; reg = <0x5c>; - temperature-measurement-mode = "normal"; - pressure-measurement-mode = "normal"; + mode = "normal"; }; test_i2c_as5600: as5600@5d {