File tree Expand file tree Collapse file tree 6 files changed +77
-0
lines changed
tests/drivers/build_all/display Expand file tree Collapse file tree 6 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ cmake_minimum_required (VERSION 3.20.0)
4+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5+ project (build_all)
6+
7+ FILE (GLOB app_sources src/*.c)
8+ target_sources (app PRIVATE ${app_sources} )
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2022, Kumar Gala <
[email protected] >
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ *
6+ * Application overlay for testing driver builds
7+ *
8+ * Names in this file should be chosen in a way that won't conflict
9+ * with real-world devicetree nodes, to allow these tests to run on
10+ * (and be extended to test) real hardware.
11+ */
12+
13+ / {
14+ test {
15+ #address-cells = <1>;
16+ #size-cells = <1>;
17+
18+ test_gpio: gpio@deadbeef {
19+ compatible = "vnd,gpio";
20+ gpio-controller;
21+ reg = <0xdeadbeef 0x1000>;
22+ #gpio-cells = <0x2>;
23+ status = "okay";
24+ };
25+
26+ test_spi: spi@33334444 {
27+ #address-cells = <1>;
28+ #size-cells = <0>;
29+ compatible = "vnd,spi";
30+ reg = <0x33334444 0x1000>;
31+ status = "okay";
32+ clock-frequency = <2000000>;
33+
34+ /* one entry for every devices at spi.dtsi */
35+ cs-gpios = <&test_gpio 0 0>;
36+
37+ test_spi_ili9342c: ili9342c@0 {
38+ compatible = "ilitek,ili9342c";
39+ reg = <0>;
40+ spi-max-frequency = <25000000>;
41+ cmd-data-gpios = <&test_gpio 0 0>;
42+ pixel-format = <0>;
43+ rotation = <270>;
44+ width = <320>;
45+ height = <240>;
46+ };
47+ };
48+ };
49+ };
Original file line number Diff line number Diff line change 1+ CONFIG_ILI9342C=y
Original file line number Diff line number Diff line change 1+ CONFIG_TEST=y
2+ CONFIG_SPI=y
3+ CONFIG_DISPLAY=y
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2022, Kumar Gala <[email protected] > 3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ void main (void )
8+ {
9+ }
Original file line number Diff line number Diff line change 1+ common :
2+ build_only : true
3+ min_ram : 32
4+ tags : drivers display
5+ tests :
6+ drivers.display.ili9342c.build :
7+ extra_args : CONF_FILE=display_ili9342c.conf
You can’t perform that action at this time.
0 commit comments