Skip to content

Commit a3d298c

Browse files
jbehrensnxkartben
authored andcommitted
boards: shields: Added Mikroe Stepper 19 Click Shield
This shield includes a ti drv8424 stepper driver that is controlled via gpio. Some of these pins are only available via the tca9538a gpio expander on the shield. Signed-off-by: Jan Behrens <[email protected]>
1 parent cbe3e18 commit a3d298c

File tree

5 files changed

+107
-0
lines changed

5 files changed

+107
-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_STEPPER_19_CLICK
5+
def_bool $(shields_list_contains,mikroe_stepper_19_click)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.. _mikroe_stepper_19_click_shield:
2+
3+
MikroElektronika Stepper 19 Click
4+
#################################
5+
6+
Overview
7+
********
8+
9+
Stepper 19 Click shield has a TI DRV8424 stepper driver accessed via GPIO and
10+
a TI TCA9538 GPIO expander accessed via I2C. Some DRV8424 pins are accessed
11+
via the GPIO expander.
12+
The DRV8424 uses by default the work-queue timing source, but that can be changed.
13+
14+
More information about the shield can be found at
15+
`Mikroe Stepper 19 click`_.
16+
17+
.. figure:: stepper_19_click.webp
18+
:align: center
19+
:alt: MikroElektronika Stepper 19 Click
20+
21+
MikroElektronika Stepper 19 Click (Credit: MikroElektronika)
22+
23+
Requirements
24+
************
25+
26+
The shield uses a mikroBUS interface. The target board must define
27+
a ``mikrobus_i2c`` and ``mikrobus_header`` node labels
28+
(see :ref:`shields` for more details).
29+
30+
Programming
31+
***********
32+
33+
.. zephyr-app-commands::
34+
:zephyr-app: samples/drivers/stepper/generic/
35+
:board: <board>
36+
:shield: mikroe_stepper_19_click
37+
:goals: build flash
38+
39+
References
40+
**********
41+
42+
.. target-notes::
43+
44+
.. _Mikroe Stepper 19 click:
45+
https://www.mikroe.com/stepper-19-click
Binary file not shown.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright (c) 2025 Navimatix GmbH
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
stepper = &drv8424_mikroe_stepper_19_click;
9+
};
10+
};
11+
12+
&mikrobus_i2c {
13+
status = "okay";
14+
15+
tca9538a_mikroe_stepper_19_click: tca9538a@70 {
16+
status = "okay";
17+
compatible = "ti,tca9538";
18+
19+
reg = <0x70>;
20+
21+
gpio-controller;
22+
ngpios = <8>;
23+
#gpio-cells = <2>;
24+
25+
gpio-reserved-ranges = <7 1>;
26+
27+
gpio-line-names =
28+
"M0",
29+
"M1",
30+
"DEC0",
31+
"DEC1",
32+
"TOFF",
33+
"STP",
34+
"DIR";
35+
};
36+
};
37+
38+
/ {
39+
drv8424_mikroe_stepper_19_click: drv8424 {
40+
status = "okay";
41+
compatible = "ti,drv84xx";
42+
43+
dir-gpios = <&mikrobus_header 0 0>;
44+
step-gpios = <&mikrobus_header 6 0>;
45+
sleep-gpios = <&mikrobus_header 1 GPIO_ACTIVE_LOW>;
46+
en-gpios = <&mikrobus_header 2 0>;
47+
fault-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
48+
m0-gpios = <&tca9538a_mikroe_stepper_19_click 0 0>;
49+
m1-gpios = <&tca9538a_mikroe_stepper_19_click 1 0>;
50+
};
51+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: mikroe_stepper_19_click
3+
full_name: Stepper 19 Click
4+
vendor: mikroe
5+
supported_features:
6+
- stepper

0 commit comments

Comments
 (0)