hc
2023-08-08 f92d6635abca482ea1018fed138d654cb14b2138
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
 */
 
/dts-v1/;
#include "rk3399-tve1030g.dtsi"
 
/ {
   compatible = "rockchip,rk3399-tve1030g-avb", "rockchip,rk3399";
};
 
&i2c1 {
   status = "okay";
 
   vm149c: vm149c@0c {
       compatible = "silicon touch,vm149c";
       status = "okay";
       reg = <0x0c>;
       rockchip,camera-module-index = <0>;
       rockchip,camera-module-facing = "back";
   };
 
   ov13850: ov13850@10 {
       compatible = "ovti,ov13850";
       status = "disabled";
       reg = <0x10>;
       clocks = <&cru SCLK_CIF_OUT>;
       clock-names = "xvclk";
       /* avdd-supply = <>; */
       /* dvdd-supply = <>; */
       /* dovdd-supply = <>; */
       /* reset-gpios = <>; */
       reset-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
       pwdn-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
       pinctrl-names = "rockchip,camera_default";
       pinctrl-0 = <&cif_clkout>;
       rockchip,camera-module-index = <0>;
       rockchip,camera-module-facing = "back";
       rockchip,camera-module-name = "CMK-CT0116";
       rockchip,camera-module-lens-name = "Largan-50013A1";
       lens-focus = <&vm149c>;
       port {
           ucam_out0: endpoint {
               remote-endpoint = <&mipi_in_ucam0>;
               //remote-endpoint = <&mipi_in_ucam1>;
               data-lanes = <1 2>;
           };
       };
   };
 
   gc2355: gc2355@3c {
       status = "okay";
       compatible = "galaxycore,gc2355";
       reg = <0x3c>;
       clocks = <&cru SCLK_CIF_OUT>;
       clock-names = "xvclk";
       /* avdd-supply = <>; */
       /* dvdd-supply = <>; */
       /* dovdd-supply = <>; */
       /* reset-gpios = <>; */
       pwdn-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
       pinctrl-names = "rockchip,camera_default";
       pinctrl-0 = <&cif_clkout>;
       rockchip,camera-module-index = <1>;
       rockchip,camera-module-facing = "front";
       rockchip,camera-module-name = "CMK-CW2392";
       rockchip,camera-module-lens-name = "M206A-201";
       port {
           ucam_out1: endpoint {
               //remote-endpoint = <&mipi_in_ucam0>;
               remote-endpoint = <&mipi_in_ucam1>;
               data-lanes = <1>;
           };
       };
   };
};
 
&mipi_dphy_rx0 {
   status = "disabled";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           mipi_in_ucam0: endpoint@1 {
               reg = <1>;
               remote-endpoint = <&ucam_out0>;
               data-lanes = <1 2>;
           };
       };
 
       port@1 {
           reg = <1>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           dphy_rx0_out: endpoint@0 {
               reg = <0>;
               remote-endpoint = <&isp0_mipi_in>;
           };
       };
   };
};
 
&mipi_dphy_tx1rx1 {
   status = "okay";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           mipi_in_ucam1: endpoint@1 {
               reg = <1>;
               remote-endpoint = <&ucam_out1>;
               data-lanes = <1>;
           };
       };
 
       port@1 {
           reg = <1>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           dphy_tx1rx1_out: endpoint@0 {
               reg = <0>;
               remote-endpoint = <&isp1_mipi_in>;
           };
       };
   };
};
 
&rkisp1_0 {
   status = "disabled";
 
   port {
       #address-cells = <1>;
       #size-cells = <0>;
 
       isp0_mipi_in: endpoint@0 {
           reg = <0>;
           remote-endpoint = <&dphy_rx0_out>;
       };
   };
};
 
&rkisp1_1 {
   status = "okay";
 
   port {
       #address-cells = <1>;
       #size-cells = <0>;
 
       isp1_mipi_in: endpoint@0 {
           reg = <0>;
           remote-endpoint = <&dphy_tx1rx1_out>;
       };
   };
};