1/*
2 * Copyright (c) 2022, Kumar Gala <galak@kernel.org>
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@10001000 {
19			compatible = "vnd,gpio";
20			gpio-controller;
21			reg = <0x10001000 0x1000>;
22			#gpio-cells = <0x2>;
23			status = "okay";
24		};
25
26		test_i2c: i2c@10002000 {
27			#address-cells = <1>;
28			#size-cells = <0>;
29			compatible = "vnd,i2c";
30			reg = <0x10002000 0x1000>;
31			status = "okay";
32			clock-frequency = <100000>;
33
34			test_i2c_mt9m114: mt9m114@0 {
35				compatible = "aptina,mt9m114";
36				reg = <0>;
37			};
38
39			test_i2c_ov2640: ov2640@1 {
40				compatible = "ovti,ov2640";
41				reg = <0x1>;
42				reset-gpios = <&test_gpio 0 0>;
43			};
44
45			test_i2c_ov7725: ov7725@2 {
46				compatible = "ovti,ov7725";
47				reg = <0x2>;
48				reset-gpios = <&test_gpio 0 0>;
49			};
50
51			test_i2c_ov5640: ov5640@3 {
52				compatible = "ovti,ov5640";
53				reg = <0x3>;
54				reset-gpios = <&test_gpio 0 0>;
55				powerdown-gpios = <&test_gpio 1 0>;
56			};
57
58			test_i2c_ov7670: ov7670@4 {
59				compatible = "ovti,ov7670";
60				reg = <0x4>;
61			};
62
63			test_i2c_gc2145: gc2145@5 {
64				compatible = "galaxycore,gc2145";
65				reg = <0x5>;
66				reset-gpios = <&test_gpio 0 0>;
67			};
68
69			test_i2c_video_emul_imager: video_emul_imager@6 {
70				compatible = "zephyr,video-emul-imager";
71				reg = <0x6>;
72
73				port {
74					test_video_emul_imager_ep_out: endpoint {
75						remote-endpoint-label = "test_video_emul_rx_ep_in";
76					};
77				};
78			};
79
80		};
81
82		test_video_emul_rx: video_emul_rx@10003000 {
83			compatible = "zephyr,video-emul-rx";
84			reg = <0x10003000 0x1000>;
85
86			port {
87				#address-cells = <1>;
88				#size-cells = <0>;
89
90				test_video_emul_rx_ep_in: endpoint@0 {
91					reg = <0x0>;
92					remote-endpoint-label = "test_video_emul_imager_ep_out";
93				};
94
95				test_video_emul_rx_ep_out: endpoint@1 {
96					reg = <0x1>;
97					remote-endpoint-label = "application";
98				};
99			};
100		};
101	};
102};
103