Skip to content

Commit 64225c3

Browse files
MaureenHelmnashif
authored andcommitted
boards: shields: Add Pmod ACL sensor module
Adds a new shield definition for the Digilent Pmod ACL module. This module provides support for an ADI ADXL345 3-axis accelerometer over a Pmod SPI connector. Signed-off-by: Maureen Helm <[email protected]>
1 parent 0a79085 commit 64225c3

File tree

5 files changed

+85
-0
lines changed

5 files changed

+85
-0
lines changed

MAINTAINERS.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,6 +3338,7 @@ ADI Platforms:
33383338
- microbuilder
33393339
files:
33403340
- boards/adi/
3341+
- boards/shields/pmod_acl/
33413342
- drivers/*/*max*
33423343
- drivers/*/*max*/
33433344
- drivers/dac/dac_ltc*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_PMOD_ACL
5+
def_bool $(shields_list_contains,pmod_acl)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
accel0 = &adxl345_pmod_acl;
10+
};
11+
};
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.. pmod_acl:
2+
3+
Digilent Pmod ACL
4+
#################
5+
6+
Overview
7+
********
8+
9+
The Digilent Pmod ACL is a 3-axis digital accelerometer module powered by the
10+
Analog Devices ADXL345.
11+
12+
Programming
13+
***********
14+
15+
Set ``--shield pmod_acl`` 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: pmod_acl
21+
:goals: build
22+
23+
Requirements
24+
************
25+
26+
This shield can only be used with a board which provides a configuration
27+
for Pmod connectors and defines node aliases for SPI and GPIO interfaces
28+
(see :ref:`shields` for more details).
29+
30+
References
31+
**********
32+
33+
- `Pmod ACL product page`_
34+
- `Pmod ACL reference manual`_
35+
- `Pmod ACL schematic`_
36+
- `ADXL345 product page`_
37+
- `ADXL345 data sheet`_
38+
39+
.. _Pmod ACL product page:
40+
https://digilent.com/shop/pmod-acl-3-axis-accelerometer/
41+
42+
.. _Pmod ACL reference manual:
43+
https://digilent.com/reference/pmod/pmodacl/reference-manual
44+
45+
.. _Pmod ACL schematic:
46+
https://digilent.com/reference/_media/reference/pmod/pmodacl/pmodacl_sch.pdf
47+
48+
.. _ADXL345 product page:
49+
https://www.analog.com/en/products/adxl345.html
50+
51+
.. _ADXL345 data sheet:
52+
https://www.analog.com/media/en/technical-documentation/data-sheets/adxl345.pdf
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pmod_spi {
8+
status = "okay";
9+
10+
adxl345_pmod_acl: adxl345@0 {
11+
compatible = "adi,adxl345";
12+
reg = <0x0>;
13+
spi-max-frequency = <DT_FREQ_M(1)>;
14+
status = "okay";
15+
};
16+
};

0 commit comments

Comments
 (0)