arch: arm64: boot: dts: T210 camera devnames
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-camera-e3333-a00.dtsi
1 /*
2  * Copyright (c) 2015-2016, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #include <dt-bindings/media/camera.h>
19 #include <dt-bindings/platform/t210/t210.h>
20
21 /* camera control gpio definitions */
22 / {
23         host1x {
24                 vi {
25                         num-channels = <6>;
26                         ports {
27                                 #address-cells = <1>;
28                                 #size-cells = <0>;
29                                 port@0 {
30                                         reg = <0>;
31                                         e3333_vi_in0: endpoint {
32                                                 csi-port = <0>;
33                                                 bus-width = <2>;
34                                                 remote-endpoint = <&e3333_ov5693_out0>;
35                                         };
36                                 };
37                                 port@1 {
38                                         reg = <1>;
39                                         e3333_vi_in1: endpoint {
40                                                 csi-port = <1>;
41                                                 bus-width = <2>;
42                                                 remote-endpoint = <&e3333_ov5693_out1>;
43                                         };
44                                 };
45                                 port@2 {
46                                         reg = <2>;
47                                         e3333_vi_in2: endpoint {
48                                                 csi-port = <2>;
49                                                 bus-width = <2>;
50                                                 remote-endpoint = <&e3333_ov5693_out2>;
51                                         };
52                                 };
53                                 port@3 {
54                                         reg = <3>;
55                                         e3333_vi_in3: endpoint {
56                                                 csi-port = <3>;
57                                                 bus-width = <2>;
58                                                 remote-endpoint = <&e3333_ov5693_out3>;
59                                         };
60                                 };
61                                 port@4 {
62                                         reg = <4>;
63                                         e3333_vi_in4: endpoint {
64                                                 csi-port = <4>;
65                                                 bus-width = <2>;
66                                                 remote-endpoint = <&e3333_ov5693_out4>;
67                                         };
68                                 };
69                                 port@5 {
70                                         reg = <5>;
71                                         e3333_vi_in5: endpoint {
72                                                 csi-port = <5>;
73                                                 bus-width = <2>;
74                                                 remote-endpoint = <&e3333_ov5693_out5>;
75                                         };
76                                 };
77                         };
78                 };
79
80                 i2c@546c0000 {
81                         status = "okay";
82                         #address-cells = <1>;
83                         #size-cells = <0>;
84
85                         tca9548@77 {
86                                 i2c@0 {
87                                         ov5693_a@36 {
88                                                 compatible = "nvidia,ov5693";
89                                                 reg = <0x36>;
90                                                 avdd-reg = "vana";
91                                                 iovdd-reg = "vif";
92                                                 physical_w = "3.674";
93                                                 physical_h = "2.738";
94                                                 /* Defines number of frames to be dropped by driver internally after applying */
95                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
96                                                 /* crop co-ordinates */
97                                                 post_crop_frame_drop = "0";
98
99                                                 mode0 { // OV5693_MODE_2592X1944
100                                                         mclk_khz = "24000";
101                                                         num_lanes = "2";
102                                                         tegra_sinterface = "serial_a";
103                                                         discontinuous_clk = "no";
104                                                         dpcm_enable = "false";
105                                                         cil_settletime = "0";
106                                                         active_w = "2592";
107                                                         active_h = "1944";
108                                                         pixel_t = "bayer_bggr";
109                                                         readout_orientation = "90";
110                                                         line_length = "2688";
111                                                         inherent_gain = "1";
112                                                         mclk_multiplier = "17.0";
113                                                         pix_clk_hz = "160000000";
114                                                         min_gain_val = "1.0";
115                                                         max_gain_val = "16";
116                                                         min_hdr_ratio = "1";
117                                                         max_hdr_ratio = "64";
118                                                         min_framerate = "1.816577";
119                                                         max_framerate = "30";
120                                                         min_exp_time = "34";
121                                                         max_exp_time = "550385";
122                                                 };
123                                                 mode1 { //OV5693_MODE_2592X1458
124                                                         mclk_khz = "24000";
125                                                         num_lanes = "2";
126                                                         tegra_sinterface = "serial_a";
127                                                         discontinuous_clk = "no";
128                                                         dpcm_enable = "false";
129                                                         cil_settletime = "0";
130                                                         active_w = "2592";
131                                                         active_h = "1458";
132                                                         pixel_t = "bayer_bggr";
133                                                         readout_orientation = "90";
134                                                         line_length = "2688";
135                                                         inherent_gain = "1";
136                                                         mclk_multiplier = "17.0";
137                                                         pix_clk_hz = "160000000";
138                                                         min_gain_val = "1.0";
139                                                         max_gain_val = "16";
140                                                         min_hdr_ratio = "1";
141                                                         max_hdr_ratio = "64";
142                                                         min_framerate = "1.816577";
143                                                         max_framerate = "30";
144                                                         min_exp_time = "34";
145                                                         max_exp_time = "550385";
146                                                 };
147                                                 mode2 { //OV5693_MODE_1280X720
148                                                         mclk_khz = "24000";
149                                                         num_lanes = "2";
150                                                         tegra_sinterface = "serial_a";
151                                                         discontinuous_clk = "no";
152                                                         dpcm_enable = "false";
153                                                         cil_settletime = "0";
154                                                         active_w = "1280";
155                                                         active_h = "720";
156                                                         pixel_t = "bayer_bggr";
157                                                         readout_orientation = "90";
158                                                         line_length = "1752";
159                                                         inherent_gain = "1";
160                                                         mclk_multiplier = "17.0";
161                                                         pix_clk_hz = "160000000";
162                                                         min_gain_val = "1.0";
163                                                         max_gain_val = "16";
164                                                         min_hdr_ratio = "1";
165                                                         max_hdr_ratio = "64";
166                                                         min_framerate = "2.787078";
167                                                         max_framerate = "120";
168                                                         min_exp_time = "22";
169                                                         max_exp_time = "358733";
170                                                 };
171                                                 // HDR Modes
172                                                 mode3 { //OV5693_MODE_2592X1944_HDR
173                                                         mclk_khz = "24000";
174                                                         num_lanes = "2";
175                                                         tegra_sinterface = "serial_a";
176                                                         discontinuous_clk = "no";
177                                                         dpcm_enable = "false";
178                                                         cil_settletime = "0";
179                                                         active_w = "2592";
180                                                         active_h = "1944";
181                                                         pixel_t = "hdr_bggr";
182                                                         readout_orientation = "90";
183                                                         line_length = "3696";
184                                                         inherent_gain = "1";
185                                                         mclk_multiplier = "19.0";
186                                                         pix_clk_hz = "176000000";
187                                                         min_gain_val = "1.0";
188                                                         max_gain_val = "16";
189                                                         min_hdr_ratio = "1";
190                                                         max_hdr_ratio = "64";
191                                                         min_framerate = "1.453262";
192                                                         max_framerate = "24";
193                                                         min_exp_time = "42";
194                                                         max_exp_time = "687981";
195                                                 };
196                                                 ports {
197                                                         #address-cells = <1>;
198                                                         #size-cells = <0>;
199                                                         port@0 {
200                                                                 reg = <0>;
201                                                                 e3333_ov5693_out0: endpoint {
202                                                                         csi-port = <0>;
203                                                                         bus-width = <2>;
204                                                                         remote-endpoint = <&e3333_vi_in0>;
205                                                                 };
206                                                         };
207                                                 };
208                                         };
209                                 };
210                                 i2c@1 {
211                                         ov5693_b@36 {
212                                                 compatible = "nvidia,ov5693";
213                                                 reg = <0x36>;
214                                                 avdd-reg = "vana";
215                                                 iovdd-reg = "vif";
216                                                 physical_w = "3.674";
217                                                 physical_h = "2.738";
218                                                 /* Defines number of frames to be dropped by driver internally after applying */
219                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
220                                                 /* crop co-ordinates */
221                                                 post_crop_frame_drop = "0";
222
223                                                 mode0 { // OV5693_MODE_2592X1944
224                                                         mclk_khz = "24000";
225                                                         num_lanes = "2";
226                                                         tegra_sinterface = "serial_b";
227                                                         discontinuous_clk = "no";
228                                                         dpcm_enable = "false";
229                                                         cil_settletime = "0";
230                                                         active_w = "2592";
231                                                         active_h = "1944";
232                                                         pixel_t = "bayer_bggr";
233                                                         readout_orientation = "90";
234                                                         line_length = "2688";
235                                                         inherent_gain = "1";
236                                                         mclk_multiplier = "17.0";
237                                                         pix_clk_hz = "160000000";
238                                                         min_gain_val = "1.0";
239                                                         max_gain_val = "16";
240                                                         min_hdr_ratio = "1";
241                                                         max_hdr_ratio = "64";
242                                                         min_framerate = "1.816577";
243                                                         max_framerate = "30";
244                                                         min_exp_time = "34";
245                                                         max_exp_time = "550385";
246                                                 };
247                                                 mode1 { //OV5693_MODE_2592X1458
248                                                         mclk_khz = "24000";
249                                                         num_lanes = "2";
250                                                         tegra_sinterface = "serial_b";
251                                                         discontinuous_clk = "no";
252                                                         dpcm_enable = "false";
253                                                         cil_settletime = "0";
254                                                         active_w = "2592";
255                                                         active_h = "1458";
256                                                         pixel_t = "bayer_bggr";
257                                                         readout_orientation = "90";
258                                                         line_length = "2688";
259                                                         inherent_gain = "1";
260                                                         mclk_multiplier = "17.0";
261                                                         pix_clk_hz = "160000000";
262                                                         min_gain_val = "1.0";
263                                                         max_gain_val = "16";
264                                                         min_hdr_ratio = "1";
265                                                         max_hdr_ratio = "64";
266                                                         min_framerate = "1.816577";
267                                                         max_framerate = "30";
268                                                         min_exp_time = "34";
269                                                         max_exp_time = "550385";
270                                                 };
271                                                 mode2 { //OV5693_MODE_1280X720
272                                                         mclk_khz = "24000";
273                                                         num_lanes = "2";
274                                                         tegra_sinterface = "serial_b";
275                                                         discontinuous_clk = "no";
276                                                         dpcm_enable = "false";
277                                                         cil_settletime = "0";
278                                                         active_w = "1280";
279                                                         active_h = "720";
280                                                         pixel_t = "bayer_bggr";
281                                                         readout_orientation = "90";
282                                                         line_length = "1752";
283                                                         inherent_gain = "1";
284                                                         mclk_multiplier = "17.0";
285                                                         pix_clk_hz = "160000000";
286                                                         min_gain_val = "1.0";
287                                                         max_gain_val = "16";
288                                                         min_hdr_ratio = "1";
289                                                         max_hdr_ratio = "64";
290                                                         min_framerate = "2.787078";
291                                                         max_framerate = "120";
292                                                         min_exp_time = "22";
293                                                         max_exp_time = "358733";
294                                                 };
295                                                 // HDR Modes
296                                                 mode3 { //OV5693_MODE_2592X1944_HDR
297                                                         mclk_khz = "24000";
298                                                         num_lanes = "2";
299                                                         tegra_sinterface = "serial_b";
300                                                         discontinuous_clk = "no";
301                                                         dpcm_enable = "false";
302                                                         cil_settletime = "0";
303                                                         active_w = "2592";
304                                                         active_h = "1944";
305                                                         pixel_t = "hdr_bggr";
306                                                         readout_orientation = "90";
307                                                         line_length = "3696";
308                                                         inherent_gain = "1";
309                                                         mclk_multiplier = "19.0";
310                                                         pix_clk_hz = "176000000";
311                                                         min_gain_val = "1.0";
312                                                         max_gain_val = "16";
313                                                         min_hdr_ratio = "1";
314                                                         max_hdr_ratio = "64";
315                                                         min_framerate = "1.453262";
316                                                         max_framerate = "24";
317                                                         min_exp_time = "42";
318                                                         max_exp_time = "687981";
319                                                 };
320                                                 ports {
321                                                         #address-cells = <1>;
322                                                         #size-cells = <0>;
323                                                         port@0 {
324                                                                 reg = <0>;
325                                                                 e3333_ov5693_out1: endpoint {
326                                                                         csi-port = <1>;
327                                                                         bus-width = <2>;
328                                                                         remote-endpoint = <&e3333_vi_in1>;
329                                                                 };
330                                                         };
331                                                 };
332                                         };
333                                 };
334                                 i2c@2 {
335                                         ov5693_c@36 {
336                                                 compatible = "nvidia,ov5693";
337                                                 reg = <0x36>;
338                                                 avdd-reg = "vana";
339                                                 iovdd-reg = "vif";
340                                                 physical_w = "3.674";
341                                                 physical_h = "2.738";
342                                                 /* Defines number of frames to be dropped by driver internally after applying */
343                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
344                                                 /* crop co-ordinates */
345                                                 post_crop_frame_drop = "0";
346
347                                                 mode0 { // OV5693_MODE_2592X1944
348                                                         mclk_khz = "24000";
349                                                         num_lanes = "2";
350                                                         tegra_sinterface = "serial_c";
351                                                         discontinuous_clk = "no";
352                                                         dpcm_enable = "false";
353                                                         cil_settletime = "0";
354                                                         active_w = "2592";
355                                                         active_h = "1944";
356                                                         pixel_t = "bayer_bggr";
357                                                         readout_orientation = "90";
358                                                         line_length = "2688";
359                                                         inherent_gain = "1";
360                                                         mclk_multiplier = "17.0";
361                                                         pix_clk_hz = "160000000";
362                                                         min_gain_val = "1.0";
363                                                         max_gain_val = "16";
364                                                         min_hdr_ratio = "1";
365                                                         max_hdr_ratio = "64";
366                                                         min_framerate = "1.816577";
367                                                         max_framerate = "30";
368                                                         min_exp_time = "34";
369                                                         max_exp_time = "550385";
370                                                 };
371                                                 mode1 { //OV5693_MODE_2592X1458
372                                                         mclk_khz = "24000";
373                                                         num_lanes = "2";
374                                                         tegra_sinterface = "serial_c";
375                                                         discontinuous_clk = "no";
376                                                         dpcm_enable = "false";
377                                                         cil_settletime = "0";
378                                                         active_w = "2592";
379                                                         active_h = "1458";
380                                                         pixel_t = "bayer_bggr";
381                                                         readout_orientation = "90";
382                                                         line_length = "2688";
383                                                         inherent_gain = "1";
384                                                         mclk_multiplier = "17.0";
385                                                         pix_clk_hz = "160000000";
386                                                         min_gain_val = "1.0";
387                                                         max_gain_val = "16";
388                                                         min_hdr_ratio = "1";
389                                                         max_hdr_ratio = "64";
390                                                         min_framerate = "1.816577";
391                                                         max_framerate = "30";
392                                                         min_exp_time = "34";
393                                                         max_exp_time = "550385";
394                                                 };
395                                                 mode2 { //OV5693_MODE_1280X720
396                                                         mclk_khz = "24000";
397                                                         num_lanes = "2";
398                                                         tegra_sinterface = "serial_c";
399                                                         discontinuous_clk = "no";
400                                                         dpcm_enable = "false";
401                                                         cil_settletime = "0";
402                                                         active_w = "1280";
403                                                         active_h = "720";
404                                                         pixel_t = "bayer_bggr";
405                                                         readout_orientation = "90";
406                                                         line_length = "1752";
407                                                         inherent_gain = "1";
408                                                         mclk_multiplier = "17.0";
409                                                         pix_clk_hz = "160000000";
410                                                         min_gain_val = "1.0";
411                                                         max_gain_val = "16";
412                                                         min_hdr_ratio = "1";
413                                                         max_hdr_ratio = "64";
414                                                         min_framerate = "2.787078";
415                                                         max_framerate = "120";
416                                                         min_exp_time = "22";
417                                                         max_exp_time = "358733";
418                                                 };
419                                                 // HDR Modes
420                                                 mode3 { //OV5693_MODE_2592X1944_HDR
421                                                         mclk_khz = "24000";
422                                                         num_lanes = "2";
423                                                         tegra_sinterface = "serial_c";
424                                                         discontinuous_clk = "no";
425                                                         dpcm_enable = "false";
426                                                         cil_settletime = "0";
427                                                         active_w = "2592";
428                                                         active_h = "1944";
429                                                         pixel_t = "hdr_bggr";
430                                                         readout_orientation = "90";
431                                                         line_length = "3696";
432                                                         inherent_gain = "1";
433                                                         mclk_multiplier = "19.0";
434                                                         pix_clk_hz = "176000000";
435                                                         min_gain_val = "1.0";
436                                                         max_gain_val = "16";
437                                                         min_hdr_ratio = "1";
438                                                         max_hdr_ratio = "64";
439                                                         min_framerate = "1.453262";
440                                                         max_framerate = "24";
441                                                         min_exp_time = "42";
442                                                         max_exp_time = "687981";
443                                                 };
444                                                 ports {
445                                                         #address-cells = <1>;
446                                                         #size-cells = <0>;
447                                                         port@0 {
448                                                                 reg = <0>;
449                                                                 e3333_ov5693_out2: endpoint {
450                                                                         csi-port = <2>;
451                                                                         bus-width = <2>;
452                                                                         remote-endpoint = <&e3333_vi_in2>;
453                                                                 };
454                                                         };
455                                                 };
456                                         };
457                                 };
458                                 i2c@3 {
459                                         ov5693_d@36 {
460                                                 compatible = "nvidia,ov5693";
461                                                 reg = <0x36>;
462                                                 avdd-reg = "vana";
463                                                 iovdd-reg = "vif";
464                                                 physical_w = "3.674";
465                                                 physical_h = "2.738";
466                                                 /* Defines number of frames to be dropped by driver internally after applying */
467                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
468                                                 /* crop co-ordinates */
469                                                 post_crop_frame_drop = "0";
470
471                                                 mode0 { // OV5693_MODE_2592X1944
472                                                         mclk_khz = "24000";
473                                                         num_lanes = "2";
474                                                         tegra_sinterface = "serial_d";
475                                                         discontinuous_clk = "no";
476                                                         dpcm_enable = "false";
477                                                         cil_settletime = "0";
478                                                         active_w = "2592";
479                                                         active_h = "1944";
480                                                         pixel_t = "bayer_bggr";
481                                                         readout_orientation = "90";
482                                                         line_length = "2688";
483                                                         inherent_gain = "1";
484                                                         mclk_multiplier = "17.0";
485                                                         pix_clk_hz = "160000000";
486                                                         min_gain_val = "1.0";
487                                                         max_gain_val = "16";
488                                                         min_hdr_ratio = "1";
489                                                         max_hdr_ratio = "64";
490                                                         min_framerate = "1.816577";
491                                                         max_framerate = "30";
492                                                         min_exp_time = "34";
493                                                         max_exp_time = "550385";
494                                                 };
495                                                 mode1 { //OV5693_MODE_2592X1458
496                                                         mclk_khz = "24000";
497                                                         num_lanes = "2";
498                                                         tegra_sinterface = "serial_d";
499                                                         discontinuous_clk = "no";
500                                                         dpcm_enable = "false";
501                                                         cil_settletime = "0";
502                                                         active_w = "2592";
503                                                         active_h = "1458";
504                                                         pixel_t = "bayer_bggr";
505                                                         readout_orientation = "90";
506                                                         line_length = "2688";
507                                                         inherent_gain = "1";
508                                                         mclk_multiplier = "17.0";
509                                                         pix_clk_hz = "160000000";
510                                                         min_gain_val = "1.0";
511                                                         max_gain_val = "16";
512                                                         min_hdr_ratio = "1";
513                                                         max_hdr_ratio = "64";
514                                                         min_framerate = "1.816577";
515                                                         max_framerate = "30";
516                                                         min_exp_time = "34";
517                                                         max_exp_time = "550385";
518                                                 };
519                                                 mode2 { //OV5693_MODE_1280X720
520                                                         mclk_khz = "24000";
521                                                         num_lanes = "2";
522                                                         tegra_sinterface = "serial_d";
523                                                         discontinuous_clk = "no";
524                                                         dpcm_enable = "false";
525                                                         cil_settletime = "0";
526                                                         active_w = "1280";
527                                                         active_h = "720";
528                                                         pixel_t = "bayer_bggr";
529                                                         readout_orientation = "90";
530                                                         line_length = "1752";
531                                                         inherent_gain = "1";
532                                                         mclk_multiplier = "17.0";
533                                                         pix_clk_hz = "160000000";
534                                                         min_gain_val = "1.0";
535                                                         max_gain_val = "16";
536                                                         min_hdr_ratio = "1";
537                                                         max_hdr_ratio = "64";
538                                                         min_framerate = "2.787078";
539                                                         max_framerate = "120";
540                                                         min_exp_time = "22";
541                                                         max_exp_time = "358733";
542                                                 };
543                                                 // HDR Modes
544                                                 mode3 { //OV5693_MODE_2592X1944_HDR
545                                                         mclk_khz = "24000";
546                                                         num_lanes = "2";
547                                                         tegra_sinterface = "serial_d";
548                                                         discontinuous_clk = "no";
549                                                         dpcm_enable = "false";
550                                                         cil_settletime = "0";
551                                                         active_w = "2592";
552                                                         active_h = "1944";
553                                                         pixel_t = "hdr_bggr";
554                                                         readout_orientation = "90";
555                                                         line_length = "3696";
556                                                         inherent_gain = "1";
557                                                         mclk_multiplier = "19.0";
558                                                         pix_clk_hz = "176000000";
559                                                         min_gain_val = "1.0";
560                                                         max_gain_val = "16";
561                                                         min_hdr_ratio = "1";
562                                                         max_hdr_ratio = "64";
563                                                         min_framerate = "1.453262";
564                                                         max_framerate = "24";
565                                                         min_exp_time = "42";
566                                                         max_exp_time = "687981";
567                                                 };
568                                                 ports {
569                                                         #address-cells = <1>;
570                                                         #size-cells = <0>;
571                                                         port@0 {
572                                                                 reg = <0>;
573                                                                 e3333_ov5693_out3: endpoint {
574                                                                         csi-port = <3>;
575                                                                         bus-width = <2>;
576                                                                         remote-endpoint = <&e3333_vi_in3>;
577                                                                 };
578                                                         };
579                                                 };
580                                         };
581                                 };
582                                 i2c@4 {
583                                         ov5693_e@36 {
584                                                 compatible = "nvidia,ov5693";
585                                                 reg = <0x36>;
586                                                 avdd-reg = "vana";
587                                                 iovdd-reg = "vif";
588                                                 physical_w = "3.674";
589                                                 physical_h = "2.738";
590                                                 /* Defines number of frames to be dropped by driver internally after applying */
591                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
592                                                 /* crop co-ordinates */
593                                                 post_crop_frame_drop = "0";
594
595                                                 mode0 { // OV5693_MODE_2592X1944
596                                                         mclk_khz = "24000";
597                                                         num_lanes = "2";
598                                                         tegra_sinterface = "serial_e";
599                                                         discontinuous_clk = "no";
600                                                         dpcm_enable = "false";
601                                                         cil_settletime = "0";
602                                                         active_w = "2592";
603                                                         active_h = "1944";
604                                                         pixel_t = "bayer_bggr";
605                                                         readout_orientation = "90";
606                                                         line_length = "2688";
607                                                         inherent_gain = "1";
608                                                         mclk_multiplier = "17.0";
609                                                         pix_clk_hz = "160000000";
610                                                         min_gain_val = "1.0";
611                                                         max_gain_val = "16";
612                                                         min_hdr_ratio = "1";
613                                                         max_hdr_ratio = "64";
614                                                         min_framerate = "1.816577";
615                                                         max_framerate = "30";
616                                                         min_exp_time = "34";
617                                                         max_exp_time = "550385";
618                                                 };
619                                                 mode1 { //OV5693_MODE_2592X1458
620                                                         mclk_khz = "24000";
621                                                         num_lanes = "2";
622                                                         tegra_sinterface = "serial_e";
623                                                         discontinuous_clk = "no";
624                                                         dpcm_enable = "false";
625                                                         cil_settletime = "0";
626                                                         active_w = "2592";
627                                                         active_h = "1458";
628                                                         pixel_t = "bayer_bggr";
629                                                         readout_orientation = "90";
630                                                         line_length = "2688";
631                                                         inherent_gain = "1";
632                                                         mclk_multiplier = "17.0";
633                                                         pix_clk_hz = "160000000";
634                                                         min_gain_val = "1.0";
635                                                         max_gain_val = "16";
636                                                         min_hdr_ratio = "1";
637                                                         max_hdr_ratio = "64";
638                                                         min_framerate = "1.816577";
639                                                         max_framerate = "30";
640                                                         min_exp_time = "34";
641                                                         max_exp_time = "550385";
642                                                 };
643                                                 mode2 { //OV5693_MODE_1280X720
644                                                         mclk_khz = "24000";
645                                                         num_lanes = "2";
646                                                         tegra_sinterface = "serial_e";
647                                                         discontinuous_clk = "no";
648                                                         dpcm_enable = "false";
649                                                         cil_settletime = "0";
650                                                         active_w = "1280";
651                                                         active_h = "720";
652                                                         pixel_t = "bayer_bggr";
653                                                         readout_orientation = "90";
654                                                         line_length = "1752";
655                                                         inherent_gain = "1";
656                                                         mclk_multiplier = "17.0";
657                                                         pix_clk_hz = "160000000";
658                                                         min_gain_val = "1.0";
659                                                         max_gain_val = "16";
660                                                         min_hdr_ratio = "1";
661                                                         max_hdr_ratio = "64";
662                                                         min_framerate = "2.787078";
663                                                         max_framerate = "120";
664                                                         min_exp_time = "22";
665                                                         max_exp_time = "358733";
666                                                 };
667                                                 // HDR Modes
668                                                 mode3 { //OV5693_MODE_2592X1944_HDR
669                                                         mclk_khz = "24000";
670                                                         num_lanes = "2";
671                                                         tegra_sinterface = "serial_e";
672                                                         discontinuous_clk = "no";
673                                                         dpcm_enable = "false";
674                                                         cil_settletime = "0";
675                                                         active_w = "2592";
676                                                         active_h = "1944";
677                                                         pixel_t = "hdr_bggr";
678                                                         readout_orientation = "90";
679                                                         line_length = "3696";
680                                                         inherent_gain = "1";
681                                                         mclk_multiplier = "19.0";
682                                                         pix_clk_hz = "176000000";
683                                                         min_gain_val = "1.0";
684                                                         max_gain_val = "16";
685                                                         min_hdr_ratio = "1";
686                                                         max_hdr_ratio = "64";
687                                                         min_framerate = "1.453262";
688                                                         max_framerate = "24";
689                                                         min_exp_time = "42";
690                                                         max_exp_time = "687981";
691                                                 };
692                                                 ports {
693                                                         #address-cells = <1>;
694                                                         #size-cells = <0>;
695                                                         port@0 {
696                                                                 reg = <0>;
697                                                                 e3333_ov5693_out4: endpoint {
698                                                                         csi-port = <4>;
699                                                                         bus-width = <2>;
700                                                                         remote-endpoint = <&e3333_vi_in4>;
701                                                                 };
702                                                         };
703                                                 };
704                                         };
705                                 };
706                                 i2c@5 {
707                                         ov5693_f@36 {
708                                                 compatible = "nvidia,ov5693";
709                                                 reg = <0x36>;
710                                                 avdd-reg = "vana";
711                                                 iovdd-reg = "vif";
712                                                 physical_w = "3.674";
713                                                 physical_h = "2.738";
714                                                 /* Defines number of frames to be dropped by driver internally after applying */
715                                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
716                                                 /* crop co-ordinates */
717                                                 post_crop_frame_drop = "0";
718
719                                                 mode0 { // OV5693_MODE_2592X1944
720                                                         mclk_khz = "24000";
721                                                         num_lanes = "2";
722                                                         tegra_sinterface = "serial_f";
723                                                         discontinuous_clk = "no";
724                                                         dpcm_enable = "false";
725                                                         cil_settletime = "0";
726                                                         active_w = "2592";
727                                                         active_h = "1944";
728                                                         pixel_t = "bayer_bggr";
729                                                         readout_orientation = "90";
730                                                         line_length = "2688";
731                                                         inherent_gain = "1";
732                                                         mclk_multiplier = "17.0";
733                                                         pix_clk_hz = "160000000";
734                                                         min_gain_val = "1.0";
735                                                         max_gain_val = "16";
736                                                         min_hdr_ratio = "1";
737                                                         max_hdr_ratio = "64";
738                                                         min_framerate = "1.816577";
739                                                         max_framerate = "30";
740                                                         min_exp_time = "34";
741                                                         max_exp_time = "550385";
742                                                 };
743                                                 mode1 { //OV5693_MODE_2592X1458
744                                                         mclk_khz = "24000";
745                                                         num_lanes = "2";
746                                                         tegra_sinterface = "serial_f";
747                                                         discontinuous_clk = "no";
748                                                         dpcm_enable = "false";
749                                                         cil_settletime = "0";
750                                                         active_w = "2592";
751                                                         active_h = "1458";
752                                                         pixel_t = "bayer_bggr";
753                                                         readout_orientation = "90";
754                                                         line_length = "2688";
755                                                         inherent_gain = "1";
756                                                         mclk_multiplier = "17.0";
757                                                         pix_clk_hz = "160000000";
758                                                         min_gain_val = "1.0";
759                                                         max_gain_val = "16";
760                                                         min_hdr_ratio = "1";
761                                                         max_hdr_ratio = "64";
762                                                         min_framerate = "1.816577";
763                                                         max_framerate = "30";
764                                                         min_exp_time = "34";
765                                                         max_exp_time = "550385";
766                                                 };
767                                                 mode2 { //OV5693_MODE_1280X720
768                                                         mclk_khz = "24000";
769                                                         num_lanes = "2";
770                                                         tegra_sinterface = "serial_f";
771                                                         discontinuous_clk = "no";
772                                                         dpcm_enable = "false";
773                                                         cil_settletime = "0";
774                                                         active_w = "1280";
775                                                         active_h = "720";
776                                                         pixel_t = "bayer_bggr";
777                                                         readout_orientation = "90";
778                                                         line_length = "1752";
779                                                         inherent_gain = "1";
780                                                         mclk_multiplier = "17.0";
781                                                         pix_clk_hz = "160000000";
782                                                         min_gain_val = "1.0";
783                                                         max_gain_val = "16";
784                                                         min_hdr_ratio = "1";
785                                                         max_hdr_ratio = "64";
786                                                         min_framerate = "2.787078";
787                                                         max_framerate = "120";
788                                                         min_exp_time = "22";
789                                                         max_exp_time = "358733";
790                                                 };
791                                                 // HDR Modes
792                                                 mode3 { //OV5693_MODE_2592X1944_HDR
793                                                         mclk_khz = "24000";
794                                                         num_lanes = "2";
795                                                         tegra_sinterface = "serial_f";
796                                                         discontinuous_clk = "no";
797                                                         dpcm_enable = "false";
798                                                         cil_settletime = "0";
799                                                         active_w = "2592";
800                                                         active_h = "1944";
801                                                         pixel_t = "hdr_bggr";
802                                                         readout_orientation = "90";
803                                                         line_length = "3696";
804                                                         inherent_gain = "1";
805                                                         mclk_multiplier = "19.0";
806                                                         pix_clk_hz = "176000000";
807                                                         min_gain_val = "1.0";
808                                                         max_gain_val = "16";
809                                                         min_hdr_ratio = "1";
810                                                         max_hdr_ratio = "64";
811                                                         min_framerate = "1.453262";
812                                                         max_framerate = "24";
813                                                         min_exp_time = "42";
814                                                         max_exp_time = "687981";
815                                                 };
816                                                 ports {
817                                                         #address-cells = <1>;
818                                                         #size-cells = <0>;
819                                                         port@0 {
820                                                                 reg = <0>;
821                                                                 e3333_ov5693_out5: endpoint {
822                                                                         csi-port = <5>;
823                                                                         bus-width = <2>;
824                                                                         remote-endpoint = <&e3333_vi_in5>;
825                                                                 };
826                                                         };
827                                                 };
828                                         };
829                                 };
830                         };
831                 };
832         };
833 };
834
835 /* camera control gpio definitions */
836 / {
837
838         tegra-camera-platform {
839                 compatible = "nvidia, tegra-camera-platform";
840
841                 /**
842                  * The general guideline for naming badge_info contains 3 parts, and is as follows,
843                  * The first part is the camera_board_id for the module; if the module is in a FFD
844                  * platform, then use the platform name for this part.
845                  * The second part contains the position of the module, ex. “rear” or “front”.
846                  * The third part contains the last 6 characters of a part number which is found
847                  * in the module's specsheet from the vender.
848                  */
849                 modules {
850                         module0 {
851                                 badge = "e3333_bottomleft_P5V27C";
852                                 position = "bottomleft";
853                                 orientation = "1";
854                                 drivernode0 {
855                                         pcl_id = "v4l2_sensor";
856                                         devname = "ov5693 30-0036";
857                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@0/ov5693_a@36";
858                                 };
859                         };
860                         module1 {
861                                 badge = "e3333_centerleft_P5V27C";
862                                 position = "centerleft";
863                                 orientation = "1";
864                                 drivernode0 {
865                                         pcl_id = "v4l2_sensor";
866                                         devname = "ov5693 31-0036";
867                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@1/ov5693_b@36";
868                                 };
869                         };
870                         module2 {
871                                 badge = "e3333_centerright_P5V27C";
872                                 position = "centerright";
873                                 orientation = "1";
874                                 drivernode0 {
875                                         pcl_id = "v4l2_sensor";
876                                         devname = "ov5693 32-0036";
877                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@2/ov5693_c@36";
878                                 };
879                         };
880                         module3 {
881                                 badge = "e3333_topleft_P5V27C";
882                                 position = "topleft";
883                                 orientation = "1";
884                                 drivernode0 {
885                                         pcl_id = "v4l2_sensor";
886                                         devname = "ov5693 33-0036";
887                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@3/ov5693_d@36";
888                                 };
889                         };
890                         module4 {
891                                 badge = "e3333_bottomright_P5V27C";
892                                 position = "bottomright";
893                                 orientation = "1";
894                                 drivernode0 {
895                                         pcl_id = "v4l2_sensor";
896                                         devname = "ov5693 34-0036";
897                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@4/ov5693_e@36";
898                                 };
899                         };
900                         module5 {
901                                 badge = "e3333_topright_P5V27C";
902                                 position = "topright";
903                                 orientation = "1";
904                                 drivernode0 {
905                                         pcl_id = "v4l2_sensor";
906                                         devname = "ov5693 35-0036";
907                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@5/ov5693_f@36";
908                                 };
909                         };
910                 };
911         };
912 };