diff --git a/boards/shields/frdm_stbc_agm01/Kconfig.shield b/boards/shields/frdm_stbc_agm01/Kconfig.shield new file mode 100644 index 00000000000..495649ed6e7 --- /dev/null +++ b/boards/shields/frdm_stbc_agm01/Kconfig.shield @@ -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) diff --git a/boards/shields/frdm_stbc_agm01/doc/AGM01.jpg b/boards/shields/frdm_stbc_agm01/doc/AGM01.jpg new file mode 100644 index 00000000000..fa918c1f569 Binary files /dev/null and b/boards/shields/frdm_stbc_agm01/doc/AGM01.jpg differ diff --git a/boards/shields/frdm_stbc_agm01/doc/index.rst b/boards/shields/frdm_stbc_agm01/doc/index.rst new file mode 100644 index 00000000000..60ea89cae57 --- /dev/null +++ b/boards/shields/frdm_stbc_agm01/doc/index.rst @@ -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 diff --git a/boards/shields/frdm_stbc_agm01/frdm_stbc_agm01.overlay b/boards/shields/frdm_stbc_agm01/frdm_stbc_agm01.overlay new file mode 100644 index 00000000000..8bad7b1dfdd --- /dev/null +++ b/boards/shields/frdm_stbc_agm01/frdm_stbc_agm01.overlay @@ -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>; + }; +};