Skip to content

Commit c41b3de

Browse files
committed
boards: shields: Add Mikroe Silent Step 2 Click Shield
The Silent Step 2 Click shield offers a ADI TMC3130 stepper driver. Some pins are accessed via a NXP PCA9538A gpio expander. Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
1 parent 3779214 commit c41b3de

File tree

5 files changed

+96
-0
lines changed

5 files changed

+96
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Navimatix GmbH
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_MIKROE_SILENT_STEP_2_CLICK
5+
def_bool $(shields_list_contains,mikroe_silent_step_2_click)
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.. _mikroe_silent_step_2_click:
2+
3+
MikroElektronika Silent Step 2 Click
4+
####################################
5+
6+
Overview
7+
********
8+
9+
The MikroElektronika `Silent Step 2 Click`_ features the `ADI TMC2130`_ stepper driver with step-dir
10+
control via gpio and configuration via spi. A `NXP PCA9538A`_ gpio expander accessed via i2c offers
11+
access to additional pins of th stepper driver.
12+
13+
.. figure:: silent_step_2_click.webp
14+
:align: center
15+
:alt: MikroElektronika Silent Step 2 Click
16+
17+
MikroElektronika Silent Step 2 Click (Credit: MikroElektronika)
18+
19+
Requirements
20+
************
21+
22+
This shield can only be used with a board that provides a mikroBUS
23+
socket and defines a ``mikrobus_i2c`` node label for the mikroBUS I2C
24+
interface, a ``mikrobus_spi`` node label for the mikroBUS SPI
25+
interface and a ``mikrobus_header`` node label (see :ref:`shields` for more details).
26+
27+
Programming
28+
***********
29+
30+
.. zephyr-app-commands::
31+
:zephyr-app: samples/drivers/stepper/generic/
32+
:board: <board>
33+
:shield: mikroe_silent_step_2_click
34+
:goals: build
35+
36+
.. _Silent Step 2 Click:
37+
https://www.mikroe.com/silent-step-2-click
38+
39+
.. _ADI TMC2130:
40+
https://www.analog.com/en/products/tmc2130.html
41+
42+
.. _NXP PCA9538A:
43+
https://www.nxp.com/products/interfaces/ic-spi-i3c-interface-devices/general-purpose-i-o-gpio/low-voltage-8-bit-ic-bus-i-o-port-with-interrupt-and-reset:PCA9538A
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright (c) 2025 Navimatix GmbH
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&mikrobus_i2c {
7+
status = "okay";
8+
pca9538a_mikroe_silent_step_2_click: pca9538a@70 {
9+
status = "okay";
10+
compatible = "nxp,pca9538";
11+
12+
reg = <0x70>;
13+
14+
gpio-controller;
15+
ngpios = <8>;
16+
#gpio-cells = <2>;
17+
18+
gpio-reserved-ranges = <3 1>;
19+
20+
gpio-line-names =
21+
"EN",
22+
"FT1",
23+
"FT2";
24+
};
25+
};
26+
27+
&mikrobus_spi {
28+
cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
29+
status = "okay";
30+
tmc2130_mikroe_silent_step_2_click: tmc2130@0 {
31+
compatible = "adi,tmc2130";
32+
reg = <0>;
33+
spi-max-frequency = <DT_FREQ_M(1)>;
34+
35+
dir-gpios = <&mikrobus_header 0 0>;
36+
step-gpios = <&mikrobus_header 6 0>;
37+
en-gpios = <&pca9538a_mikroe_silent_step_2_click 0 GPIO_ACTIVE_LOW>;
38+
irun = <20>;
39+
ihold = <20>;
40+
en-pwm-mode;
41+
};
42+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: mikroe_silent_step_2_click
3+
full_name: Silent Step 2 Click
4+
vendor: mikroe
5+
supported_features:
6+
- stepper

0 commit comments

Comments
 (0)