Skip to content

Conversation

NordicBuilder
Copy link
Contributor

Backport 8a776b3~21..8a776b3 from #2132.

Add comparator API header.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 00cefa1)
(cherry picked from commit cc13816)
Add top level CMakeLists.txt entry and Kconfig options along with
userspace handlers for comparator API.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 211bdd9)
(cherry picked from commit 7d97fc7)
Adjust comparator nodes of nrf SoCs to exclude the unused
io-channel-cells property and simplify the comment describing how
to configure the comparator hardware block as COMP or LPCOMP for
SoCs which support this.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit ffbda1b)
(cherry picked from commit 30def45)
Add nRF COMP device driver and remove deprecated bindings from
dts/bindings/sensor.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 4adc924)
(cherry picked from commit cbf5449)
Add comparator build_all test suite designed to test multiple
devicetree overlays and boards for each comparator device driver.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 13af5ca)
(cherry picked from commit aca1d40)
Add nRF LPCOMP device driver.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 04e70ab)
(cherry picked from commit 1e13d3f)
Add nrf_lpcomp to build_all comparator test suite.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit a4fce33)
(cherry picked from commit 2badeca)
The mcux_acmp will get support by the comparator subsystem. To avoid
namespace clashes, namespace the driver, kconfigs and use the
MCUX_ACMP config solely to select the MCUX SDK driver.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit e0363f2)
(cherry picked from commit 67c448a)
…pt driver

Update the devicetree binding for the nxp,kinetis-acmp comparator and
move the binding to dts/bindings/comparator.

The update to the binding includes:
- Remove unused io-channel-cells property
- Remove unused sensor-device include
- Adding missing properties dac config, discrete mode config, and
  input configs.
- Rename properties to exclude redundant vendor prefix since props in
  this binding are not inhereted, and as such, don't need to be
  namespaced.
- Deprecate the old names of the renamed properties

The sensor based device driver has been updated to support both the
deprecated and new property names. This allows it to use both
nxp,enable-sample and filter-enable-sample for example.

Additionally, remove the unused io-channel-cells properties from
in-tree nodes of compatible = "nxp,kinetis-acmp"

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 4e55597)
(cherry picked from commit bee7df8)
…-acmp props

Add entyr mentioning the deprecation of the nxp, prefixed properties
in the nxp,kinetis-acmp dts binding.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 3b08a08)
(cherry picked from commit 28879e0)
Add mcux SDK based kinetis acmp device driver implementing the
comparator device driver API.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit d37f844)
(cherry picked from commit 4f0b522)
Add mcux_acmp device driver to build_all test suite.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 6ed855a)
(cherry picked from commit ef7cbee)
Add shell for comparator device drivers.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit b7648f8)
(cherry picked from commit c12fade)
Add fake comparator driver and bindings for use with testing.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 2fbe105)
(cherry picked from commit 5a43ffe)
Add test suite for comparator device driver shell.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 4ff9886)
(cherry picked from commit c99b932)
Add documentation for the comparator peripheral and shell.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 183e58b)
(cherry picked from commit 45db138)
Added comparator support to release notes for release 4.0

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 43f88ca)
(cherry picked from commit 55e96fa)
Add entry for comparator drivers

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit e40fa89)
(cherry picked from commit 82e1b01)
The comparator drivers area contains the following incorrect area:

files:
  - include/zephyr/dt-bindings/clock/

and contains the following duplicate area:

files:
  - include/zephyr/drivers/comparator/

this commit removes them.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 1635d77)
(cherry picked from commit 54ceaf9)
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 3272db8)
(cherry picked from commit cd0d63d)
Change integration_platform -> platform_allow to not build the
shell test suite for all supported boards.

Upstream PR: zephyrproject-rtos/zephyr#80049

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 0502189)
(cherry picked from commit 8a776b3)
@rlubos rlubos merged commit 68d889b into v3.7.99-ncs1-branch Oct 30, 2024
22 checks passed
@rlubos rlubos deleted the backport-2132-to-v3.7.99-ncs1-branch branch November 6, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants