xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm64/rockchip/rk3326-evb-lp3-v10-avb.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
4 */
5
6/dts-v1/;
7#include "rk3326.dtsi"
8#include "px30-android.dtsi"
9#include "rk3326-evb-lp3-v10.dtsi"
10#include "rk3326-863-cif-sensor.dtsi"
11
12/ {
13	model = "Rockchip rk3326 evb board";
14	compatible = "rockchip,rk3326-evb-lp3-v10-avb", "rockchip,rk3326";
15};
16
17&i2c2 {
18	status = "okay";
19
20	clock-frequency = <100000>;
21
22	/* These are relatively safe rise/fall times; TODO: measure */
23	i2c-scl-falling-time-ns = <50>;
24	i2c-scl-rising-time-ns = <300>;
25
26	ov5695: ov5695@36 {
27		compatible = "ovti,ov5695";
28		reg = <0x36>;
29		clocks = <&cru SCLK_CIF_OUT>;
30		clock-names = "xvclk";
31		/*reset-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;*/
32		pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
33		//pinctrl-names = "default";
34		//pinctrl-0 = <&cif_clkout_m0>;
35		rockchip,camera-module-index = <0>;
36		rockchip,camera-module-facing = "back";
37		rockchip,camera-module-name = "TongJu";
38		rockchip,camera-module-lens-name = "CHT842-MD";
39		port {
40			ov5695_out: endpoint {
41				remote-endpoint = <&mipi_in>;
42				data-lanes = <1 2>;
43			};
44		};
45	};
46};
47
48&mipi_dphy_rx0 {
49	status = "okay";
50
51	ports {
52		#address-cells = <1>;
53		#size-cells = <0>;
54
55		port@0 {
56			reg = <0>;
57			#address-cells = <1>;
58			#size-cells = <0>;
59
60			mipi_in: endpoint@1 {
61				reg = <1>;
62				remote-endpoint = <&ov5695_out>;
63				data-lanes = <1 2>;
64			};
65		};
66
67		port@1 {
68			reg = <1>;
69			#address-cells = <1>;
70			#size-cells = <0>;
71
72			dphy_rx_out: endpoint@0 {
73				reg = <0>;
74				remote-endpoint = <&isp_mipi_in>;
75			};
76		};
77	};
78};
79
80&rkisp1 {
81	status = "okay";
82	pinctrl-names = "default";
83	pinctrl-0 = <&cif_clkout_m0 &dvp_d2d9_m0>;
84	port {
85		#address-cells = <1>;
86		#size-cells = <0>;
87
88		isp_mipi_in: endpoint@0 {
89			reg = <0>;
90			remote-endpoint = <&dphy_rx_out>;
91		};
92
93	};
94};
95