File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
tests/drivers/build_all/stepper Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2023 Carl Zeiss Meditec AG
2+ * SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
33 * SPDX-License-Identifier: Apache-2.0
44 */
55
1717
1818 #include "gpio.dtsi"
1919 };
20+
21+ test_spi: spi@33334444 {
22+ #address-cells = <1>;
23+ #size-cells = <0>;
24+ compatible = "zephyr,spi-emul-controller";
25+ reg = <0x33334444 0x1000>;
26+ status = "okay";
27+ clock-frequency = <2000000>;
28+
29+ /* one entry for every devices at spi.dtsi */
30+ cs-gpios = <&test_gpio 0 0>; /* 0x00 */
31+
32+ #include "spi.dtsi"
33+ };
2034 };
2135};
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ CONFIG_TEST_USERSPACE=y
33CONFIG_LOG=y
44CONFIG_STEPPER_LOG_LEVEL_DBG=y
55CONFIG_GPIO=y
6+ CONFIG_SPI=y
67CONFIG_STEPPER=y
8+ CONFIG_EMUL=y
Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+ /****************************************
6+ * PLEASE KEEP REG ADDRESSES SEQUENTIAL *
7+ ***************************************/
8+
9+ test_spi_tmc5041: tmc5041@0 {
10+ compatible = "adi,tmc5041";
11+ reg = <0x0>;
12+ spi-max-frequency = <0>;
13+ #address-cells = <1>;
14+ #size-cells = <0>;
15+ clock-frequency = <1>;
16+
17+ tmc5041_0: tmc5041_0@0 {
18+ status = "okay";
19+ reg = <0>;
20+ };
21+
22+ tmc5041_1: tmc5041_1@1 {
23+ status = "okay";
24+ reg = <1>;
25+ };
26+ };
You can’t perform that action at this time.
0 commit comments