Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-j721e-sk-csi2-dual-imx219.dtso

raw
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /**
3 * DT Overlay for dual RPi Camera V2.1 (Sony IMX219) interfaced with CSI2
4 * on J721E SK, AM68 SK or AM69-SK board.
5 * https://datasheets.raspberrypi.org/camera/camera-v2-schematic.pdf
6 *
7 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
8 */
9
10 /dts-v1/;
11 /plugin/;
12
13 #include <dt-bindings/gpio/gpio.h>
14 #include "k3-pinctrl.h"
15
16 &{/} {
17 clk_imx219_fixed: imx219-xclk {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <24000000>;
21 };
22
23 reg_2p8v: regulator-2p8v {
24 compatible = "regulator-fixed";
25 regulator-name = "2P8V";
26 regulator-min-microvolt = <2800000>;
27 regulator-max-microvolt = <2800000>;
28 vin-supply = <&vdd_sd_dv>;
29 regulator-always-on;
30 };
31
32 reg_1p8v: regulator-1p8v {
33 compatible = "regulator-fixed";
34 regulator-name = "1P8V";
35 regulator-min-microvolt = <1800000>;
36 regulator-max-microvolt = <1800000>;
37 vin-supply = <&vdd_sd_dv>;
38 regulator-always-on;
39 };
40
41 reg_1p2v: regulator-1p2v {
42 compatible = "regulator-fixed";
43 regulator-name = "1P2V";
44 regulator-min-microvolt = <1200000>;
45 regulator-max-microvolt = <1200000>;
46 vin-supply = <&vdd_sd_dv>;
47 regulator-always-on;
48 };
49 };
50
51 &csi_mux {
52 idle-state = <1>;
53 };
54
55 /* CAM0 I2C */
56 &cam0_i2c {
57 #address-cells = <1>;
58 #size-cells = <0>;
59 imx219_0: imx219-0@10 {
60 compatible = "sony,imx219";
61 reg = <0x10>;
62
63 clocks = <&clk_imx219_fixed>;
64 VANA-supply = <&reg_2p8v>;
65 VDIG-supply = <&reg_1p8v>;
66 VDDL-supply = <&reg_1p2v>;
67
68 port {
69 csi2_cam0: endpoint {
70 remote-endpoint = <&csi2rx0_in_sensor>;
71 link-frequencies = /bits/ 64 <456000000>;
72 clock-lanes = <0>;
73 data-lanes = <1 2>;
74 };
75 };
76 };
77 };
78
79 /* CAM1 I2C */
80 &cam1_i2c {
81 #address-cells = <1>;
82 #size-cells = <0>;
83 imx219_1: imx219-1@10 {
84 compatible = "sony,imx219";
85 reg = <0x10>;
86
87 clocks = <&clk_imx219_fixed>;
88 VANA-supply = <&reg_2p8v>;
89 VDIG-supply = <&reg_1p8v>;
90 VDDL-supply = <&reg_1p2v>;
91
92 port {
93 csi2_cam1: endpoint {
94 remote-endpoint = <&csi2rx1_in_sensor>;
95 link-frequencies = /bits/ 64 <456000000>;
96 clock-lanes = <0>;
97 data-lanes = <1 2>;
98 };
99 };
100 };
101 };
102
103
104 &cdns_csi2rx0 {
105 ports {
106 #address-cells = <1>;
107 #size-cells = <0>;
108
109 csi0_port0: port@0 {
110 reg = <0>;
111 status = "okay";
112
113 csi2rx0_in_sensor: endpoint {
114 remote-endpoint = <&csi2_cam0>;
115 bus-type = <4>; /* CSI2 DPHY. */
116 clock-lanes = <0>;
117 data-lanes = <1 2>;
118 };
119 };
120
121 csi0_port1: port@1 {
122 reg = <1>;
123 status = "disabled";
124 };
125
126 csi0_port2: port@2 {
127 reg = <2>;
128 status = "disabled";
129 };
130
131 csi0_port3: port@3 {
132 reg = <3>;
133 status = "disabled";
134 };
135
136 csi0_port4: port@4 {
137 reg = <4>;
138 status = "disabled";
139 };
140 };
141 };
142
143 &dphy0 {
144 status = "okay";
145 };
146
147 &ti_csi2rx0 {
148 status = "okay";
149 };
150
151 &cdns_csi2rx1 {
152 ports {
153 #address-cells = <1>;
154 #size-cells = <0>;
155
156 csi1_port0: port@0 {
157 reg = <0>;
158 status = "okay";
159
160 csi2rx1_in_sensor: endpoint {
161 remote-endpoint = <&csi2_cam1>;
162 bus-type = <4>; /* CSI2 DPHY. */
163 clock-lanes = <0>;
164 data-lanes = <1 2>;
165 };
166 };
167
168 csi1_port1: port@1 {
169 reg = <1>;
170 status = "disabled";
171 };
172
173 csi1_port2: port@2 {
174 reg = <2>;
175 status = "disabled";
176 };
177
178 csi1_port3: port@3 {
179 reg = <3>;
180 status = "disabled";
181 };
182
183 csi1_port4: port@4 {
184 reg = <4>;
185 status = "disabled";
186 };
187 };
188 };
189
190 &dphy1 {
191 status = "okay";
192 };
193
194 &ti_csi2rx1 {
195 status = "okay";
196 };