tests: drivers: build_all: video: Add test for mipi csi2rx

Add test case for mipi csi2rx driver. As this driver selects the csi
driver, the csi node has to be enabled as well.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
This commit is contained in:
Phi Bang Nguyen 2024-05-11 19:34:35 +02:00 committed by Carles Cufí
commit 9e03d5ada3
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,56 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*
* Names in this file should be chosen in a way that won't conflict
* with real-world devicetree nodes, to allow these tests to run on
* (and be extended to test) real hardware.
*/
/ {
test {
#address-cells = <1>;
#size-cells = <1>;
test_gpio: gpio@deadbeef {
compatible = "vnd,gpio";
gpio-controller;
reg = <0xdeadbeef 0x1000>;
#gpio-cells = <0x2>;
status = "okay";
};
test_i2c: i2c@11112222 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,i2c";
reg = <0x11112222 0x1000>;
status = "okay";
clock-frequency = <100000>;
test_i2c_ov5640: ov5640@1 {
compatible = "ovti,ov5640";
reg = <0x1>;
reset-gpios = <&test_gpio 0 0>;
powerdown-gpios = <&test_gpio 1 0>;
};
};
test_csi: csi@22223333 {
compatible = "nxp,imx-csi";
reg = <0x22223333 0x4000>;
status = "okay";
interrupt-parent = <&nvic>;
interrupts = <56 1>;
source = <&test_mipi_csi2rx>;
};
test_mipi_csi2rx: mipi_csi2rx@33334444 {
compatible = "nxp,mipi-csi2rx";
reg = <0x33334444 0x200>;
status = "okay";
sensor = <&test_i2c_ov5640>;
};
};
};

View file

@ -16,3 +16,7 @@ tests:
platform_allow:
- mimxrt1064_evk
- mimxrt1170_evk/mimxrt1176/cm7
drivers.video.mcux_mipi_csi2rx.build:
platform_allow:
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt1170_evk@B/mimxrt1176/cm7