1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Names in this file should be chosen in a way that won't conflict 7 * with real-world devicetree nodes, to allow these tests to run on 8 * (and be extended to test) real hardware. 9 */ 10 11#include <zephyr/dt-bindings/video/video-interfaces.h> 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_i2c: i2c@11112222 { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 compatible = "vnd,i2c"; 30 reg = <0x11112222 0x1000>; 31 status = "okay"; 32 clock-frequency = <100000>; 33 34 test_i2c_ov5640: ov5640@1 { 35 compatible = "ovti,ov5640"; 36 reg = <0x1>; 37 reset-gpios = <&test_gpio 0 0>; 38 powerdown-gpios = <&test_gpio 1 0>; 39 40 port { 41 ov5640_ep_out: endpoint { 42 remote-endpoint-label = "mipi_csi2rx_ep_in"; 43 bus-type = <VIDEO_BUS_TYPE_CSI2_DPHY>; 44 data-lanes = <1 2>; 45 }; 46 }; 47 }; 48 }; 49 50 test_csi: csi@22223333 { 51 compatible = "nxp,imx-csi"; 52 reg = <0x22223333 0x4000>; 53 status = "okay"; 54 interrupt-parent = <&nvic>; 55 interrupts = <56 1>; 56 57 port { 58 test_csi_ep_in: endpoint { 59 remote-endpoint-label = "test_mipi_csi2rx_ep_out"; 60 }; 61 }; 62 }; 63 64 test_mipi_csi2rx: mipi_csi2rx@33334444 { 65 compatible = "nxp,mipi-csi2rx"; 66 reg = <0x33334444 0x200>; 67 status = "okay"; 68 clocks = <&ccm IMX_CCM_MIPI_CSI2RX_ROOT_CLK 0 0>, 69 <&ccm IMX_CCM_MIPI_CSI2RX_UI_CLK 0 0>, 70 <&ccm IMX_CCM_MIPI_CSI2RX_ESC_CLK 0 0>; 71 72 ports { 73 #address-cells = <1>; 74 #size-cells = <0>; 75 76 port@0 { 77 reg = <0>; 78 test_mipi_csi2rx_ep_out: endpoint { 79 remote-endpoint-label = "test_csi_ep_in"; 80 }; 81 }; 82 83 port@1 { 84 reg = <1>; 85 86 mipi_csi2rx_ep_in: endpoint { 87 remote-endpoint-label = "ov5640_ep_out"; 88 data-lanes = <1 2>; 89 }; 90 }; 91 }; 92 }; 93 }; 94}; 95