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