Skip to content

Commit ed9c6d8

Browse files
XenuIsWatchingkartben
authored andcommitted
tests: drivers: build_all: add build for i3c_dw
The Synopsys I3C has no in-tree board with it to built with. This adds a test build-only for the cadence i3c peripheral attaching with the qemu_cortex_m3 board as that appears to be generic enough. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 534c414 commit ed9c6d8

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

tests/drivers/build_all/i3c/boards/qemu_cortex_m3.overlay

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
*/
66

77
/ {
8+
test_fixed_clk: test-fixed-clock {
9+
compatible = "fixed-clock";
10+
clock-frequency = <200000000>;
11+
#clock-cells = <0>;
12+
};
13+
814
i3c0: i3c@88888888 {
915
compatible = "cdns,i3c";
1016
#address-cells = <3>;
@@ -16,4 +22,16 @@
1622
i3c-scl-hz = <12500000>;
1723
i2c-scl-hz = <400000>;
1824
};
25+
26+
i3c1: i3c@cccccccc {
27+
compatible = "snps,designware-i3c";
28+
#address-cells = <3>;
29+
#size-cells = <0>;
30+
reg = <0xcccccccc 0x400>;
31+
interrupt-parent = <&nvic>;
32+
interrupts = <8 1>;
33+
clocks = <&test_fixed_clk>;
34+
i3c-scl-hz = <12500000>;
35+
i2c-scl-hz = <400000>;
36+
};
1937
};

tests/drivers/build_all/i3c/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ CONFIG_I3C=y
44
CONFIG_SHELL=y
55
CONFIG_I3C_SHELL=y
66
CONFIG_I3C_RTIO=y
7+
CONFIG_CLOCK_CONTROL=y
8+
CONFIG_CLOCK_CONTROL_FIXED_RATE_CLOCK=y

tests/drivers/build_all/i3c/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ tests:
77
drivers.i3c.build:
88
# will cover drivers without in-tree boards
99
platform_allow: qemu_cortex_m3
10-
tags: i3c_cdns
10+
tags: i3c_cdns i3c_dw
1111
extra_args: "CONFIG_I3C=y"

0 commit comments

Comments
 (0)