ARM64: tegra: dts: loki: remove clk ctl on ov7695
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-loki-e-camera-p2530-0032-e00.dtsi
1 /*
2  * Copyright (c) 2014, 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
20 / {
21         camera-pcl {
22                 compatible = "nvidia,tegra210-camera", "simple-bus";
23                 configuration = <0xAA55AA55>;
24
25                 modules {
26                         module1: module1@modules {
27                                 compatible = "sensor,front";
28                                 badge_info = "loki_front_P2528";
29
30                                 sensor {
31                                         profile = <&ov7695>;
32                                         platformdata = "t210ref_ov7695_pdata";
33                                 };
34                         };
35                 };
36
37                 profiles {
38                         ov7695: ov7695@6_0021 {
39                                 index = <1>;
40                                 chipname = "pcl_OV7695";
41                                 type = "sensor";
42                                 guid = "s_OV7695";
43                                 position = <0>;
44                                 bustype = "i2c";
45                                 busnum = <6>;
46                                 addr = <0x21>;
47                                 datalen = <2>;
48                                 pinmuxgrp = <0xFFFF>;
49                                 gpios = <3>;
50                                 regulators = "vana", "vif2";
51                                 drivername = "ov7695";
52                                 detect = <0x0002 0x300A 0xFFFF 0x7695>;
53                                 devid = <0x7695>;
54                                 poweron = <
55                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
56                                         CAMERA_WAITMS(1)
57                                         CAMERA_REGULATOR_ON(0)
58                                         CAMERA_REGULATOR_ON(1)
59                                         CAMERA_WAITMS(40)
60                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
61                                         CAMERA_WAITMS(10)
62                                         CAMERA_END
63                                         >;
64                                 poweroff = <
65                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
66                                         CAMERA_WAITUS(10)
67                                         CAMERA_REGULATOR_OFF(1)
68                                         CAMERA_REGULATOR_OFF(0)
69                                         CAMERA_END
70                                         >;
71                         };
72                 };
73         };
74 };