Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp740854ybp; Fri, 11 Oct 2019 03:41:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjVKR6FrfQeVHbGGU+O0LtPS3DbOkF/PpTEou+rqwU5PPpJCVaXoBJeLyhbKPVbKx7WZC/ X-Received: by 2002:aa7:d8ca:: with SMTP id k10mr13024586eds.54.1570790484528; Fri, 11 Oct 2019 03:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570790484; cv=none; d=google.com; s=arc-20160816; b=EdCUYJ/g8Tp6Ms5zbc1t7kQA3KOaL4g8pZLZFt7sS0uJZaoEOOBSnBXSKFE+E4J0Ve cmWNveav18t/Bjh8d+Ap0/q/avbjUjedd5XPGq+1iGfridWqnosIYWXEazBlbD7d7LTz IouGn3PZ5Y3jV7K6o+jaKwirEA2JP56ovXFHTXR9qSzVpv385c0TgEtyRWI9MBx6ZC3s UT4DGMcX/WTHIrXVfv4yaykSYMpfRLBIJIsHMgJ4Nzm4l3ompTGPrVPBtm9GaknF1Jyq 0KbeUPup2ri31+Wc1s+4PnP9u/ID9/2+I1LmLjDlwJ0sNpqA5iu18JRBp9ul1Bz0ozom rf2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:message-id:date:subject:cc:to :from; bh=Lhf70KovLdzgWLQj9Sj6xpEl7Sml1vUKkrBorA5PsdI=; b=xe5gpr4MRe/ICfpKpwElcidBw5j34YtZpjHe7O4yFEGUsKHfczOT0anskKKvRdYPQZ b5c522FIe0HsMbEdX5UG+97orC4hGaeHojUiWCKNuh7LXFYNE4Q+Bmaz2IAl1SPuEWp+ rt0XUf4T/LNKNxp3c1UHGuHSbdAEFCUCYwAY/Q5PvYy5i5LRK3kEmEDB+dDUMd0PTiZI oPhKSolfG+zoxHAezn6ftS5CDlntYHs6qwuUBd7InGbFvol/xf4FVa5ppe5VdSCDXvdx ZpwxsNToy5d60oSuPuv5U7zMWoh3w+jd24M9DPWb4sw6ZFVA3ayRqhdiqrbGAOY1Y9Pw +fjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox10si4966799ejb.325.2019.10.11.03.41.01; Fri, 11 Oct 2019 03:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727768AbfJKKjz (ORCPT + 99 others); Fri, 11 Oct 2019 06:39:55 -0400 Received: from smtpbgeu1.qq.com ([52.59.177.22]:54935 "EHLO smtpbgeu1.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727750AbfJKKjz (ORCPT ); Fri, 11 Oct 2019 06:39:55 -0400 X-QQ-mid: bizesmtp23t1570790374tpdxnqye Received: from wuxy.com (unknown [183.62.170.245]) by esmtp10.qq.com (ESMTP) with id ; Fri, 11 Oct 2019 18:39:26 +0800 (CST) X-QQ-SSF: 01400000008000O0LJ42000B0000000 X-QQ-FEAT: Ry58bBY793t716lSANFTk6Wsdz3DFhmBx5MtWyIw9iXy5dqK2GlSsJam03thk NLuom7gu8W0uFtD4eduHkHKoxiyrRez8O0Xc1wIg3dDpHmMViPotevwjOhE7srafBf6BxWO AKqQs8sxiX+Uj3OWdWh+OfKd8RlACnjDEyDEsGp7lUcCy620sQU52JQbZdcXpjnaniTVIjR 6tfhON4xVCco7PmaPB41C5WKaSmpCx9FLzItSdOLAZZZVluWqVU9Ye2UCnxXqlpfg6PUhCb FSinZpzVo+P3p1ONByWVgoQCAa3p9flFMuuKMoikmQDxYy1eEIy3sSMYNcPnOtpoXnP5bXN nqBFMy4Xl4iGlZLH8c= X-QQ-GoodBg: 2 From: wuxy@bitland.com.cn To: mchehab@kernel.org Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dongchun.zhu@mediatek.corp-partner.google.com, tfiga@google.com, drinkcat@google.com, wuxy Subject: [PATCH] media: ov5695: enable vsync pin output Date: Fri, 11 Oct 2019 18:39:02 +0800 Message-Id: <20191011103902.3145-1-wuxy@bitland.com.cn> X-Mailer: git-send-email 2.17.1 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:bitland.com.cn:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: wuxy For Kukui project, the ov5695 vsync signal needs to be set to output,from ov5695 datasheet,the related register control methods as follows: 0x3002 Bit[7] FISIN/VSYNC output enable 0x3010 Bit[7] enable FISIN/VSYNC as GPIO controlled by register 0x3008 Bit[7] register control FISIN/VSYNC output TEST= boot to shell Signed-off-by: Xingyu Wu --- drivers/media/i2c/ov5695.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c index 34b7046d9702..71f0eae6037b 100644 --- a/drivers/media/i2c/ov5695.c +++ b/drivers/media/i2c/ov5695.c @@ -300,6 +300,9 @@ static const struct regval ov5695_global_regs[] = { * mipi_datarate per lane 840Mbps */ static const struct regval ov5695_2592x1944_regs[] = { + {0x3002, 0x80}, + {0x3008, 0x80}, + {0x3010, 0x80}, {0x3501, 0x7e}, {0x366e, 0x18}, {0x3800, 0x00}, -- 2.17.1