From patchwork Tue Apr 3 14:29:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 132751 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3879439ljb; Tue, 3 Apr 2018 07:29:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx48phOsGeQ9r34wr/VOcMOYavQt9GZhKXry5DnDPOFeGPpNoV7TtTRK2IABMG/qUp3f3WGJO X-Received: by 2002:a17:902:744b:: with SMTP id e11-v6mr14474528plt.351.1522765780012; Tue, 03 Apr 2018 07:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522765780; cv=none; d=google.com; s=arc-20160816; b=aurCTK40m8iHcLQ8NwEWZc/Ff2UbfFcFzrhzrDGiSI+XoYJfWovxaJvE51IxMI7zik Z4w5ZjamkqWan4dSAASZGYHufXfK1WpX9g01UCV9qLKCzvGVyoJMsmkOZVjw3h7TXfNx HiA/CVvsoOrbxpvnpo1YmKvFNdAXaykixqEbyQ/5cJ+TsZavLF1Y0WKwI6arsDoJCnDb 5/wNkR2DEzSq1UXn60OGX80xh29wa/y/bpE4+G21XAr5Ea3iXN6zlA1CKsr3q53ra639 24XDTrPNFQz8FD8YGrgbWGJR2i7GxFRoidfvW7d2qGWBqqNPdmTgOjecqclRVUq51c0s zT7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=eV41v3uvr5XfIc+Z0q2UH+PR+9AF96k1eCZbtjGQTaM=; b=v17zHGRq+CGACBH3LI2LYTk3d8MYwfzBtAT5cfI6kfj66fXnKcYbYhggP5xSYwoMAB QbLbADrCKdrzaJP8wNANLTwqSlcYQ7pA5GVZ3Dv+0Ed8Yk0TKcg9aEeA0Rw/H71rGAW3 bv3PcdG4jd68crOlym1UefWMvOpHeRmmob24TAuQfKs7AgrQyAA3P3PWXI327Z89xW/J 6AeGq7nb0qq9YWh4kPOL5Sg7Hkgn6GGvQdozeo18s/H47iC+SVejQegNHZAJPePI8gyD nIbJezG+gI9xYbfhehr2iXdzh4PN67FGHoI531Oo5pS92z4DAj1aS1EbkT+xoRAqF40g CRIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DVCHca3s; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si662603plp.327.2018.04.03.07.29.39; Tue, 03 Apr 2018 07:29:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DVCHca3s; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592AbeDCO3g (ORCPT + 29 others); Tue, 3 Apr 2018 10:29:36 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39696 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeDCO3f (ORCPT ); Tue, 3 Apr 2018 10:29:35 -0400 Received: by mail-wm0-f65.google.com with SMTP id f125so35609724wme.4 for ; Tue, 03 Apr 2018 07:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eV41v3uvr5XfIc+Z0q2UH+PR+9AF96k1eCZbtjGQTaM=; b=DVCHca3sYcnNLN4Wh72hFzmfKUSOaySLUlSP/x+djyeuFsZOeRMf4Wop6zWF/zkPmX CLc7RpUnP9Ik51kLNQUszBZEKp6WOCEFf6enP1yoVUZvm2RfGg3Wpr8DshFFWpKT2MQV KSlMJNrxyD7HbqJAIPd3qC4qe7H96CGFdTH7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eV41v3uvr5XfIc+Z0q2UH+PR+9AF96k1eCZbtjGQTaM=; b=Zky0QpC44zV7w68yFrdlmEYfkdVCVHsEil9enMAT0X0JMndwI03983WHK3Z3zVp8g8 UbCbHGqlz2zS/Wnc/gLez4CM1DG2Esbx7/Q/8Ee5zh+3tuNjzDsyx1Ptq23Hy5kEyzoJ nhMZlQUgRPWurEX3SJgpblJCnPp1FZJDyoXRJ4mcAJX8Me6B7K0byLyyJVvntaE5p0RP xuXFenALxjkTb4xwuDDI4vWxMrhjaYi+GBg5kR1vhSb5SAoN4Bn0rM0GJxSECOH1K8mR XIIAkkrkCMtXIDFWm8G008sohczhyxjhYg7KooVLyIwqXh4jBDFdbYCnrnLlUauCtXgv aL6A== X-Gm-Message-State: ALQs6tA5z0KxiO8cCxiXbDfXKfmp+HaSzD7/C9HdIF40+bH6e/mOt9Hp SHqwdiv7pKCmZjM1SHGXgddVSQ== X-Received: by 10.28.232.202 with SMTP id f71mr5098937wmi.136.1522765773974; Tue, 03 Apr 2018 07:29:33 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:fe64:a386:8845:a072]) by smtp.gmail.com with ESMTPSA id t130sm1099431wmt.0.2018.04.03.07.29.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 07:29:33 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ryan Harkin , Rui Miguel Silva Subject: [PATCH v4 0/2] media: Introduce Omnivision OV2680 driver Date: Tue, 3 Apr 2018 15:29:20 +0100 Message-Id: <20180403142922.20972-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add driver and bindings for the OV2680 2 megapixel CMOS 1/5" sensor, which has a single MIPI lane interface and output format of 10-bit Raw RGB. Features supported are described in PATCH 2/2. v3->v4: Sakari Ailus: - remove auto_{exposure|gain}_enable and direct call the set functions - add separe control sets to gain and exposure - fix number of controls allocated - check the exact frequency that it is supported v2->v3: Rob Herring: - add Reviewed-by tag to dts PATCH 1/1 Sakari Ailus: - align register values with bracket - redone the {write|read}_reg i2c functions - add bayer order handling with flip and mirror controls - fix error path in probe release resources - remove i2c_device_id and use probe_new Myself: - remove ; at the end of macros v1->v2: Fabio Estevam: - s/OV5640/OV2680 in PATCH 1/2 changelog Sakari Ailus: - add description on endpoint properties in bindings - add single endpoint in bindings - drop OF dependency - cleanup includes - fix case in Color Bars - remove frame rate selection - 8/16/24 bit register access in the same transaction - merge _reset and _soft_reset to _enable and rename it to power_on - _gain_set use only the gain value (drop & 0x7ff) - _gain_get remove the (0x377) - single write/read at _exposure_set/get use write_reg24/read_reg24 - move mode_set_direct to _mode_set - _mode_set set auto exposure/gain based on ctrl value - s_frame_interval equal to g_frame_interval - use closest match from: v4l: common: Add a function to obtain best size from a list - check v4l2_ctrl_new_std return in _init - fix gain manual value in auto_cluster Cheers, Rui Rui Miguel Silva (2): media: ov2680: dt: Add bindings for OV2680 media: ov2680: Add Omnivision OV2680 sensor driver .../devicetree/bindings/media/i2c/ov2680.txt | 40 + drivers/media/i2c/Kconfig | 12 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/ov2680.c | 1111 ++++++++++++++++++++ 4 files changed, 1164 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2680.txt create mode 100644 drivers/media/i2c/ov2680.c -- 2.16.3