File tree Expand file tree Collapse file tree 7 files changed +171
-0
lines changed
tests/drivers/build_all/auxdisplay Expand file tree Collapse file tree 7 files changed +171
-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_auxdisplay)
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) 2024 TOKITA Hiroshi
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ / {
7+ test {
8+ #address-cells = <1>;
9+ #size-cells = <1>;
10+
11+ test_gpio: gpio@deadbeef {
12+ compatible = "vnd,gpio";
13+ gpio-controller;
14+ reg = <0xdeadbeef 0x1000>;
15+ #gpio-cells = <0x2>;
16+ status = "okay";
17+ };
18+
19+ test_i2c: i2c@11112222 {
20+ #address-cells = <1>;
21+ #size-cells = <0>;
22+ compatible = "vnd,i2c";
23+ reg = <0x11112222 0x1000>;
24+ status = "okay";
25+ clock-frequency = <100000>;
26+
27+ test_serlcd: serlcd@0 {
28+ compatible = "sparkfun,serlcd";
29+ reg = <0x0>;
30+ status = "okay";
31+ columns = <16>;
32+ rows = <2>;
33+ command-delay-ms = <10>;
34+ special-command-delay-ms = <50>;
35+ };
36+
37+ test_jhd1313: jhd1313@0 {
38+ compatible = "jhd,jhd1313";
39+ reg = <0x1>;
40+ status = "okay";
41+ columns = <16>;
42+ rows = <2>;
43+ };
44+ };
45+ };
46+ };
Original file line number Diff line number Diff line change 1+ CONFIG_TEST=y
2+ CONFIG_TEST_USERSPACE=y
3+ CONFIG_GPIO=y
4+ CONFIG_AUXDISPLAY=y
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 TOKITA Hiroshi
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ / {
7+ test {
8+ #address-cells = <1>;
9+ #size-cells = <1>;
10+
11+ test_gpio: gpio@deadbeef {
12+ compatible = "vnd,gpio";
13+ gpio-controller;
14+ reg = <0xdeadbeef 0x1000>;
15+ #gpio-cells = <0x2>;
16+ status = "okay";
17+ };
18+
19+ test_spi: spi@33334444 {
20+ #address-cells = <1>;
21+ #size-cells = <0>;
22+ compatible = "vnd,spi";
23+ reg = <0x33334444 0x1000>;
24+ status = "okay";
25+ clock-frequency = <2000000>;
26+
27+ /* one entry for every devices at spi.dtsi */
28+ cs-gpios = <&test_gpio 0 0>,
29+ <&test_gpio 0 0>,
30+ <&test_gpio 0 0>,
31+ <&test_gpio 0 0>,
32+ <&test_gpio 0 0>;
33+
34+ test_spi_pt6314: pt6314@0 {
35+ compatible = "ptc,pt6314";
36+ reg = <0>;
37+ status = "okay";
38+ spi-max-frequency = <1000000>;
39+ columns = <20>;
40+ rows = <2>;
41+ };
42+ };
43+ };
44+ };
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 TOKITA Hiroshi
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ int main (void )
8+ {
9+ return 0 ;
10+ }
Original file line number Diff line number Diff line change 1+ common :
2+ build_only : true
3+ tags :
4+ - drivers
5+ - rtc
6+ tests :
7+ drivers.auxdisplay.build.i2c :
8+ extra_args : DTC_OVERLAY_FILE="i2c_devices.overlay"
9+ extra_configs :
10+ - CONFIG_I2C=y
11+ platform_allow :
12+ - native_sim
13+ - native_sim/native/64
14+ drivers.auxdisplay.build.spi :
15+ extra_args : DTC_OVERLAY_FILE="spi_devices.overlay"
16+ extra_configs :
17+ - CONFIG_SPI=y
18+ platform_allow :
19+ - native_sim
20+ - native_sim/native/64
21+ drivers.auxdisplay.build.uart :
22+ extra_args : DTC_OVERLAY_FILE="uart_devices.overlay"
23+ extra_configs :
24+ - CONFIG_SERIAL=y
25+ platform_allow :
26+ - native_sim
27+ - native_sim/native/64
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 TOKITA Hiroshi
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ / {
7+ test {
8+ #address-cells = <1>;
9+ #size-cells = <1>;
10+
11+ test_gpio: gpio@deadbeef {
12+ compatible = "vnd,gpio";
13+ gpio-controller;
14+ reg = <0xdeadbeef 0x1000>;
15+ #gpio-cells = <0x2>;
16+ status = "okay";
17+ };
18+
19+ test_uart: uart@55556666 {
20+ compatible = "vnd,serial";
21+ reg = <0x55556666 0x1000>;
22+ status = "okay";
23+
24+ test_uart_itron: itron {
25+ compatible = "noritake,itron";
26+ status = "okay";
27+ columns = <20>;
28+ rows = <2>;
29+ };
30+ };
31+ };
32+ };
You can’t perform that action at this time.
0 commit comments