Skip to content

Commit

Permalink
tests: drivers: build_all: display: Add mipi-dsi devices to build test
Browse files Browse the repository at this point in the history
Add build tests for following devices.

- himax,hx8394
- frida,nt35510
- orisetech,otm8009a
- raydium,rm67162
- raydium,rm68200

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi committed Sep 27, 2024
1 parent 2014cc4 commit 33e45ef
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
67 changes: 67 additions & 0 deletions tests/drivers/build_all/display/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,73 @@
};
};

test_mipi_dsi {
compatible = "vnd,mipi-dsi";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

test_hx8394: hx8394@0 {
status = "okay";
compatible = "himax,hx8394";
reg = <0x0>;
reset-gpios = <&test_gpio 0 0>;
data-lanes = <2>;
width = <720>;
height = <1280>;
pixel-format = <0>;
};

test_nt35510: nt35510@1 {
status = "okay";
compatible = "frida,nt35510";
reg = <0x1>;
height = <800>;
width = <480>;
reset-gpios = <&test_gpio 0 0>;
bl-gpios = <&test_gpio 0 0>;
data-lanes = <2>;
pixel-format = <0>;
rotation = <90>;
};

test_otm8009a: otm8009a@2 {
status = "okay";
compatible = "orisetech,otm8009a";
reg = <0x2>;
height = <800>;
width = <480>;
reset-gpios = <&test_gpio 0 0>;
bl-gpios = <&test_gpio 0 0>;
data-lanes = <2>;
pixel-format = <0>;
rotation = <90>;
};

test_rm67162: rm67162@3 {
status = "okay";
compatible = "raydium,rm67162";
reg = <0x3>;
reset-gpios = <&test_gpio 0 0>;
bl-gpios = <&test_gpio 0 0>;
te-gpios = <&test_gpio 0 0>;
data-lanes = <1>;
width = <400>;
height = <392>;
pixel-format = <0>;
};

test_rm68200: rm68200@4 {
status = "okay";
compatible = "raydium,rm68200";
reg = <0x4>;
reset-gpios = <&test_gpio 0 0>;
data-lanes = <2>;
width = <720>;
height = <1280>;
pixel-format = <0>;
};
};

test_spi: spi@33334444 {
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/build_all/display/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CONFIG_TEST=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_DISPLAY=y
CONFIG_MIPI_DSI=y
5 changes: 4 additions & 1 deletion tests/drivers/build_all/display/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ common:
- native_posix
- native_sim
tests:
drivers.display.default: {}
drivers.display.default:
extra_configs:
- CONFIG_DISPLAY_NT35510_INIT_PRIORITY=87
- CONFIG_DISPLAY_OTM8009A_INIT_PRIORITY=87

0 comments on commit 33e45ef

Please sign in to comment.