xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v14-linux.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 *
5 */
6
7/dts-v1/;
8#include "rk3399pro-evb-v11-linux.dts"
9
10/ {
11	model = "Rockchip RK3399pro evb v14 board for linux";
12	compatible = "rockchip,rk3399pro-evb-v14-linux", "rockchip,rk3399pro";
13
14	reserved-memory {
15		#address-cells = <2>;
16		#size-cells = <2>;
17
18		dma_trans: dma_trans@3c000000 {
19			//no-map;
20			reg = <0x0 0x3c000000 0x0 0x04000000>;
21		};
22	};
23};
24
25/delete-node/ &imx327;
26/delete-node/ &ov13850;
27/delete-node/ &vm149c;
28&i2c1 {
29	status = "okay";
30	i2c-scl-rising-time-ns = <345>;
31	i2c-scl-falling-time-ns = <11>;
32	pinctrl-0 = <&i2c1_xfer>, <&cam_pwren_high>;
33
34	jaguar1: jaguar1@30 {
35		compatible = "jaguar1-v4l2";
36		status = "okay";
37		reg = <0x30>;
38		clocks = <&cru SCLK_CIF_OUT>;
39		clock-names = "xvclk";
40		/*
41		 * pd-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>; // conflict with csi-ctl-gpios
42		 * rst-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
43		 */
44		rockchip,camera-module-index = <0>;
45		rockchip,camera-module-facing = "back";
46		rockchip,camera-module-name = "jaguar1";
47		rockchip,camera-module-lens-name = "jaguar1";
48		port {
49			cam_out: endpoint {
50				remote-endpoint = <&usbacm_video_control_in>;
51				data-lanes = <1 2 3 4>;
52			};
53		};
54	};
55};
56
57&i2c4 {
58	status = "okay";
59
60	i2c-scl-rising-time-ns = <345>;
61	i2c-scl-falling-time-ns = <11>;
62
63	vm149c: vm149c@0c {
64		compatible = "silicon touch,vm149c";
65		status = "okay";
66		reg = <0x0c>;
67		rockchip,camera-module-index = <0>;
68		rockchip,camera-module-facing = "back";
69	};
70
71	ov13850: ov13850@10 {
72		compatible = "ovti,ov13850";
73		status = "okay";
74		reg = <0x10>;
75		clocks = <&cru SCLK_CIF_OUT>;
76		clock-names = "xvclk";
77
78		/* conflict with csi-ctl-gpios */
79		reset-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
80		pwdn-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
81		pinctrl-names = "rockchip,camera_default";
82		pinctrl-0 = <&cif_clkout>;
83		rockchip,camera-module-index = <0>;
84		rockchip,camera-module-facing = "back";
85		rockchip,camera-module-name = "CMK-CT0116";
86		rockchip,camera-module-lens-name = "Largan-50013A1";
87		lens-focus = <&vm149c>;
88
89		port {
90			ucam_out1: endpoint {
91				remote-endpoint = <&mipi_in_ucam1>;
92				data-lanes = <1 2>;
93			};
94		};
95	};
96
97	imx327: imx327@1a {
98		compatible = "sony,imx327";
99		status = "okay";
100		reg = <0x1a>;
101		clocks = <&cru SCLK_CIF_OUT>;
102		clock-names = "xvclk";
103		/* conflict with csi-ctl-gpios */
104		reset-gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>;
105		pwdn-gpios = <&gpio4 25 GPIO_ACTIVE_HIGH>;
106		pinctrl-names = "default";
107		pinctrl-0 = <&cif_clkout>;
108		rockchip,camera-module-index = <0>;
109		rockchip,camera-module-facing = "back";
110		rockchip,camera-module-name = "TongJu";
111		rockchip,camera-module-lens-name = "CHT842-MD";
112		port {
113			ucam_out2: endpoint {
114				remote-endpoint = <&mipi_in_ucam2>;
115				data-lanes = <1 2>;
116			};
117		};
118	};
119};
120
121&mipi_dphy_rx0 {
122	status = "okay";
123
124	ports {
125		#address-cells = <1>;
126		#size-cells = <0>;
127
128		port@0 {
129			reg = <0>;
130			#address-cells = <1>;
131			#size-cells = <0>;
132
133			mipi_in_ucam0: endpoint@1 {
134				reg = <1>;
135				remote-endpoint = <&usbacm_video_control_out>;
136				data-lanes = <1 2 3 4>;
137			};
138		};
139
140		port@1 {
141			reg = <1>;
142			#address-cells = <1>;
143			#size-cells = <0>;
144
145			dphy_rx0_out: endpoint@0 {
146				reg = <0>;
147				remote-endpoint = <&isp0_mipi_in>;
148			};
149		};
150	};
151};
152
153&mipi_dphy_tx1rx1 {
154	status = "okay";
155
156	ports {
157		#address-cells = <1>;
158		#size-cells = <0>;
159
160		port@0 {
161			reg = <0>;
162			#address-cells = <1>;
163			#size-cells = <0>;
164
165			mipi_in_ucam1: endpoint@1 {
166				reg = <1>;
167				remote-endpoint = <&ucam_out1>;
168				data-lanes = <1 2>;
169			};
170		};
171
172		port@1 {
173			reg = <1>;
174			#address-cells = <1>;
175			#size-cells = <0>;
176
177			dphy_tx1rx1_out: endpoint@0 {
178				reg = <0>;
179				remote-endpoint = <&isp1_mipi_in>;
180			};
181		};
182	};
183};
184
185&pcie0 {
186	/delete-property/ ep-gpios;
187	num-lanes = <4>;
188	pinctrl-names = "default";
189	pinctrl-0 = <&pcie_clkreqn_cpm>;
190	max-link-speed = <1>;
191	memory-region = <&dma_trans>;
192	busno = <0>;
193	rockchip,dma_trx_enabled = <1>;
194	rockchip,deferred = <1>;
195	status = "okay";
196};
197
198&rkisp1_0 {
199	status = "okay";
200
201	port {
202		#address-cells = <1>;
203		#size-cells = <0>;
204
205		isp0_mipi_in: endpoint@0 {
206			reg = <0>;
207			remote-endpoint = <&dphy_rx0_out>;
208		};
209	};
210};
211
212&usbacm_video_control {
213	status = "okay";
214	rockchip,camera-module-index = <0>;
215	rockchip,camera-module-facing = "back";
216	rockchip,camera-module-name = "usbacm_video_control";
217	rockchip,camera-module-lens-name = "usbacm_video_control";
218
219	ports {
220		#address-cells = <1>;
221		#size-cells = <0>;
222
223		port@0 {
224			reg = <0>;
225			#address-cells = <1>;
226			#size-cells = <0>;
227
228			usbacm_video_control_in: endpoint@0 {
229				reg = <0>;
230				remote-endpoint = <&cam_out>;
231				data-lanes = <1 2 3 4>;
232			};
233		};
234
235		port@1 {
236			reg = <1>;
237			#address-cells = <1>;
238			#size-cells = <0>;
239
240			usbacm_video_control_out: endpoint@1 {
241				reg = <1>;
242				remote-endpoint = <&mipi_in_ucam0>;
243				data-lanes = <1 2 3 4>;
244			};
245		};
246	};
247};
248