Skip to content

Commit 9809788

Browse files
vladislav-pejickartben
authored andcommitted
boards: shields: Add EVAL-ADXL367-ARDZ shield
Add a new shield definition for the Analog Devices EVAL-ADXL367-ARDZ accelerometer shield. This shield provides support for an ADI ADXL367 accelerometer over an Arduino SPI connector. Signed-off-by: Vladislav Pejic <vladislav.pejic@orioninc.com>
1 parent 31f5d28 commit 9809788

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_EVAL_ADXL367_ARDZ
5+
def_bool $(shields_list_contains,eval_adxl367_ardz)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.. _eval_adxl367_ardz:
2+
3+
EVAL-ADXL367-ARDZ
4+
#################
5+
6+
Overview
7+
********
8+
9+
The EVAL-ADXL367-ARDZ is a 3-axis digital accelerometer Arduino shield powered
10+
by the Analog Devices ADXL367.
11+
12+
Programming
13+
***********
14+
15+
Set ``--shield eval_adxl367_ardz`` when you invoke ``west build``. For example:
16+
17+
.. zephyr-app-commands::
18+
:zephyr-app: samples/sensor/sensor_shell
19+
:board: apard32690/max32690/m4
20+
:shield: eval_adxl367_ardz
21+
:goals: build
22+
23+
Requirements
24+
************
25+
26+
This shield can only be used with a board which provides a configuration for
27+
Arduino connectors and defines node aliases for SPI and GPIO interfaces (see
28+
:ref:`shields` for more details).
29+
30+
References
31+
**********
32+
33+
- `ADXL367 product page`_
34+
- `ADXL367 data sheet`_
35+
36+
.. _ADXL367 product page:
37+
https://www.analog.com/en/products/adxl367.html
38+
39+
.. _ADXL367 data sheet:
40+
https://www.analog.com/media/en/technical-documentation/data-sheets/adxl367.pdf
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/sensor/adxl367.h>
8+
9+
/ {
10+
aliases {
11+
accel0 = &adxl367_eval_adxl367_ardz;
12+
};
13+
};
14+
15+
&arduino_spi {
16+
status = "okay";
17+
18+
adxl367_eval_adxl367_ardz: adxl367@0 {
19+
compatible = "adi,adxl367";
20+
reg = <0x0>;
21+
spi-max-frequency = <DT_FREQ_M(1)>;
22+
int1-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
23+
fifo-mode = <ADXL367_FIFO_MODE_STREAM>;
24+
status = "okay";
25+
};
26+
};

0 commit comments

Comments
 (0)