diff options
author | Hu He <hhe@nvidia.com> | 2014-11-25 14:59:07 -0800 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2015-02-09 17:06:22 -0800 |
commit | 231a96efcdf47e971ce70412332ad436b1ffb619 (patch) | |
tree | 59a9c03c74592fbe7272bed1575a78cef8bc8fc7 /arch/arm/boot | |
parent | c017b032a284d7cb1974f7e80a6c3613089b9c0e (diff) |
Kernel: add ov4689 kernel driver
Bug 1600299
Change-Id: I63f4d597bcc8b960407a7291fde6aa2ddb5bec25
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/674099
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi | 46 |
2 files changed, 58 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts b/arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts index 87dbc0fc389e..9d3559b4e0dd 100644 --- a/arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts +++ b/arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts @@ -67,6 +67,19 @@ reg = <0x0 0x80000000 0x0 0x80000000>; }; + camera-pcl { + profiles { + ov4689@2_0036 { + use_of_node = "yes"; + reset-gpios = <&gpio TEGRA_GPIO(BB, 3) 0>; + cam1-gpios = <&gpio TEGRA_GPIO(BB, 5) 0>; + }; + }; + dpd { + default-enable; + }; + }; + spi@7000d400 { status = "okay"; spi-max-frequency = <25000000>; diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi index 566180d4cdab..e84ffcc1c87d 100644 --- a/arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi +++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi @@ -1,7 +1,7 @@ /* * arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi * - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -71,6 +71,15 @@ platformdata = "ardbeg_ar0330_front_pdata"; }; }; + module5: module5@modules { + compatible = "sensor,rear"; + badge_info = "e1633_ov4689"; + + sensor { + profile = <&ov4689_1>; + platformdata = "ardbeg_ov4689_pdata"; + }; + }; }; profiles { imx135_1: imx135@2_0010 { @@ -295,6 +304,41 @@ CAMERA_END >; }; + ov4689_1: ov4689@2_0036 { + index = <6>; + chipname = "pcl_OV4689"; + type = "sensor"; + guid = "s_OV4689"; + position = <0>; + bustype = "i2c"; + busnum = <2>; + addr = <0x36>; + datalen = <2>; + pinmuxgrp = <0xFFFF>; + gpios = <3>; + regulators = "vana", "vdig", "vif"; + clocks = "mclk"; + drivername = "ov4689"; + detect = <0x0002 0x300A 0xFFFF 0x4688>; + devid = <0x4689>; + poweron = < + CAMERA_IND_CLK_SET(10000) + CAMERA_GPIO_CLR(221) + CAMERA_GPIO_CLR(219) + CAMERA_WAITMS(40) + CAMERA_REGULATOR_ON(2) + CAMERA_GPIO_SET(221) + CAMERA_GPIO_SET(219) + CAMERA_WAITMS(10) + CAMERA_END + >; + poweroff = < + CAMERA_GPIO_CLR(221) + CAMERA_IND_CLK_CLR + CAMERA_WAITUS(10) + CAMERA_END + >; + }; }; }; }; |