Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: sensor: add wurth elektronik sensor drivers #62408

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions doc/releases/migration-guide-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,83 @@ LED Strip
Sensors
=======

* The :dtcompatible:`we,wsen-itds` driver has been renamed to
:dtcompatible:`we,wsen-itds-2533020201601`.
The Device Tree can be configured as follows:

.. code-block:: devicetree

&i2c0 {
itds:itds-2533020201601@19 {
compatible = "we,wsen-itds-2533020201601";
reg = <0x19>;
odr = "400";
op-mode = "high-perf";
power-mode = "normal";
events-interrupt-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
drdy-interrupt-gpios = < &gpio1 2 GPIO_ACTIVE_HIGH >;
};
};

* The :dtcompatible:`we,wsen-hids` driver has been renamed to
:dtcompatible:`we,wsen-hids-2525020210001`.
The Device Tree can be configured as follows:

.. code-block:: devicetree

&i2c0 {
hids:hids-2525020210001@5F {
compatible = "we,wsen-hids-2525020210001";
reg = < 0x5F >;
odr = "1";
drdy-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
};

* The :dtcompatible:`we,wsen-pads` driver has been renamed to
:dtcompatible:`we,wsen-pads-2511020213301`.
The Device Tree can be configured as follows:

.. code-block:: devicetree

&i2c0 {
pads:pads-2511020213301@5d {
compatible = "we,wsen-pads-2511020213301";
reg = <0x5d>;
odr = < 10 >;
interrupt-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
};

* The :dtcompatible:`we,wsen-pdus` driver has been renamed to
:dtcompatible:`we,wsen-pdus-25131308XXXXX`.
The Device Tree can be configured as follows:

.. code-block:: devicetree

&i2c0 {
pdus:pdus-25131308XXXXX@78 {
compatible = "we,wsen-pdus-25131308XXXXX";
reg = < 0x78 >;
sensor-type = < 4 >;
};
};

* The :dtcompatible:`we,wsen-tids` driver has been renamed to
:dtcompatible:`we,wsen-tids-2521020222501`.
The Device Tree can be configured as follows:

.. code-block:: devicetree

&i2c0 {
tids:tids-2521020222501@3F {
compatible = "we,wsen-tids-2521020222501";
reg = < 0x3F >;
odr = < 25 >;
interrupt-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
};
};

Serial
======

Expand Down
17 changes: 17 additions & 0 deletions doc/releases/release-notes-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,23 @@ Drivers and Sensors

* Sensors

* WE

* Replaced outdated :dtcompatible:`we,wsen-itds` accelerometer driver
and renamed it to :dtcompatible:`we,wsen-itds-2533020201601`.
* Replaced outdated :dtcompatible:`we,wsen-hids` humidity sensor driver
and renamed it to :dtcompatible:`we,wsen-hids-2525020210001`.
* Added Würth Elektronik HIDS-2525020210002
:dtcompatible:`we,wsen-hids-2525020210002` humidity sensor driver.
* Replaced outdated :dtcompatible:`we,wsen-pads` absolute pressure sensor driver
and renamed it to :dtcompatible:`we,wsen-pads-2511020213301`.
* Replaced outdated :dtcompatible:`we,wsen-pdus` differential pressure sensor driver
and renamed it to :dtcompatible:`we,wsen-pdus-25131308XXXXX`.
* Added Würth Elektronik ISDS-2536030320001
:dtcompatible:`we,wsen-isds-2536030320001` 6-axis IMU sensor driver.
* Replaced outdated :dtcompatible:`we,wsen-tids` temperature sensor driver
and renamed it to :dtcompatible:`we,wsen-tids-2521020222501`.

* Serial

* LiteX: Renamed the ``compatible`` from ``litex,uart0`` to :dtcompatible:`litex,uart`.
Expand Down
12 changes: 7 additions & 5 deletions drivers/sensor/wsen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_ITDS wsen_itds)
add_subdirectory_ifdef(CONFIG_WSEN_HIDS wsen_hids)
add_subdirectory_ifdef(CONFIG_WSEN_PADS wsen_pads)
add_subdirectory_ifdef(CONFIG_WSEN_PDUS wsen_pdus)
add_subdirectory_ifdef(CONFIG_WSEN_TIDS wsen_tids)
add_subdirectory_ifdef(CONFIG_WSEN_HIDS_2525020210001 wsen_hids_2525020210001)
add_subdirectory_ifdef(CONFIG_WSEN_HIDS_2525020210002 wsen_hids_2525020210002)
add_subdirectory_ifdef(CONFIG_WSEN_ISDS_2536030320001 wsen_isds_2536030320001)
add_subdirectory_ifdef(CONFIG_WSEN_ITDS_2533020201601 wsen_itds_2533020201601)
add_subdirectory_ifdef(CONFIG_WSEN_PADS_2511020213301 wsen_pads_2511020213301)
add_subdirectory_ifdef(CONFIG_WSEN_PDUS_25131308XXXXX wsen_pdus_25131308XXXXX)
add_subdirectory_ifdef(CONFIG_WSEN_TIDS_2521020222501 wsen_tids_2521020222501)
# zephyr-keep-sorted-stop
12 changes: 7 additions & 5 deletions drivers/sensor/wsen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
source "drivers/sensor/wsen/wsen_hids/Kconfig"
source "drivers/sensor/wsen/wsen_itds/Kconfig"
source "drivers/sensor/wsen/wsen_pads/Kconfig"
source "drivers/sensor/wsen/wsen_pdus/Kconfig"
source "drivers/sensor/wsen/wsen_tids/Kconfig"
source "drivers/sensor/wsen/wsen_hids_2525020210001/Kconfig"
source "drivers/sensor/wsen/wsen_hids_2525020210002/Kconfig"
source "drivers/sensor/wsen/wsen_isds_2536030320001/Kconfig"
source "drivers/sensor/wsen/wsen_itds_2533020201601/Kconfig"
source "drivers/sensor/wsen/wsen_pads_2511020213301/Kconfig"
source "drivers/sensor/wsen/wsen_pdus_25131308XXXXX/Kconfig"
source "drivers/sensor/wsen/wsen_tids_2521020222501/Kconfig"
# zephyr-keep-sorted-stop
7 changes: 0 additions & 7 deletions drivers/sensor/wsen/wsen_hids/CMakeLists.txt

This file was deleted.

55 changes: 0 additions & 55 deletions drivers/sensor/wsen/wsen_hids/Kconfig

This file was deleted.

Loading
Loading