snippets: silabs-pti: Add snippet to enable Packet Trace Interface

Add snippet that can be used to enable packet trace output from
Silicon Labs Series 2 devices.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
Aksel Skauge Mellbye 2025-03-10 16:49:01 +01:00 committed by Benjamin Cabé
commit 24d171db43
5 changed files with 41 additions and 0 deletions

View file

@ -3691,6 +3691,7 @@ Silabs Platforms:
- drivers/*/*/*silabs*
- drivers/*/*/*siwx91x*
- tests/boards/silabs/
- snippets/*silabs*/
labels:
- "platform: Silabs"

View file

@ -0,0 +1,21 @@
.. _silabs-pti:
Silicon Labs Packet Trace Interface (silabs-pti)
################################################
Overview
********
This snippet allows users to build Zephyr applications for Silicon Labs Series 2 devices
where radio packets are emitted over the Packet Trace Interface for use by debugging tools.
.. code-block:: console
west build -S silabs-pti [...]
Requirements
************
Hardware support for :dtcompatible:`silabs,pti`.
A pinctrl configuration with nodelabel ``pti_default`` containing PTI pinout.

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
CONFIG_DEBUG_DRIVER=y

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Silicon Laboratories Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
&pti {
pinctrl-0 = <&pti_default>;
pinctrl-names = "default";
status = "okay";
};

View file

@ -0,0 +1,4 @@
name: silabs-pti
append:
EXTRA_CONF_FILE: pti.conf
EXTRA_DTC_OVERLAY_FILE: pti.overlay