From patchwork Tue Oct 13 13:05:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongchun Zhu X-Patchwork-Id: 1381574 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=MK+dSZva; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4C9bPY095Fz9sTs for ; Wed, 14 Oct 2020 00:05:21 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387554AbgJMNFP (ORCPT ); Tue, 13 Oct 2020 09:05:15 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38768 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387546AbgJMNFN (ORCPT ); Tue, 13 Oct 2020 09:05:13 -0400 X-UUID: cea8e0db39b14872b768a720a4baa583-20201013 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Ma35HvnVMPv2Mtqmq10T4yH5J23SnKvh3FQUK91VnMk=; b=MK+dSZvaqg/95XMe0bYgxpJiDWXwFicA+0EVpEiroI6Gt8BC/kAuF6UcCXYQ34jrmXn9YlsE7bY3edHr2i0eUeuxLTw00PdOeepkOEXGnnb45Qtfq2l31qhnlgaWNOnNOZqtDFl3RSwq8R3oP8xTurEpEgEGgrUmNSx8C3qQYcI=; X-UUID: cea8e0db39b14872b768a720a4baa583-20201013 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1278656683; Tue, 13 Oct 2020 21:05:09 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Oct 2020 21:05:08 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 13 Oct 2020 21:05:07 +0800 From: Dongchun Zhu To: , , , , , , , , CC: , , , , , , , , Subject: [PATCH v15 0/2] media: i2c: Add support for OV02A10 sensor Date: Tue, 13 Oct 2020 21:05:01 +0800 Message-ID: <20201013130503.2412-1-dongchun.zhu@mediatek.com> X-Mailer: git-send-email 2.9.2 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, OminiVision OV02A10 is a 2-megapixel 10-bit RAW CMOS 1/5" sensor which has a single MIPI lane interface. This is a camera sensor using the I2C bus for control and the CSI-2 bus for data. The driver is implemented with V4L2 framework. - Async registered as a V4L2 sub-device. - As the first component of camera system including ISP pipeline. - A media entity providing one source pad in common and two for dual-cam. Also this driver supports following features: - Manual exposure and analog gain control support - Vertical blanking control support - Test pattern support - Media controller support - Runtime PM support - Support resolution: 1600x1200 at 30FPS Changes of v15 mainly address comments from Rob, Andy, Tomasz and Sakari. Compared to v14: - Fix imperfections in DT - Use dev_err_probe() API in probe - Use i2c_smbus_read_word_swapped() API to read 16-bit data. - Fix other review comments to improve readability. Please review. Thanks. Dongchun Zhu (2): media: dt-bindings: media: i2c: Document OV02A10 bindings media: i2c: Add OV02A10 image sensor driver .../bindings/media/i2c/ovti,ov02a10.yaml | 162 +++ MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 13 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/ov02a10.c | 1058 ++++++++++++++++++++ 5 files changed, 1242 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml create mode 100644 drivers/media/i2c/ov02a10.c