xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3368-808-evb.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/dts-v1/;
7#include "rk3368-808.dtsi"
8
9/ {
10	model = "Rockchip rk3368 808 evb board";
11	compatible = "rockchip,rk3368-808-evb", "rockchip,rk3368";
12};
13
14&chosen {
15	bootargs = "earlycon=uart8250,mmio32,0xff690000 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 androidboot.selinux=permissive init=/init kpti=0";
16};
17
18&fiq_debugger {
19	status = "okay";
20};
21
22&cif {
23	status = "disabled";
24};
25
26&cif_clkout {
27	/* cif_clkout */
28	rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none_4ma>;
29};
30
31&dmc {
32	vop-dclk-mode = <1>;
33	status = "okay";
34};
35
36&isp_dvp_d2d9 {
37	rockchip,pins =
38			/* cif_data4 ... cif_data9 */
39			<1 RK_PA2 1 &pcfg_pull_down>,
40			<1 RK_PA3 1 &pcfg_pull_down>,
41			<1 RK_PA4 1 &pcfg_pull_down>,
42			<1 RK_PA5 1 &pcfg_pull_down>,
43			<1 RK_PA6 1 &pcfg_pull_down>,
44			<1 RK_PA7 1 &pcfg_pull_down>,
45			/* cif_sync, cif_href */
46			<1 RK_PB0 1 &pcfg_pull_down>,
47			<1 RK_PB1 1 &pcfg_pull_down>,
48			/* cif_clkin */
49			<1 RK_PB2 1 &pcfg_pull_down>;
50};
51
52&isp_dvp_d10d11 {
53	rockchip,pins =
54			/* cif_data10, cif_data11 */
55			<1 RK_PB6 1 &pcfg_pull_down>,
56			<1 RK_PB7 1 &pcfg_pull_down>;
57};
58
59&i2c3 {
60	status = "okay";
61
62	gc2145: gc2145@3c {
63		compatible = "galaxycore,gc2145";
64		reg = <0x3c>;
65		clocks = <&cru SCLK_VIP_OUT>;
66		clock-names = "xvclk";
67
68		pinctrl-names = "default";
69		pinctrl-0 = <&isp_dvp_d2d9 &isp_dvp_d10d11 &cif_clkout>;
70		power-gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
71		pwdn-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
72		rockchip,camera-module-index = <1>;
73		rockchip,camera-module-facing = "front";
74		rockchip,camera-module-name = "CameraKing";
75		rockchip,camera-module-lens-name = "Largan";
76		port {
77			gc2145_out: endpoint {
78				remote-endpoint = <&isp_dvp_in>;
79			};
80		};
81	};
82
83	ov5695: ov5695@36 {
84		compatible = "ovti,ov5695";
85		reg = <0x36>;
86		clocks = <&cru SCLK_VIP_OUT>;
87		clock-names = "xvclk";
88		pwdn-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
89		pinctrl-names = "default";
90		pinctrl-0 = <&cif_clkout>;
91		rockchip,camera-module-index = <0>;
92		rockchip,camera-module-facing = "back";
93		rockchip,camera-module-name = "TongJu";
94		rockchip,camera-module-lens-name = "CHT842-MD";
95		port {
96			ov5695_out: endpoint {
97				remote-endpoint = <&mipi_in>;
98				data-lanes = <1 2>;
99			};
100		};
101	};
102
103};
104
105&isp {
106	status = "disabled";
107};
108
109&isp_mmu {
110	status = "okay";
111};
112
113&mipi_dphy_rx0 {
114	status = "okay";
115
116	ports {
117		#address-cells = <1>;
118		#size-cells = <0>;
119
120		port@0 {
121			reg = <0>;
122			#address-cells = <1>;
123			#size-cells = <0>;
124
125			mipi_in: endpoint@1 {
126				reg = <1>;
127				remote-endpoint = <&ov5695_out>;
128				data-lanes = <1 2>;
129			};
130		};
131
132		port@1 {
133			reg = <1>;
134			#address-cells = <1>;
135			#size-cells = <0>;
136
137			dphy_rx_out: endpoint@0 {
138				reg = <0>;
139				remote-endpoint = <&isp_mipi_in>;
140			};
141		};
142	};
143};
144
145&pinctrl {
146	pcfg_pull_none_4ma: pcfg-pull-none-4ma {
147		bias-disable;
148		drive-strength = <4>;
149	};
150};
151
152&rkisp1 {
153	status = "okay";
154	port {
155		#address-cells = <1>;
156		#size-cells = <0>;
157
158		isp_dvp_in: endpoint@1 {
159			reg = <1>;
160			remote-endpoint = <&gc2145_out>;
161		};
162
163		isp_mipi_in: endpoint@0 {
164			reg = <0>;
165			remote-endpoint = <&dphy_rx_out>;
166		};
167
168	};
169};
170
171/*
172 * In sleep mode, should be close vcca_33 and vcc_lan,
173 * but due to small defects in hardware settings and
174 * the system sleeps and wakes up, 4g module can not disconnect the network,
175 * so system sleep mode cannot be turned off vcca_33 and vcc_lan.
176 * This configuration will result in increased power consumption,
177 * please configure according to the actual needs of the project.
178 */
179&vcca_33 {
180	regulator-state-mem {
181		regulator-on-in-suspend;
182	};
183};
184
185&vcc_lan {
186	regulator-state-mem {
187		regulator-on-in-suspend;
188	};
189};
190