shields: Add the frdm_stbc_agm01 shield.

The frdm_stbc_agm01 implements an fxos8700 and fxas21002 to provide
a 9-axis sensor solution.

Signed-off-by: Ryan Holleran <rhollerar@gmail.com>
This commit is contained in:
Ryan Holleran 2021-01-31 17:35:03 -06:00 committed by Maureen Helm
commit fea20bcb88
4 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# Copyright (c) 2021 Ryan Holleran
# SPDX-License-Identifier: Apache-2.0
config SHIELD_FRDM_STBC_AGM01
def_bool $(shields_list_contains,frdm_stbc_agm01)

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -0,0 +1,71 @@
.. _frdm_stbc_agm01_shield:
NXP FRDM-STBC-AGM01
###################
Overview
********
The FRDM-STBC-AGM01 is an NXP Freedom development board with
FXOS8700 and FXAS21002. This 9-axis solution (FXAS21002C Gyroscope,
+ FXOS8700CQ E-compass sensor) is compatible with any board that
provides an Arduino R3 header.
.. image:: ./AGM01.jpg
:width: 500px
:align: center
:alt: FRDM-STBC-AGM01
Pin Assignment of the FRDM-STBC-AGM01 Shield
============================================
+-----------------------+---------------------+
| Shield Connector Pin | Function |
+=======================+=====================+
| A5 | I2C - SCL1 |
+-----------------------+---------------------+
| A4 | I2C - SDA1 |
+-----------------------+---------------------+
| D15 | I2C - SCL0 |
+-----------------------+---------------------+
| D14 | I2C - SDA0 |
+-----------------------+---------------------+
| D2 | INT1 - 8700 |
+-----------------------+---------------------+
| D4 | INT2 - 8700 |
+-----------------------+---------------------+
| D5 | INT1 - 21002 |
+-----------------------+---------------------+
| D8 | INT2 - 21002 |
+-----------------------+---------------------+
| A3 | RST - GPIO |
+-----------------------+---------------------+
For more information about the FXOS8700, FXAS21002, and FRDM-STBC-AGM01
board:
- :ref:`fxos8700`
- :ref:`fxas21002`
- `FRDM-STBC-AGM01 Website`_
- `FRDM-STBC-AGM01 Quick Reference Card`_
- `FRDM-STBC-AGM01 Schematics`_
Programming
***********
Set ``-DSHIELD=frdm_stbc_agm01`` when you invoke ``west build``. For example:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxas21002
:board: frdm_k22f
:shield: frdm_stbc_agm01
:goals: build
.. _FRDM-STBC-AGM01 Website:
https://www.nxp.com/design/development-boards/freedom-development-boards/sensors/sensor-toolbox-development-boards-for-a-9-axis-solution-using-fxas21002c-and-fxos8700cq:FRDM-STBC-AGM01
.. _FRDM-STBC-AGM01 Quick Reference Card:
https://www.nxp.com/docs/en/supporting-information/FRDM-STBC-AGM01-QRC.pdf
.. _FRDM-STBC-AGM01 Schematics:
https://www.nxp.com/downloads/en/schematics/FRDM-STBC-AGM01-SCH.pdf

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2021 Ryan Holleran
* SPDX-License-Identifier: Apache-2.0
*/
&arduino_i2c {
fxos8700@1e {
compatible = "nxp,fxos8700";
reg = <0x1e>;
label = "AGM01_FXOS8700";
int1-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>;
int2-gpios = <&arduino_header 10 GPIO_ACTIVE_LOW>;
};
fxas21002@20 {
compatible = "nxp,fxas21002";
reg = <0x20>;
label = "AGM01_FXAS21002";
int1-gpios = <&arduino_header 11 GPIO_ACTIVE_LOW>;
int2-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>;
};
};