Skip to content

Commit b88a27a

Browse files
nono313kartben
authored andcommitted
drivers: sensor: adi: add ad2s1210 resolver support
implement driver for ad2s1210 resolver Signed-off-by: Nathan Olff <[email protected]>
1 parent bf664b8 commit b88a27a

File tree

6 files changed

+1019
-0
lines changed

6 files changed

+1019
-0
lines changed

drivers/sensor/adi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# zephyr-keep-sorted-start
5+
add_subdirectory_ifdef(CONFIG_AD2S1210 ad2s1210)
56
add_subdirectory_ifdef(CONFIG_ADLTC2990 adltc2990)
67
add_subdirectory_ifdef(CONFIG_ADT7310 adt7310)
78
add_subdirectory_ifdef(CONFIG_ADT7420 adt7420)

drivers/sensor/adi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# zephyr-keep-sorted-start
5+
source "drivers/sensor/adi/ad2s1210/Kconfig"
56
source "drivers/sensor/adi/adltc2990/Kconfig"
67
source "drivers/sensor/adi/adt7310/Kconfig"
78
source "drivers/sensor/adi/adt7420/Kconfig"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025, Kickmaker
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_library()
5+
6+
zephyr_library_sources(ad2s1210.c)

drivers/sensor/adi/ad2s1210/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025, Kickmaker
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config AD2S1210
5+
bool "AD2S1210 10-bit to 16-bit resolution tracking resolver-to-digital converter"
6+
default y
7+
depends on DT_HAS_ADI_AD2S1210_ENABLED
8+
select GPIO
9+
select SPI
10+
help
11+
Enable AD2S1210 10-bit to 16-bit resolution tracking resolver-to-digital converter.

0 commit comments

Comments
 (0)