xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mp-tqma8mpql-mba8mp-ras314-imx219.dtso (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022-2025 TQ-Systems GmbH <linux@ew.tq-group.com>,
4 * D-82229 Seefeld, Germany.
5 * Author: Alexander Stein
6 */
7/dts-v1/;
8/plugin/;
9
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/media/video-interfaces.h>
12
13#include "imx8mp-pinfunc.h"
14
15&{/} {
16	/*
17	 * The three camera regulators are controlled by a single GPIO. Declare
18	 * a single regulator for the three supplies.
19	 */
20	reg_cam: regulator-cam {
21		compatible = "regulator-fixed";
22		regulator-name = "reg_cam";
23		/* pad muxing already done in gpio2grp */
24		gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
25		enable-active-high;
26		vin-supply = <&reg_vcc_3v3>;
27		regulator-min-microvolt = <3300000>;
28		regulator-max-microvolt = <3300000>;
29	};
30
31	cam24m: clock-cam24m {
32		compatible = "fixed-clock";
33		#clock-cells = <0>;
34		clock-frequency = <24000000>;
35		clock-output-names = "cam24m";
36	};
37};
38
39&i2c2 {
40	#address-cells = <1>;
41	#size-cells = <0>;
42
43	camera@10 {
44		compatible = "sony,imx219";
45		reg = <0x10>;
46		clocks = <&cam24m>;
47		VANA-supply = <&reg_cam>;
48		VDIG-supply = <&reg_cam>;
49		VDDL-supply = <&reg_cam>;
50		orientation = <2>;
51		rotation = <0>;
52
53		port {
54			sony_imx219: endpoint {
55				remote-endpoint = <&imx8mp_mipi_csi_in>;
56				clock-lanes = <0>;
57				clock-noncontinuous;
58				data-lanes = <1 2>;
59				link-frequencies = /bits/ 64 <456000000>;
60			};
61		};
62	};
63};
64
65&isi_0 {
66	status = "disabled";
67
68	ports {
69		port@0 {
70			/delete-node/ endpoint;
71		};
72	};
73};
74
75&isp_0 {
76	status = "okay";
77
78	ports {
79		port@1 {
80			isp0_in: endpoint {
81				bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
82				remote-endpoint = <&mipi_csi_0_out>;
83			};
84		};
85	};
86};
87
88&mipi_csi_0 {
89	status = "okay";
90
91	ports {
92		#address-cells = <1>;
93		#size-cells = <0>;
94
95		port@0 {
96			imx8mp_mipi_csi_in: endpoint {
97				remote-endpoint = <&sony_imx219>;
98				clock-lanes = <0>;
99				data-lanes = <1 2>;
100			};
101		};
102	};
103};
104
105&mipi_csi_0_out {
106	remote-endpoint = <&isp0_in>;
107};
108