Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions boards/shields/apollo4p_evb_disp_shield_rev2/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2025, Ambiq Micro

config SHIELD_AMBIQ_APOLLO4P_EVB_DISP_SHIELD_REV2
def_bool $(shields_list_contains,apollo4p_evb_disp_shield_rev2)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2025, Ambiq Micro Inc. <www.ambiq.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
accel0 = &adxl362_test;
};
};

&spi1 {
status = "okay";

adxl362_test: adxl362@0 {
compatible = "adi,adxl362";
reg = <0>;
spi-max-frequency = <8000000>;
int1-gpios = <&gpio0_31 31 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};
};

&gpio0_31 {
status = "okay";
};
41 changes: 41 additions & 0 deletions boards/shields/apollo4p_evb_disp_shield_rev2/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _apollo4p_evb_disp_shield_rev2:

Apollo4 Plus EVB Display Shield Rev2
####################################

Overview
********

Support for the Apollo4 Plus EVB display shield.

Apollo4 Plus EVB Display Shield
********************************

Pin Assignments of the Shield Connector
=======================================

+-----------------------+--------------------+------------------+
| Shield Connector Pin | Function | Apollo4 Plus Pin |
+=======================+====================+==================+
+-----------------------+--------------------+------------------+
| J1-29 | IOM0_SCK | 5 |
+-----------------------+--------------------+------------------+
| J1-31 | IOM0_MOSI | 6 |
+-----------------------+--------------------+------------------+
| J1-33 | IOM0_MISO | 7 |
+-----------------------+--------------------+------------------+
| J1-34 | IOM0_CS | 50 |
+-----------------------+--------------------+------------------+

Programming
***********

Set ``--shield apollo4p_evb_disp_shield_rev2`` when you
invoke ``west build`` or ``cmake`` in your Zephyr application.
For example when running the :zephyr:code-sample:`accel_polling` sample:

.. zephyr-app-commands::
:zephyr-app: samples/sensor/accel_polling
:board: apollo4p_evb
:shield: apollo4p_evb_disp_shield_rev2
:goals: build
11 changes: 11 additions & 0 deletions boards/shields/apollo4p_evb_disp_shield_rev2/shield.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2025, Ambiq Micro

shield:
name: apollo4p_evb_disp_shield_rev2
full_name: Apollo 4P EVB Display Shield Rev 2
vendor: ambiq
supported_features:
- accel_polling
- spi