Skip to content

Commit 9796313

Browse files
henrikbrixandersennashif
authored andcommitted
tests: drivers: build_all: add build test for Xilinx drivers
Add build test for Xilinx drivers for devices which are not present on any in-tree boards. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 4e7baec commit 9796313

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2020 Henrik Brix Andersen <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
counter0: counter@88888888 {
9+
compatible = "xlnx,xps-timer-1.00.a";
10+
reg = <0x88888888 0x10000>;
11+
interrupt-parent = <&nvic>;
12+
interrupts = <4 0>;
13+
clock-frequency = <100000000>;
14+
xlnx,count-width = <0x20>;
15+
xlnx,gen0-assert = <0x1>;
16+
xlnx,gen1-assert = <0x1>;
17+
xlnx,one-timer-only = <0x0>;
18+
xlnx,trig0-assert = <0x1>;
19+
xlnx,trig1-assert = <0x1>;
20+
label = "COUNTER_0";
21+
};
22+
23+
pwm0: pwm@99999999 {
24+
compatible = "xlnx,xps-timer-1.00.a-pwm";
25+
reg = <0x99999999 0x10000>;
26+
interrupt-parent = <&nvic>;
27+
interrupts = <5 0>;
28+
clock-frequency = <100000000>;
29+
xlnx,count-width = <0x20>;
30+
xlnx,gen0-assert = <0x1>;
31+
xlnx,gen1-assert = <0x1>;
32+
xlnx,one-timer-only = <0x0>;
33+
xlnx,trig0-assert = <0x1>;
34+
xlnx,trig1-assert = <0x0>;
35+
label = "PWM_0";
36+
#pwm-cells = <3>;
37+
};
38+
};

tests/drivers/build_all/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ tests:
9494
extra_args: CONF_FILE=modem_ublox_sara.conf
9595
platform_exclude: serpente pinnacle_100_dvk
9696
tags: drivers
97+
drivers.xlnx.build:
98+
build_only: true
99+
extra_args: CONF_FILE=xlnx.conf
100+
platform_allow: arty_a7_arm_designstart_m1
101+
tags: drivers

tests/drivers/build_all/xlnx.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_COUNTER=y
2+
CONFIG_COUNTER_XLNX_AXI_TIMER=y
3+
CONFIG_PWM=y
4+
CONFIG_PWM_XLNX_AXI_TIMER=y
5+
CONFIG_TEST_USERSPACE=y

0 commit comments

Comments
 (0)