-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: shields: Add EVAL-AD4052-ARDZ adc shield
Adds a new shield definition for the Analog Devices EVAL-AD4052-ARDZ accelerometer shield. This shield provides support for an ADI AD4052 16BIT adc over an Arduino SPI connector. Signed-off-by: Dimitrije Lilic <dimitrije.lilic@orioninc.com>
- Loading branch information
1 parent
6b93e4b
commit a353adf
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2025 Analog Devices, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config SHIELD_EVAL_AD4052_ARDZ | ||
def_bool $(shields_list_contains,eval_ad4052_ardz) |
11 changes: 11 additions & 0 deletions
11
boards/shields/eval_ad4052_ardz/boards/apard32690_max32690_m4.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright (c) 2025 Analog Devices, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
zephyr,user { | ||
io-channels = <&adc4052_eval_ad4052_ardz 0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _eval_ad4052_ardz: | ||
|
||
EVAL-AD4052-ARDZ | ||
################# | ||
|
||
Overview | ||
******** | ||
|
||
The EVAL-AD4052-ARDZ is a 16-Bit SAR ADC Arduino shield powered | ||
by the Analog Devices AD4052. | ||
|
||
Programming | ||
*********** | ||
|
||
Set ``--shield eval_ad4052_ardz`` when you invoke ``west build``. For example: | ||
|
||
.. zephyr-app-commands:: | ||
:zephyr-app: samples/drivers/adc/ | ||
:board: apard32690/max32690/m4 | ||
:shield: eval_ad4052_ardz | ||
:goals: build | ||
|
||
Requirements | ||
************ | ||
|
||
This shield can only be used with a board which provides a configuration for | ||
Arduino connectors and defines node aliases for SPI and GPIO interfaces (see | ||
:ref:`shields` for more details). | ||
|
||
References | ||
********** | ||
|
||
- `EVAL-AD4052-ARDZ product page`_ | ||
- `EVAL-AD4052-ARDZ user guide`_ | ||
- `EVAL-AD4052-ARDZ schematic`_ | ||
- `AD4052 product page`_ | ||
- `AD4052 data sheet`_ | ||
|
||
.. _EVAL-AD4052-ARDZ product page: | ||
https://www.analog.com/en/resources/evaluation-hardware-and-software/evaluation-boards-kits/eval-ad4052-ardz.html#eb-overview | ||
|
||
.. _EVAL-AD4052-ARDZ user guide: | ||
https://www.analog.com/media/en/technical-documentation/user-guides/eval-ad4050-ad4052-ug-2222.pdf | ||
|
||
.. _EVAL-AD4052-ARDZ schematic: | ||
https://www.analog.com/media/en/evaluation-documentation/evaluation-design-files/eval-ad4052-ardz-designsupport-files.zip | ||
|
||
.. _AD4052 product page: | ||
https://www.analog.com/en/products/ad4052.html | ||
|
||
.. _AD4052 data sheet: | ||
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4052-ad4058.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2025 Analog Devices, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&arduino_spi { | ||
status = "okay"; | ||
|
||
adc4052_eval_ad4052_ardz: adc4052@0 { | ||
reg = <0>; | ||
spi-max-frequency = <DT_FREQ_M(2)>; | ||
gp1-gpios = <&arduino_header 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; | ||
gp0-gpios = <&arduino_header 15 (GPIO_PULL_DOWN)>; | ||
conversion-gpios = <&arduino_header 13 (GPIO_ACTIVE_HIGH | MAX32_GPIO_VSEL_VDDIOH)>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
#io-channel-cells = <1>; | ||
status = "okay"; | ||
compatible = "adi,ad405x-adc"; | ||
|
||
channel@0 { | ||
reg = <0>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <16>; | ||
zephyr,vref-mv = <2500>; | ||
}; | ||
}; | ||
}; |