From patchwork Wed Feb 28 15:27:21 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: 129998 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1665277edc; Wed, 28 Feb 2018 07:27:53 -0800 (PST) X-Google-Smtp-Source: AH8x225kDqEQYzCLyWtJfzhsW2GgmCaBal0thvD7IZraQGOAiDjn6vJr/vEByG9ltcnRshgMTcJR X-Received: by 2002:a17:902:bcc6:: with SMTP id o6-v6mr18507084pls.16.1519831673735; Wed, 28 Feb 2018 07:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519831673; cv=none; d=google.com; s=arc-20160816; b=hYYR7g/r+mYFW+6lTkqZir3JIrqpoehnpSR3gqjD22v5DA3K7nsobFwGR76xgA5fNS XeV52GuuS2LB6A0SO9RgqpKOdoqgSJibFWOb5+Bj2lhE5U4lig6NTro7lUbiLW8XGvoP jLkmwgHmia9aqsDkX61SBQZc6NPoKJcBv8T8nr/Nk3vLSvgYVqsN4j4gbdHJL3Hwu2lD f9JCIku/ObNxuwy9sAWF72hol4IQkfgu8eJO9hDk9XCFfdcB6CKrZHhdE8S1Ch0h4x/0 Nztv4aEdSDIAITSbHOvi4DFHdqy4QdT8HTgaRGSWl7PuRnb9igGOc1mNjjWIiPfHCtET 0UDQ== 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=u5ykyyvExYUFZ7Z1BeNAxW2zNW49/P9l1RC6fS7CXTs=; b=kTgAMioUmL2Gf7CHrxTNihlJckkdOEGcY0xzWfBRIFg/f7xWKxcgBjHnYbL89l8xBh IEPzqvOxv5101XABb/HhNXVtsQj/3sZSxQbFqfMNqHGRzyWD+xZi5L22ksfHjtnJR2+C cVC7uOIG8t7u1Y5F583VGQvOQP3lJsUt2x2CsSsNyux3rNnBfJN9A7IXAHtGsWNi+Cp7 Ohdhpg/RmKYlZa8QzPVTrPwz9JThCZFoES85odkigo5ayrcyCydLCsmqserAQmMIbd7B mP1fvwZkgFhyKH3FjS0M1Jrk9XI/iJq7SLNExuJBUGCZ7AuE9jnbZszYQ/MNVBFha8zG qsMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UfhejjEY; 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 a187si1141903pge.689.2018.02.28.07.27.53; Wed, 28 Feb 2018 07:27:53 -0800 (PST) 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=UfhejjEY; 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 S933019AbeB1P1t (ORCPT + 28 others); Wed, 28 Feb 2018 10:27:49 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:37982 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932742AbeB1P1p (ORCPT ); Wed, 28 Feb 2018 10:27:45 -0500 Received: by mail-wr0-f195.google.com with SMTP id n7so2844781wrn.5 for ; Wed, 28 Feb 2018 07:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=u5ykyyvExYUFZ7Z1BeNAxW2zNW49/P9l1RC6fS7CXTs=; b=UfhejjEYu7EiOkuoI/nnKKVqLw2cm3VAzqAHxVEGNbAXqMfo5Bmt8eid3hloCcEHrO X/Zuqd1sJ6BKxI/6Hv6p8W8V74uexHpSs2pbJGGgmxkZNAjnC9NMVTtmFqMVV9WPl62u 52jIOFcQ0Qe/Ni4nAmvjyTCBv3iYiTFkGQ9+8= 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=u5ykyyvExYUFZ7Z1BeNAxW2zNW49/P9l1RC6fS7CXTs=; b=g8zirMU0bWMLHu6/JCc/mA50bPEQ46guif0kWK/3OyuqIAzeqHfCTbLlb4ROILceaK nq5gb7U8a4U6fxyLdJSLPHUEJUlR1Eq65qZY6PVjrU0S27Uxiqud8wmyz8bVGKy6KxrS u5/r2WKxUo9IAcHzPvA2S5wPaKp+8VnwolR0fWjW7vojlWDK3HHdI+eWGmxxqveYeJdo dHSw/7MSUsDz8kFI1/ZoCc5xzJJ/qGghVkasCLp+G6BskwTV4cMGeGmZxyNMuHyp9lTe 5iwoKO3bEMjC9goJWTBN9B7sRmJcvaViWxxaWdeFVdhpyWgzdQlnBkLVqyGLUYHokvqT FrVg== X-Gm-Message-State: APf1xPD0gyvK8a3wvQwQ/stcR28tuyp9H92nbttrU3FZnuuDdEIZ3VK3 UXjkY7VRduM3heu47i+QoaCBKg== X-Received: by 10.223.139.144 with SMTP id o16mr12665120wra.279.1519831664055; Wed, 28 Feb 2018 07:27:44 -0800 (PST) Received: from localhost.localdomain ([2001:8a0:6606:9100:fe64:a386:8845:a072]) by smtp.gmail.com with ESMTPSA id y8sm2015391wmb.48.2018.02.28.07.27.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 07:27:43 -0800 (PST) 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 v2 0/2] media: Introduce Omnivision OV2680 driver Date: Wed, 28 Feb 2018 15:27:21 +0000 Message-Id: <20180228152723.26392-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.2 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. 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 | 1094 ++++++++++++++++++++ 4 files changed, 1147 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2680.txt create mode 100644 drivers/media/i2c/ov2680.c -- 2.16.2