arch: arm64: boot: dts: T210 camera devnames
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-ers-camera-e2249-1002-a00.dtsi
1 /*
2  * Copyright (c) 2014-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 #define VI_I2C_BUS      6
22
23 / {
24         host1x {
25                 vi {
26                         num-channels = <2>;
27                         ports {
28                                 #address-cells = <1>;
29                                 #size-cells = <0>;
30                                 port@0 {
31                                         reg = <0>;
32                                         vi_in0: endpoint {
33                                                 remote-endpoint = <&imx214_out0>;
34                                         };
35                                 };
36                                 port@1 {
37                                         reg = <1>;
38                                         vi_in1: endpoint {
39                                                 remote-endpoint = <&ov5693_out0>;
40                                         };
41                                 };
42                         };
43                 };
44
45                 i2c@546c0000 {
46                         status = "okay";
47                         #address-cells = <1>;
48                         #size-cells = <0>;
49                         imx214@1a {
50                                 compatible = "nvidia,imx214";
51                                 reg = <0x1a>;
52
53                                 clocks = <&tegra_car TEGRA210_CLK_ID_CLK_OUT_3>;
54                                 clock-names = "mclk";
55                                 clock-frequency = <24000000>;
56
57                                 /* Physical dimensions of sensor */
58                                 physical_w = "4.713";
59                                 physical_h = "3.494";
60
61                                 /* Sensor Model */
62                                 sensor_model ="imx214";
63                                 has-eeprom = <1>;
64
65                                 /* Defines number of frames to be dropped by driver internally after applying */
66                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
67                                 /* crop co-ordinates */
68                                 post_crop_frame_drop = "1";
69
70                                 /**
71                                 * Define any required hw resources needed by
72                                 * driver
73                                 */
74                                 /* ie. clocks, io pins, power sources */
75                                 mclk = "cam_mclk1";
76                                 reset-gpios = <&gpio TEGRA_GPIO(S, 7) 0>;
77                                 af-gpios = <&gpio TEGRA_GPIO(S, 5) 0>;
78                                 pwdn-gpios = <&gpio TEGRA_GPIO(S, 7) 0>;
79                                 vana-supply = <&max77620_ldo3>;
80                                 vdig-supply = <&vdd_sys_boost>;
81                                 vif-supply = <&en_vdd_cam>;
82                                 avdd-reg = "vana";
83                                 dvdd-reg = "vdig";
84                                 iovdd-reg = "vif";
85
86                                 /* Defaults */
87                                 default-clk = <24000000>;
88                                 default-gain = <256>;
89                                 default-fl = <3194>;
90                                 default-ct = <3184>;
91                                 default-width = <4096>;
92                                 default-height = <3072>;
93
94                                 /* EEPROM */
95                                 eeprom-addr = <0x50>;
96                                 eeprom-size = <1024>;
97                                 eeprom-blk-size = <256>;
98
99                                 /**
100                                 * A modeX node is required to support v4l2
101                                 * driver implementation with NVIDIA camera
102                                 * software stack
103                                 *
104                                 * mclk_khz = "";
105                                 * Standard MIPI driving clock, typically 24MHz
106                                 *
107                                 * num_lanes = "";
108                                 * Number of lane channels sensor is programmed
109                                 * to output
110                                 *
111                                 * tegra_sinterface = "";
112                                 * The base tegra serial interface lanes are
113                                 * connected to
114                                 *
115                                 * discontinuous_clk = "";
116                                 * The sensor is programmed to use a
117                                 * discontinuous clock on MIPI lanes
118                                 *
119                                 * cil_settletime = "";
120                                 * MIPI lane settle time value.
121                                 * A "0" value attempts to autocalibrate based
122                                 * on mclk_multiplier
123                                 *
124                                 *
125                                 *
126                                 *
127                                 * active_w = "";
128                                 * Pixel active region width
129                                 *
130                                 * active_h = "";
131                                 * Pixel active region height
132                                 *
133                                 * pixel_t = "";
134                                 * The sensor readout pixel pattern
135                                 * For eg - 10 bit bayer having 'bggr' pixel pattern has value "bayer_bggr"
136                                 *          12 bit bayer having 'bggr' pixel pattern has value "bayer_bggr12"
137                                 *          14 bit bayer having 'bggr' pixel pattern has value "bayer_bggr14"
138                                 *
139                                 * readout_orientation = "0";
140                                 * Based on camera module orientation.
141                                 * Only change readout_orientation if you
142                                 * specifically program a different readout
143                                 * order for this mode
144                                 *
145                                 * line_length = "";
146                                 * Pixel line length (width) for sensor mode.
147                                 * This is used to calibrate features in our
148                                 * camera stack.
149                                 *
150                                 * mclk_multiplier = "";
151                                 * Multiplier to MCLK to help time hardware
152                                 * capture sequence
153                                 * TODO: Assign to PLL_Multiplier as well until
154                                 * fixed in core
155                                 *
156                                 * pix_clk_hz = "";
157                                 * Sensor pixel clock used for calculations
158                                 * like exposure and framerate
159                                 *
160                                 *
161                                 *
162                                 *
163                                 * inherent_gain = "";
164                                 * Gain obtained inherently from mode
165                                 * (ie. pixel binning)
166                                 *
167                                 * min_gain_val = ""; (floor to 6 decimal places)
168                                 * max_gain_val = ""; (floor to 6 decimal places)
169                                 * Gain limits for mode
170                                 *
171                                 * min_exp_time = ""; (ceil to integer)
172                                 * max_exp_time = ""; (ceil to integer)
173                                 * Exposure Time limits for mode (us)
174                                 *
175                                 * min_hdr_ratio = "";
176                                 * max_hdr_ratio = "";
177                                 * HDR Ratio limits for mode
178                                 *
179                                 * min_framerate = "";
180                                 * max_framerate = "";
181                                 * Framerate limits for mode (fps)
182                                 *
183                                 * embedded_metadata_height = "";
184                                 * Sensor embedded metadata height in units of rows.
185                                 * If sensor does not support embedded metadata value should be 0.
186                                 */
187
188                                 mode0 { // IMX214_MODE_4096X3072
189                                         mclk_khz = "24000";
190                                         num_lanes = "4";
191                                         tegra_sinterface = "serial_a";
192                                         discontinuous_clk = "yes";
193                                         cil_settletime = "0";
194
195                                         active_w = "4096";
196                                         active_h = "3072";
197                                         pixel_t = "bayer_rggb";
198                                         readout_orientation = "0";
199                                         line_length = "5008";
200                                         inherent_gain = "1";
201                                         mclk_multiplier = "25";
202                                         pix_clk_hz = "480000000";
203
204                                         min_gain_val = "1.0";
205                                         max_gain_val = "16.0";
206                                         min_hdr_ratio = "1";
207                                         max_hdr_ratio = "64";
208                                         min_framerate = "1.462526";
209                                         max_framerate = "30";
210                                         min_exp_time = "11";
211                                         max_exp_time = "683645";
212                                         embedded_metadata_height = "4";
213                                 };
214
215                                 mode1 { // IMX214_MODE_4096X2304
216                                         mclk_khz = "24000";
217                                         num_lanes = "4";
218                                         tegra_sinterface = "serial_a";
219                                         discontinuous_clk = "yes";
220                                         cil_settletime = "0";
221
222                                         active_w = "4096";
223                                         active_h = "2304";
224                                         pixel_t = "bayer_rggb";
225                                         readout_orientation = "0";
226                                         line_length = "5008";
227                                         inherent_gain = "1";
228                                         mclk_multiplier = "25";
229                                         pix_clk_hz = "480000000";
230
231                                         min_gain_val = "1.0";
232                                         max_gain_val = "16.0";
233                                         min_hdr_ratio = "1";
234                                         max_hdr_ratio = "64";
235                                         min_framerate = "1.462526";
236                                         max_framerate = "30";
237                                         min_exp_time = "11";
238                                         max_exp_time = "683645";
239                                         embedded_metadata_height = "4";
240                                 };
241
242                                 mode2 { //IMX214_MODE_3840X2160
243                                         mclk_khz = "24000";
244                                         num_lanes = "4";
245                                         tegra_sinterface = "serial_a";
246                                         discontinuous_clk = "yes";
247                                         cil_settletime = "0";
248
249                                         active_w = "3840";
250                                         active_h = "2160";
251                                         pixel_t = "bayer_rggb";
252                                         readout_orientation = "0";
253                                         line_length = "5008";
254                                         inherent_gain = "1";
255                                         mclk_multiplier = "25";
256                                         pix_clk_hz = "480000000";
257
258                                         min_gain_val = "1.0";
259                                         max_gain_val = "16.0";
260                                         min_hdr_ratio = "1";
261                                         max_hdr_ratio = "64";
262                                         min_framerate = "1.462526";
263                                         max_framerate = "30";
264                                         min_exp_time = "11";
265                                         max_exp_time = "683645";
266                                         embedded_metadata_height = "4";
267                                 };
268
269                                 mode3 { // IMX214_MODE_2048X1536
270                                         mclk_khz = "24000";
271                                         num_lanes = "4";
272                                         tegra_sinterface = "serial_a";
273                                         discontinuous_clk = "yes";
274                                         cil_settletime = "0";
275
276                                         active_w = "2048";
277                                         active_h = "1536";
278                                         pixel_t = "bayer_rggb";
279                                         readout_orientation = "0";
280                                         line_length = "5008";
281                                         inherent_gain = "1";
282                                         mclk_multiplier = "25";
283                                         pix_clk_hz = "480000000";
284
285                                         min_gain_val = "1.0";
286                                         max_gain_val = "16.0";
287                                         min_hdr_ratio = "1";
288                                         max_hdr_ratio = "64";
289                                         min_framerate = "1.462526";
290                                         max_framerate = "30";
291                                         min_exp_time = "11";
292                                         max_exp_time = "683645";
293                                         embedded_metadata_height = "4";
294                                 };
295
296                                 mode4 { // IMX214_MODE_2048X1152
297                                         mclk_khz = "24000";
298                                         num_lanes = "4";
299                                         tegra_sinterface = "serial_a";
300                                         discontinuous_clk = "yes";
301                                         cil_settletime = "0";
302
303                                         active_w = "2048";
304                                         active_h = "1152";
305                                         pixel_t = "bayer_rggb";
306                                         readout_orientation = "0";
307                                         line_length = "5008";
308                                         inherent_gain = "1";
309                                         mclk_multiplier = "25";
310                                         pix_clk_hz = "480000000";
311
312                                         min_gain_val = "1.0";
313                                         max_gain_val = "16.0";
314                                         min_hdr_ratio = "1";
315                                         max_hdr_ratio = "64";
316                                         min_framerate = "1.462526";
317                                         max_framerate = "30";
318                                         min_exp_time = "11";
319                                         max_exp_time = "683645";
320                                         embedded_metadata_height = "4";
321                                 };
322
323                                 mode5 { // IMX214_MODE_1920X1080
324                                         mclk_khz = "24000";
325                                         num_lanes = "4";
326                                         tegra_sinterface = "serial_a";
327                                         discontinuous_clk = "yes";
328                                         cil_settletime = "0";
329
330                                         active_w = "1920";
331                                         active_h = "1080";
332                                         pixel_t = "bayer_rggb";
333                                         readout_orientation = "0";
334                                         line_length = "5008";
335                                         inherent_gain = "1";
336                                         mclk_multiplier = "25";
337                                         pix_clk_hz = "480000000";
338
339                                         min_gain_val = "1.0";
340                                         max_gain_val = "16.0";
341                                         min_hdr_ratio = "1";
342                                         max_hdr_ratio = "64";
343                                         min_framerate = "1.462526";
344                                         max_framerate = "30";
345                                         min_exp_time = "11";
346                                         max_exp_time = "683645";
347                                         embedded_metadata_height = "4";
348                                 };
349
350                                 mode6 { // IMX214_MODE_1280X720_120FPS
351                                         mclk_khz = "24000";
352                                         num_lanes = "4";
353                                         tegra_sinterface = "serial_a";
354                                         discontinuous_clk = "yes";
355                                         cil_settletime = "0";
356
357                                         active_w = "1280";
358                                         active_h = "720";
359                                         pixel_t = "bayer_rggb";
360                                         readout_orientation = "0";
361                                         line_length = "5008";
362                                         inherent_gain = "1";
363                                         mclk_multiplier = "25";
364                                         pix_clk_hz = "480000000";
365
366                                         min_gain_val = "1.0";
367                                         max_gain_val = "16.0";
368                                         min_hdr_ratio = "1";
369                                         max_hdr_ratio = "64";
370                                         min_framerate = "1.462526";
371                                         max_framerate = "120";
372                                         min_exp_time = "11";
373                                         max_exp_time = "683645";
374                                         embedded_metadata_height = "4";
375                                 };
376                                 ports {
377                                         #address-cells = <1>;
378                                         #size-cells = <0>;
379
380                                         port@0 {
381                                                 reg = <0>;
382                                                 imx214_out0: endpoint {
383                                                         csi-port = <0>;
384                                                         bus-width = <4>;
385                                                         remote-endpoint = <&vi_in0>;
386                                                 };
387                                         };
388                                 };
389                         };
390
391                         ov5693_c@36 {
392                                 compatible = "nvidia,ov5693";
393                                 /* I2C device address */
394                                 reg = <0x36>;
395
396                                 /* Physical dimensions of sensor */
397                                 physical_w = "3.674";
398                                 physical_h = "2.738";
399
400                                 /* Sensor Model */
401                                 sensor_model ="ov5693";
402
403                                 /* Define any required hw resources needed by driver */
404                                 /* ie. clocks, io pins, power sources */
405                                 /* mclk-index indicates the index of the */
406                                 /* mclk-name with in the clock-names array */
407                                 clocks = <&tegra_car TEGRA210_CLK_ID_CLK_OUT_3>;
408                                 clock-names = "mclk";
409                                 clock-frequency = <24000000>;
410
411                                 mclk = "cam_mclk1";
412                                 pwdn-gpios = <&gpio TEGRA_GPIO(T, 0) 0>;
413                                 avdd-reg = "vana";
414                                 iovdd-reg = "vif";
415                                 vana-supply = <&max77620_ldo3>;
416                                 vif-supply = <&en_vdd_cam>;
417
418                                 /* Defines number of frames to be dropped by driver internally after applying */
419                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
420                                 /* crop co-ordinates */
421                                 post_crop_frame_drop = "0";
422
423                                 mode0 { // OV5693_MODE_2592X1944
424                                         mclk_khz = "24000";
425                                         num_lanes = "2";
426                                         tegra_sinterface = "serial_c";
427                                         discontinuous_clk = "no";
428                                         dpcm_enable = "false";
429                                         cil_settletime = "0";
430
431                                         active_w = "2592";
432                                         active_h = "1944";
433                                         pixel_t = "bayer_bggr";
434                                         readout_orientation = "90";
435                                         line_length = "2688";
436                                         inherent_gain = "1";
437                                         mclk_multiplier = "17.0";
438                                         pix_clk_hz = "160000000";
439
440                                         min_gain_val = "1.0";
441                                         max_gain_val = "16";
442                                         min_hdr_ratio = "1";
443                                         max_hdr_ratio = "64";
444                                         min_framerate = "1.816577";
445                                         max_framerate = "30";
446                                         min_exp_time = "34";
447                                         max_exp_time = "550385";
448                                         embedded_metadata_height = "0";
449                                 };
450
451                                 mode1 { //OV5693_MODE_2592X1458
452                                         mclk_khz = "24000";
453                                         num_lanes = "2";
454                                         tegra_sinterface = "serial_c";
455                                         discontinuous_clk = "no";
456                                         dpcm_enable = "false";
457                                         cil_settletime = "0";
458
459                                         active_w = "2592";
460                                         active_h = "1458";
461                                         pixel_t = "bayer_bggr";
462                                         readout_orientation = "90";
463                                         line_length = "2688";
464                                         inherent_gain = "1";
465                                         mclk_multiplier = "17.0";
466                                         pix_clk_hz = "160000000";
467
468                                         min_gain_val = "1.0";
469                                         max_gain_val = "16";
470                                         min_hdr_ratio = "1";
471                                         max_hdr_ratio = "64";
472                                         min_framerate = "1.816577";
473                                         max_framerate = "30";
474                                         min_exp_time = "34";
475                                         max_exp_time = "550385";
476                                         embedded_metadata_height = "0";
477                                 };
478
479                                 mode2 { //OV5693_MODE_1280X720
480                                         mclk_khz = "24000";
481                                         num_lanes = "2";
482                                         tegra_sinterface = "serial_c";
483                                         discontinuous_clk = "no";
484                                         dpcm_enable = "false";
485                                         cil_settletime = "0";
486
487                                         active_w = "1280";
488                                         active_h = "720";
489                                         pixel_t = "bayer_bggr";
490                                         readout_orientation = "90";
491                                         line_length = "1752";
492                                         inherent_gain = "1";
493                                         mclk_multiplier = "17.0";
494                                         pix_clk_hz = "160000000";
495
496                                         min_gain_val = "1.0";
497                                         max_gain_val = "16";
498                                         min_hdr_ratio = "1";
499                                         max_hdr_ratio = "64";
500                                         min_framerate = "2.787078";
501                                         max_framerate = "120";
502                                         min_exp_time = "22";
503                                         max_exp_time = "358733";
504                                         embedded_metadata_height = "0";
505                                 };
506
507                                 // HDR Modes
508                                 mode3 { //OV5693_MODE_2592X1944_HDR
509                                         mclk_khz = "24000";
510                                         num_lanes = "2";
511                                         tegra_sinterface = "serial_c";
512                                         discontinuous_clk = "no";
513                                         dpcm_enable = "false";
514                                         cil_settletime = "0";
515
516                                         active_w = "2592";
517                                         active_h = "1944";
518                                         pixel_t = "hdr_bggr";
519                                         readout_orientation = "90";
520                                         line_length = "3696";
521                                         inherent_gain = "1";
522                                         mclk_multiplier = "19.0";
523                                         pix_clk_hz = "176000000";
524
525                                         min_gain_val = "1.0";
526                                         max_gain_val = "16";
527                                         min_hdr_ratio = "1";
528                                         max_hdr_ratio = "64";
529                                         min_framerate = "1.453262";
530                                         max_framerate = "24";
531                                         min_exp_time = "42";
532                                         max_exp_time = "687981";
533                                         embedded_metadata_height = "0";
534                                 };
535
536                                 ports {
537                                         #address-cells = <1>;
538                                         #size-cells = <0>;
539                                         port@0 {
540                                                 reg = <0>;
541                                                 ov5693_out0: endpoint {
542                                                         csi-port = <2>;
543                                                         bus-width = <2>;
544                                                         remote-endpoint = <&vi_in1>;
545                                                 };
546                                         };
547                                 };
548                         };
549                 };
550         };
551
552         dw9714@0c {
553                 compatible = "nvidia,dw9714";
554                 vdd-supply = <&max77620_ldo3>;
555                 vdd_i2c-supply = <&en_vdd_cam>;
556                 /* platform data */
557                 dev_name = "focuser";
558                 num = <0>;
559                 sync = <0>;
560                 /* Copy pasted everything from camera-pcl node for now */
561                 chipname = "pcl_DW9714";
562                 type = "focuser";
563                 position = <0>;
564                 bustype = "i2c";
565                 busnum = <VI_I2C_BUS>;
566                 addr = <0xc>;
567                 datalen = <1>;
568                 pinmuxgrp = <0xFFFF>;
569                 gpios = <1>;
570                 regulators = "vdd", "vdd_i2c";
571                 drivername = "dw9714";
572                 devid = <0x9714>;
573                 /* focuser capabilities */
574                 settle-time = <30000>; /* uS */
575                 slew-rate = <0x3a200c>; /* tunned slew mode */
576                 macro-position = <450>;
577                 infinity-position = <200>;
578                 hyper-value = <200>;
579         };
580
581         tegra-camera-platform {
582                 compatible = "nvidia, tegra-camera-platform";
583
584                 /**
585                 * The general guideline for naming badge_info contains 3 parts,
586                 * and is as follows:
587                 * The first part is the camera_board_id for the module
588                 * if the module is in a FFD platform, then use platform name.
589                 * The second part contains the position of the module
590                 * ex. “rear” or “front”.
591                 * The third part contains the last 6 characters of part number
592                 * which is found in the module's specsheet from the vender.
593                 */
594                 modules {
595                         module0 {
596                                 badge = "e2249_rear_P13N05B";
597                                 position = "rear";
598                                 orientation = "0";
599                                 drivernode0 {
600                                         /**
601                                         * Declare PCL support driver
602                                         * (classically known as guid)
603                                         * Device tree hierarchy to driver
604                                         */
605                                         pcl_id = "v4l2_sensor";
606                                         /* Driver's v4l2 device name */
607                                         devname = "imx214 6-001a";
608                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/imx214@1a";
609                                 };
610                                 drivernode1 {
611                                         /**
612                                         * Declare PCL support driver
613                                         * (classically known as guid)
614                                         */
615                                         pcl_id = "v4l2_focuser_stub";
616                                 };
617                                 drivernode2 {
618                                         /**
619                                         * Declare PCL support driver
620                                         * (classically known as guid)
621                                         */
622                                         pcl_id = "f_NVCAM0";
623                                 };
624                         };
625                         module1 {
626                                 badge = "e2249_front_P5V27C";
627                                 position = "front";
628                                 orientation = "0";
629                                 drivernode0 {
630                                         pcl_id = "v4l2_sensor";
631                                         /* Driver's v4l2 device name */
632                                         devname = "ov5693 6-0036";
633                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/ov5693_c@36";
634                                 };
635                                 drivernode1 {
636                                         /**
637                                         * Declare PCL support driver
638                                         * (classically known as guid)
639                                         */
640                                         pcl_id = "v4l2_focuser_stub";
641                                 };
642                         };
643                 };
644         };
645
646         camera-pcl {
647                 compatible = "nvidia,tegra210-camera", "simple-bus";
648                 configuration = <0xAA55AA55>;
649
650                 modules {
651                         module1: module1@modules {
652                                 compatible = "sensor,rear";
653                                 badge_info = "e2249_rear_P13N05B";
654
655                                 sensor {
656                                         profile = <&imx214_2>;
657                                         platformdata = "t210ref_imx214_pdata";
658                                 };
659                                 focuser {
660                                         profile = <&dw9714_1>;
661                                         platformdata = "t210ref_dw9714_pdata";
662                                 };
663                                 flash {
664                                         profile = <&as3648_1>;
665                                         platformdata = "t210ref_as3648_pdata";
666                                 };
667                         };
668                         module2: module2@modules {
669                                 compatible = "sensor,front";
670                                 badge_info = "e2249_front_P5V27C";
671
672                                 sensor {
673                                         profile = <&ov5693_1>;
674                                         platformdata = "t210ref_ov5693f_pdata";
675                                 };
676                         };
677                         module3: module3@modules {
678                                 compatible = "sensor,rear";
679                                 badge_info = "e2249_front_P5V27C";
680
681                                 sensor {
682                                         profile = <&ov5693_A>;
683                                         platformdata = "t210ref_ov5693A_pdata";
684                                 };
685                         };
686                         module4: module4@modules {
687                                 compatible = "sensor,front";
688                                 badge_info = "e2249_front_P5V27C";
689
690                                 sensor {
691                                         profile = <&ov5693_B>;
692                                         platformdata = "t210ref_ov5693B_pdata";
693                                 };
694                         };
695                         module5: module5@modules {
696                                 compatible = "sensor,front";
697                                 badge_info = "e2249_front_P5V27C";
698
699                                 sensor {
700                                         profile = <&ov5693_C>;
701                                         platformdata = "t210ref_ov5693C_pdata";
702                                 };
703                         };
704                         module6: module6@modules {
705                                 compatible = "sensor,front";
706                                 badge_info = "e2249_front_P5V27C";
707
708                                 sensor {
709                                         profile = <&ov5693_D>;
710                                         platformdata = "t210ref_ov5693D_pdata";
711                                 };
712                         };
713                         module7: module7@modules {
714                                 compatible = "sensor,front";
715                                 badge_info = "e2249_front_P5V27C";
716
717                                 sensor {
718                                         profile = <&ov5693_E>;
719                                         platformdata = "t210ref_ov5693E_pdata";
720                                 };
721                         };
722                         module8: module8@modules {
723                                 compatible = "sensor,front";
724                                 badge_info = "e2249_front_P5V27C";
725
726                                 sensor {
727                                         profile = <&ov5693_F>;
728                                         platformdata = "t210ref_ov5693F_pdata";
729                                 };
730                         };
731                 };
732
733                 profiles {
734                         imx214_1: imx214-pcl@x_001a {
735                                 index = <1>;
736                                 chipname = "pcl_IMX214";
737                                 type = "sensor";
738                                 guid = "s_IMX214";
739                                 position = <0>;
740                                 bustype = "i2c";
741                                 busnum = <VI_I2C_BUS>;
742                                 addr = <0x1a>;
743                                 datalen = <2>;
744                                 pinmuxgrp = <0xFFFF>;
745                                 gpios = <3>;
746                                 regulators = "vana", "vdig", "vif";
747                                 clocks = "cam_mclk1";
748                                 drivername = "imx214";
749                                 detect = <0x0002 0x0016 0xFFFF 0x0214>;
750                                 devid = <0x0214>;
751                                 poweron = <
752                                         CAMERA_IND_CLK_SET(10000)
753                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
754                                         CAMERA_WAITUS(10)
755                                         CAMERA_REGULATOR_ON(2)
756                                         CAMERA_REGULATOR_ON(1)
757                                         CAMERA_REGULATOR_ON(0)
758                                         CAMERA_WAITMS(5)
759                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
760                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 5))
761                                         CAMERA_WAITUS(300)
762                                         CAMERA_END
763                                         >;
764                                 poweroff = <
765                                         CAMERA_IND_CLK_CLR
766                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
767                                         CAMERA_WAITUS(10)
768                                         CAMERA_REGULATOR_OFF(2)
769                                         CAMERA_REGULATOR_OFF(1)
770                                         CAMERA_REGULATOR_OFF(0)
771                                         CAMERA_END
772                                         >;
773                         };
774                         dw9714_1: dw9714-pcl@x_000c {
775                                 index = <2>;
776                                 chipname = "pcl_DW9714";
777                                 type = "focuser";
778                                 guid = "f_NVCAM0";
779                                 position = <0>;
780                                 bustype = "i2c";
781                                 busnum = <VI_I2C_BUS>;
782                                 addr = <0xc>;
783                                 datalen = <1>;
784                                 pinmuxgrp = <0xFFFF>;
785                                 gpios = <1>;
786                                 regulators = "vdd", "vdd_i2c";
787                                 drivername = "dw9714";
788                                 detect = <0x0000 0x0000 0xFFFF 0x0000>;
789                                 devid = <0x9714>;
790                                 poweron = <
791                                         CAMERA_REGULATOR_ON(1)
792                                         CAMERA_REGULATOR_ON(0)
793                                         CAMERA_WAITUS(10)
794                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 5))
795                                         CAMERA_WAITUS(10)
796                                         CAMERA_END
797                                         >;
798                                 poweroff = <
799                                         CAMERA_REGULATOR_OFF(0)
800                                         CAMERA_REGULATOR_OFF(1)
801                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 5))
802                                         CAMERA_WAITUS(10)
803                                         CAMERA_END
804                                         >;
805                                 /* focuser capabilities */
806                                 settle-time = <30000>; /* uS */
807                                 slew-rate = <0x3a200c>; /* tunned slew mode */
808                                 macro-position = <450>;
809                                 infinity-position = <200>;
810                                 hyper-value = <200>;
811                                 support_mfi;
812                         };
813                         as3648_1: as3648-pcl@x_0030 {
814                                 index = <3>;
815                                 chipname = "pcl_AS3648";
816                                 type = "flash";
817                                 guid = "l_NVCAM0";
818                                 position = <0>;
819                                 bustype = "i2c";
820                                 busnum = <VI_I2C_BUS>;
821                                 addr = <0x30>;
822                                 datalen = <1>;
823                                 pinmuxgrp = <0xFFFF>;
824                                 gpios = <3>;
825                                 regulators = "vi2c", "vin";
826                                 drivername = "as3648";
827                                 detect = <0x0001 0x0000 0x00F0 0x00b0>;
828                                 devid = <0x3648>;
829                                 poweron = <
830                                         CAMERA_REGULATOR_ON(1)
831                                         CAMERA_REGULATOR_ON(0)
832                                         CAMERA_WAITUS(1000)
833                                         CAMERA_END
834                                         >;
835                                 poweroff = <
836                                         CAMERA_REGULATOR_OFF(0)
837                                         CAMERA_REGULATOR_OFF(1)
838                                         CAMERA_WAITUS(10)
839                                         CAMERA_END
840                                         >;
841                                 /* configuration */
842                                 led-mask = <3>;
843                                 max-total-current = <1000>; /* mA */
844                                 max-peak-current = <600>; /* mA */
845                                 max-torch-current = <600>; /* mA */
846                                 vin-low-v-run = <3070>; /* mV */
847                         };
848                         ov5693_1: ov5693-pcl@x_0036 {
849                                 index = <4>;
850                                 chipname = "pcl_OV5693f";
851                                 type = "sensor";
852                                 guid = "sOV5693f";
853                                 position = <1>;
854                                 bustype = "i2c";
855                                 busnum = <VI_I2C_BUS>;
856                                 addr = <0x36>;
857                                 datalen = <2>;
858                                 pinmuxgrp = <0xFFFF>;
859                                 gpios = <3>;
860                                 regulators = "vana", "vif";
861                                 clocks = "cam_mclk1";
862                                 drivername = "ov5693.1";
863                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
864                                 devid = <0x5693>;
865                                 poweron = <
866                                         CAMERA_IND_CLK_SET(10000)
867                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
868                                         CAMERA_WAITMS(1)
869                                         CAMERA_REGULATOR_ON(0)
870                                         CAMERA_REGULATOR_ON(1)
871                                         CAMERA_WAITMS(1)
872                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
873                                         CAMERA_WAITMS(10)
874                                         CAMERA_END
875                                         >;
876                                 poweroff = <
877                                         CAMERA_IND_CLK_CLR
878                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
879                                         CAMERA_WAITUS(10)
880                                         CAMERA_REGULATOR_OFF(1)
881                                         CAMERA_REGULATOR_OFF(0)
882                                         CAMERA_END
883                                         >;
884                                 /* sensor capabilities */
885                                 cap-version = <0x34340002>;
886                                 cap-identifier = "OV5693.1";
887                                 cap-sensor_nvc_interface = <5>;
888                                 cap-pixel_types = <0x101>;
889                                 cap-orientation = <0>;
890                                 cap-direction = <1>;
891                                 cap-initial_clock_rate_khz = <6000>;
892                                 cap-h_sync_edge = <0>;
893                                 cap-v_sync_edge = <0>;
894                                 cap-mclk_on_vgp0 = <0>;
895                                 cap-csi_port = <1>;
896                                 cap-data_lanes = <2>;
897                                 cap-virtual_channel_id = <0>;
898                                 cap-discontinuous_clk_mode = <1>;
899                                 cap-cil_threshold_settle = <0>;
900                                 cap-min_blank_time_width = <16>;
901                                 cap-min_blank_time_height = <16>;
902                                 cap-preferred_mode_index = <0>;
903                                 cap-external_clock_khz_0 = <24000>;
904                                 cap-clock_multiplier_0 = <8000000>;
905                                 cap-external_clock_khz_1 = <0>;
906                                 cap-clock_multiplier_1 = <0>;
907                                 cap-hdr-enabled;
908                         };
909                         imx214_2: imx214-pcl@v_001a {
910                                 index = <5>;
911                                 chipname = "v4l2_IMX214";
912                                 type = "sensor";
913                                 guid = "vlSensor";
914                                 position = <0>;
915                                 bustype = "i2c";
916                                 busnum = <VI_I2C_BUS>;
917                                 addr = <0x1a>;
918                                 datalen = <2>;
919                                 pinmuxgrp = <0xFFFF>;
920                                 gpios = <3>;
921                                 regulators = "vana", "vdig", "vif";
922                                 clocks = "cam_mclk1";
923                                 drivername = "imx214";
924                                 devid = <0x0214>;
925                                 skip_camera_install = <1>;
926                         };
927                         ov5693_A: ov5693-pcl@a_0036 {
928                                 index = <5>;
929                                 chipname = "pcl_OV5693A";
930                                 type = "sensor";
931                                 guid = "sOV5693A";
932                                 position = <0>;
933                                 bustype = "i2c";
934                                 busnum = <T210_CAMERA_I2C_MUX_BUS(3)>;
935                                 addr = <0x36>;
936                                 datalen = <2>;
937                                 pinmuxgrp = <0xFFFF>;
938                                 gpios = <3>;
939                                 regulators = "vana", "vif";
940                                 clocks = "cam_mclk1";
941                                 drivername = "ov5693";
942                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
943                                 devid = <0x5693>;
944                                 poweron = <
945                                         CAMERA_IND_CLK_SET(10000)
946                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
947                                         CAMERA_WAITMS(1)
948                                         CAMERA_REGULATOR_ON(0)
949                                         CAMERA_REGULATOR_ON(1)
950                                         CAMERA_WAITMS(1)
951                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
952                                         CAMERA_WAITMS(10)
953                                         CAMERA_END
954                                         >;
955                                 poweroff = <
956                                         CAMERA_IND_CLK_CLR
957                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
958                                         CAMERA_WAITUS(10)
959                                         CAMERA_REGULATOR_OFF(1)
960                                         CAMERA_REGULATOR_OFF(0)
961                                         CAMERA_END
962                                         >;
963                                 /* sensor capabilities */
964                                 cap-cap-version = <0x34340002>;
965                                 cap-identifier = "OV5693_A";
966                                 cap-sensor_nvc_interface = <3>;
967                                 cap-pixel_types = <0x101>;
968                                 cap-orientation = <0>;
969                                 cap-direction = <0>;
970                                 cap-initial_clock_rate_khz = <6000>;
971                                 cap-h_sync_edge = <0>;
972                                 cap-v_sync_edge = <0>;
973                                 cap-mclk_on_vgp0 = <0>;
974                                 cap-csi_port = <0>;
975                                 cap-data_lanes = <2>;
976                                 cap-virtual_channel_id = <0>;
977                                 cap-discontinuous_clk_mode = <1>;
978                                 cap-cil_threshold_settle = <0>;
979                                 cap-min_blank_time_width = <16>;
980                                 cap-min_blank_time_height = <16>;
981                                 cap-preferred_mode_index = <0>;
982                                 cap-external_clock_khz_0 = <24000>;
983                                 cap-clock_multiplier_0 = <8000000>;
984                                 cap-external_clock_khz_1 = <0>;
985                                 cap-clock_multiplier_1 = <0>;
986                                 cap-hdr-enabled;
987                         };
988                         ov5693_B: ov5693-pcl@b_0036 {
989                                 index = <7>;
990                                 chipname = "pcl_OV5693B";
991                                 type = "sensor";
992                                 guid = "sOV5693B";
993                                 position = <1>;
994                                 bustype = "i2c";
995                                 busnum = <T210_CAMERA_I2C_MUX_BUS(2)>;
996                                 addr = <0x36>;
997                                 datalen = <2>;
998                                 pinmuxgrp = <0xFFFF>;
999                                 gpios = <3>;
1000                                 regulators = "vana", "vif";
1001                                 clocks = "cam_mclk1";
1002                                 drivername = "ov5693";
1003                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1004                                 devid = <0x5693>;
1005                                 poweron = <
1006                                         CAMERA_IND_CLK_SET(10000)
1007                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1008                                         CAMERA_WAITMS(1)
1009                                         CAMERA_REGULATOR_ON(0)
1010                                         CAMERA_REGULATOR_ON(1)
1011                                         CAMERA_WAITMS(1)
1012                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
1013                                         CAMERA_WAITMS(10)
1014                                         CAMERA_END
1015                                         >;
1016                                 poweroff = <
1017                                         CAMERA_IND_CLK_CLR
1018                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1019                                         CAMERA_WAITUS(10)
1020                                         CAMERA_REGULATOR_OFF(1)
1021                                         CAMERA_REGULATOR_OFF(0)
1022                                         CAMERA_END
1023                                         >;
1024                                 /* sensor capabilities */
1025                                 cap-cap-version = <0x34340002>;
1026                                 cap-identifier = "OV5693_B";
1027                                 cap-sensor_nvc_interface = <5>;
1028                                 cap-pixel_types = <0x101>;
1029                                 cap-orientation = <0>;
1030                                 cap-direction = <0>;
1031                                 cap-initial_clock_rate_khz = <6000>;
1032                                 cap-h_sync_edge = <0>;
1033                                 cap-v_sync_edge = <0>;
1034                                 cap-mclk_on_vgp0 = <0>;
1035                                 cap-csi_port = <0>;
1036                                 cap-data_lanes = <2>;
1037                                 cap-virtual_channel_id = <0>;
1038                                 cap-discontinuous_clk_mode = <1>;
1039                                 cap-cil_threshold_settle = <0>;
1040                                 cap-min_blank_time_width = <16>;
1041                                 cap-min_blank_time_height = <16>;
1042                                 cap-preferred_mode_index = <0>;
1043                                 cap-external_clock_khz_0 = <24000>;
1044                                 cap-clock_multiplier_0 = <8000000>;
1045                                 cap-external_clock_khz_1 = <0>;
1046                                 cap-clock_multiplier_1 = <0>;
1047                                 cap-hdr-enabled;
1048                         };
1049                         ov5693_C: ov5693-pcl@c_0036 {
1050                                 index = <8>;
1051                                 chipname = "pcl_OV5693C";
1052                                 type = "sensor";
1053                                 guid = "sOV5693C";
1054                                 position = <2>;
1055                                 bustype = "i2c";
1056                                 busnum = <T210_CAMERA_I2C_MUX_BUS(0)>;
1057                                 addr = <0x36>;
1058                                 datalen = <2>;
1059                                 pinmuxgrp = <0xFFFF>;
1060                                 gpios = <3>;
1061                                 regulators = "vana", "vif";
1062                                 clocks = "cam_mclk1";
1063                                 drivername = "ov5693";
1064                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1065                                 devid = <0x5693>;
1066                                 poweron = <
1067                                         CAMERA_IND_CLK_SET(10000)
1068                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1069                                         CAMERA_WAITMS(1)
1070                                         CAMERA_REGULATOR_ON(0)
1071                                         CAMERA_REGULATOR_ON(1)
1072                                         CAMERA_WAITMS(1)
1073                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
1074                                         CAMERA_WAITMS(10)
1075                                         CAMERA_END
1076                                         >;
1077                                 poweroff = <
1078                                         CAMERA_IND_CLK_CLR
1079                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1080                                         CAMERA_WAITUS(10)
1081                                         CAMERA_REGULATOR_OFF(1)
1082                                         CAMERA_REGULATOR_OFF(0)
1083                                         CAMERA_END
1084                                         >;
1085                                 /* sensor capabilities */
1086                                 cap-cap-version = <0x34340002>;
1087                                 cap-identifier = "OV5693_C";
1088                                 cap-sensor_nvc_interface = <6>;
1089                                 cap-pixel_types = <0x101>;
1090                                 cap-orientation = <0>;
1091                                 cap-direction = <0>;
1092                                 cap-initial_clock_rate_khz = <6000>;
1093                                 cap-h_sync_edge = <0>;
1094                                 cap-v_sync_edge = <0>;
1095                                 cap-mclk_on_vgp0 = <0>;
1096                                 cap-csi_port = <0>;
1097                                 cap-data_lanes = <2>;
1098                                 cap-virtual_channel_id = <0>;
1099                                 cap-discontinuous_clk_mode = <1>;
1100                                 cap-cil_threshold_settle = <0>;
1101                                 cap-min_blank_time_width = <16>;
1102                                 cap-min_blank_time_height = <16>;
1103                                 cap-preferred_mode_index = <0>;
1104                                 cap-external_clock_khz_0 = <24000>;
1105                                 cap-clock_multiplier_0 = <8000000>;
1106                                 cap-external_clock_khz_1 = <0>;
1107                                 cap-clock_multiplier_1 = <0>;
1108                                 cap-hdr-enabled;
1109                         };
1110                         ov5693_D: ov5693-pcl@d_0036 {
1111                                 index = <6>;
1112                                 chipname = "pcl_OV5693D";
1113                                 type = "sensor";
1114                                 guid = "sOV5693D";
1115                                 position = <3>;
1116                                 bustype = "i2c";
1117                                 busnum = <T210_CAMERA_I2C_MUX_BUS(1)>;
1118                                 addr = <0x36>;
1119                                 datalen = <2>;
1120                                 pinmuxgrp = <0xFFFF>;
1121                                 gpios = <3>;
1122                                 regulators = "vana", "vif";
1123                                 clocks = "cam_mclk1";
1124                                 drivername = "ov5693";
1125                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1126                                 devid = <0x5693>;
1127                                 poweron = <
1128                                         CAMERA_IND_CLK_SET(10000)
1129                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
1130                                         CAMERA_WAITMS(1)
1131                                         CAMERA_REGULATOR_ON(0)
1132                                         CAMERA_REGULATOR_ON(1)
1133                                         CAMERA_WAITMS(1)
1134                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
1135                                         CAMERA_WAITMS(10)
1136                                         CAMERA_END
1137                                         >;
1138                                 poweroff = <
1139                                         CAMERA_IND_CLK_CLR
1140                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
1141                                         CAMERA_WAITUS(10)
1142                                         CAMERA_REGULATOR_OFF(1)
1143                                         CAMERA_REGULATOR_OFF(0)
1144                                         CAMERA_END
1145                                         >;
1146                                 /* sensor capabilities */
1147                                 cap-cap-version = <0x34340002>;
1148                                 cap-identifier = "OV5693_D";
1149                                 cap-sensor_nvc_interface = <4>;
1150                                 cap-pixel_types = <0x101>;
1151                                 cap-orientation = <0>;
1152                                 cap-direction = <0>;
1153                                 cap-initial_clock_rate_khz = <6000>;
1154                                 cap-h_sync_edge = <0>;
1155                                 cap-v_sync_edge = <0>;
1156                                 cap-mclk_on_vgp0 = <0>;
1157                                 cap-csi_port = <0>;
1158                                 cap-data_lanes = <2>;
1159                                 cap-virtual_channel_id = <0>;
1160                                 cap-discontinuous_clk_mode = <1>;
1161                                 cap-cil_threshold_settle = <0>;
1162                                 cap-min_blank_time_width = <16>;
1163                                 cap-min_blank_time_height = <16>;
1164                                 cap-preferred_mode_index = <0>;
1165                                 cap-external_clock_khz_0 = <24000>;
1166                                 cap-clock_multiplier_0 = <8000000>;
1167                                 cap-external_clock_khz_1 = <0>;
1168                                 cap-clock_multiplier_1 = <0>;
1169                                 cap-hdr-enabled;
1170                         };
1171                         ov5693_E: ov5693-pcl@e_0036 {
1172                                 index = <9>;
1173                                 chipname = "pcl_OV5693E";
1174                                 type = "sensor";
1175                                 guid = "sOV5693E";
1176                                 position = <4>;
1177                                 bustype = "i2c";
1178                                 busnum = <T210_CAMERA_I2C_MUX_BUS(5)>;
1179                                 addr = <0x36>;
1180                                 datalen = <2>;
1181                                 pinmuxgrp = <0xFFFF>;
1182                                 gpios = <3>;
1183                                 regulators = "vana", "vif";
1184                                 clocks = "cam_mclk3";
1185                                 drivername = "ov5693";
1186                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1187                                 devid = <0x5693>;
1188                                 poweron = <
1189                                         CAMERA_IND_CLK_SET(10000)
1190                                         CAMERA_GPIO_CLR(TEGRA_GPIO(Z, 3))
1191                                         CAMERA_WAITMS(1)
1192                                         CAMERA_REGULATOR_ON(0)
1193                                         CAMERA_REGULATOR_ON(1)
1194                                         CAMERA_WAITMS(1)
1195                                         CAMERA_GPIO_SET(TEGRA_GPIO(Z, 3))
1196                                         CAMERA_WAITMS(10)
1197                                         CAMERA_END
1198                                         >;
1199                                 poweroff = <
1200                                         CAMERA_IND_CLK_CLR
1201                                         CAMERA_GPIO_CLR(TEGRA_GPIO(Z, 3))
1202                                         CAMERA_WAITUS(10)
1203                                         CAMERA_REGULATOR_OFF(1)
1204                                         CAMERA_REGULATOR_OFF(0)
1205                                         CAMERA_END
1206                                         >;
1207                                 /* sensor capabilities */
1208                                 cap-cap-version = <0x34340002>;
1209                                 cap-identifier = "OV5693_E";
1210                                 cap-sensor_nvc_interface = <7>;
1211                                 cap-pixel_types = <0x101>;
1212                                 cap-orientation = <0>;
1213                                 cap-direction = <0>;
1214                                 cap-initial_clock_rate_khz = <6000>;
1215                                 cap-h_sync_edge = <0>;
1216                                 cap-v_sync_edge = <0>;
1217                                 cap-mclk_on_vgp0 = <0>;
1218                                 cap-csi_port = <0>;
1219                                 cap-data_lanes = <2>;
1220                                 cap-virtual_channel_id = <0>;
1221                                 cap-discontinuous_clk_mode = <1>;
1222                                 cap-cil_threshold_settle = <0>;
1223                                 cap-min_blank_time_width = <16>;
1224                                 cap-min_blank_time_height = <16>;
1225                                 cap-preferred_mode_index = <0>;
1226                                 cap-external_clock_khz_0 = <24000>;
1227                                 cap-clock_multiplier_0 = <8000000>;
1228                                 cap-external_clock_khz_1 = <0>;
1229                                 cap-clock_multiplier_1 = <0>;
1230                                 cap-hdr-enabled;
1231                         };
1232                         ov5693_F: ov5693-pcl@f_0036 {
1233                                 index = <10>;
1234                                 chipname = "pcl_OV5693F";
1235                                 type = "sensor";
1236                                 guid = "sOV5693F";
1237                                 position = <5>;
1238                                 bustype = "i2c";
1239                                 busnum = <T210_CAMERA_I2C_MUX_BUS(4)>;
1240                                 addr = <0x36>;
1241                                 datalen = <2>;
1242                                 pinmuxgrp = <0xFFFF>;
1243                                 gpios = <3>;
1244                                 regulators = "vana", "vif";
1245                                 clocks = "cam_mclk3";
1246                                 drivername = "ov5693";
1247                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1248                                 devid = <0x5693>;
1249                                 poweron = <
1250                                         CAMERA_IND_CLK_SET(10000)
1251                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 1))
1252                                         CAMERA_WAITMS(1)
1253                                         CAMERA_REGULATOR_ON(0)
1254                                         CAMERA_REGULATOR_ON(1)
1255                                         CAMERA_WAITMS(1)
1256                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 1))
1257                                         CAMERA_WAITMS(10)
1258                                         CAMERA_END
1259                                         >;
1260                                 poweroff = <
1261                                         CAMERA_IND_CLK_CLR
1262                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 1))
1263                                         CAMERA_WAITUS(10)
1264                                         CAMERA_REGULATOR_OFF(1)
1265                                         CAMERA_REGULATOR_OFF(0)
1266                                         CAMERA_END
1267                                         >;
1268                                 /* sensor capabilities */
1269                                 cap-cap-version = <0x34340002>;
1270                                 cap-identifier = "OV5693_F";
1271                                 cap-sensor_nvc_interface = <8>;
1272                                 cap-pixel_types = <0x101>;
1273                                 cap-orientation = <0>;
1274                                 cap-direction = <0>;
1275                                 cap-initial_clock_rate_khz = <6000>;
1276                                 cap-h_sync_edge = <0>;
1277                                 cap-v_sync_edge = <0>;
1278                                 cap-mclk_on_vgp0 = <0>;
1279                                 cap-csi_port = <0>;
1280                                 cap-data_lanes = <2>;
1281                                 cap-virtual_channel_id = <0>;
1282                                 cap-discontinuous_clk_mode = <1>;
1283                                 cap-cil_threshold_settle = <0>;
1284                                 cap-min_blank_time_width = <16>;
1285                                 cap-min_blank_time_height = <16>;
1286                                 cap-preferred_mode_index = <0>;
1287                                 cap-external_clock_khz_0 = <24000>;
1288                                 cap-clock_multiplier_0 = <8000000>;
1289                                 cap-external_clock_khz_1 = <0>;
1290                                 cap-clock_multiplier_1 = <0>;
1291                                 cap-hdr-enabled;
1292                         };
1293                 };
1294         };
1295 };
1296