From patchwork Tue May 19 01:16:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kovalivskyi X-Patchwork-Id: 11556701 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 014E7618 for ; Tue, 19 May 2020 01:16:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA526207D8 for ; Tue, 19 May 2020 01:16:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=globallogic.com header.i=@globallogic.com header.b="eO1MHL1q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgESBQq (ORCPT ); Mon, 18 May 2020 21:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726720AbgESBQp (ORCPT ); Mon, 18 May 2020 21:16:45 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FFD1C061A0C for ; Mon, 18 May 2020 18:16:45 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id g1so11888619ljk.7 for ; Mon, 18 May 2020 18:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=from:to:cc:subject:date:message-id; bh=Xn5wFnMFGQRN2JrwyG8dxbNaVxUmAM516TWUFCg/W2I=; b=eO1MHL1qyescskdPU67V3puqvAaIJ3hQ0IuVAZRGZ6G4uQNsgZWV1Y4u52hnCGFx+7 Al2xXlkx5mlU74XWek6k3qA9pZTz6sq3iYKdH//4bth9WJc50gDYBtZVTskyNEGbg8zi SCLv7IPM2pAadEgkUO/2wCkVrkBcX4Jd0CFXO+2l3xExFCZeAtiDcbQIlVrE9owf63S9 5yKxy0no1peIFjk/E1rDyTU21U/xw4ByDaImJQ6IP3HOe8LlXbWap/X40QiNQ/ar0yl1 +YVLGymHUicv+iWc3IyfaVgCr16du/3uAkSc3qM4UzvguGyMH3X/Kb2DcmVVH6xhxU2Q vb1Q== 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=Xn5wFnMFGQRN2JrwyG8dxbNaVxUmAM516TWUFCg/W2I=; b=Wud+KEIxPcTtxvRO/7afLvt/xZfXSbDirjB1fLegNOM3Enj2te7ISpOQLp+0Ql6GB0 aVPe7n0bHajDA6OMwG5JYeqtvutvoITxlSJTXQU5lpt0KtJTp1jn7/ubc2t+n0q52/Fu ZMG9mxbN/WwY0XcfLO1UvnOwWRm8zQ0d12hvxiAHz3G6QELVR75LGRoiXD8avrGow5NO aVwbzzy8/ySVlZKPG7JqLbgjysqtGyPEWHGZotXJMIluFVg0najSHc17bCEjQt7DLvkO ZMDxVG6yxJoMWlOK5+UBWsdG5UUgd3V7bUf4PM5rgM9rU7QW14LFa2I2FDsm9k+GSR9e Tryg== X-Gm-Message-State: AOAM531vv9mYBzJsHuNE8MrcRyFUtxxwdiM4s00XtvDTMHJmWmGrMxPs IqDLk6YE+uM/B6N7ZLp8vv3ptA== X-Google-Smtp-Source: ABdhPJx/741/56BM68xh9y2nZL++XdhisKWGZlXkAWubLodSM7ew4ttbVJtaVvVr+Ykb1aQjtDdR+g== X-Received: by 2002:a05:651c:1103:: with SMTP id d3mr11952050ljo.38.1589851003890; Mon, 18 May 2020 18:16:43 -0700 (PDT) Received: from localhost.localdomain ([159.224.5.60]) by smtp.googlemail.com with ESMTPSA id i8sm4764244lfl.72.2020.05.18.18.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 18:16:43 -0700 (PDT) From: Roman Kovalivskyi To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Luis Oliveira , =?utf-8?q?Niklas_S=C3=B6derlund?= , Jacopo Mondi , Michael Rodin , Mauro Carvalho Chehab , Sakari Ailus , Hugues Fruchet , Maxime Ripard , Adam Ford , Todor Tomov , Suresh Udipi , Andrew Gabbasov , Eugeniu Rosca , Dave Stevenson , Roman Kovalivskyi Subject: [PATCH v2 0/6] ov5647 driver improvement Date: Tue, 19 May 2020 04:16:15 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Driver for ov5647 camera sensor lacks some important functionality, such as ability to query device format and resolution or operations with power down mode. Patches from Raspberry kernel source tree[1] fixes those issues and improves quality of mentioned driver. Changes since v1 [2]: * Added DT bindings documentation for PWDN GPIO and non-continuous clock mode * Patch 2: "media: ov5647: Add support for PWDN GPIO." * Replaced msleep with usleep_range * Patch 3: "media: ov5647: Add support for non-continuous clock mode" * Added check if bus type is correct one * Replaced storing of all flags to storing whether clock is continuous * Added of_node_put(np) in case if v4l2_fwnode_endpoint_parse fails [1] - https://github.com/raspberrypi/linux [2] - https://lore.kernel.org/patchwork/cover/1223179/ Dave Stevenson (5): media: ov5647: Add set_fmt and get_fmt calls. media: ov5647: Add support for PWDN GPIO. media: ov5647: Add support for non-continuous clock mode media: ov5647: Use gpiod_set_value_cansleep media: dt-bindings: ov5647: Add property for PWDN control Roman Kovalivskyi (1): media: dt-bindings: ov5647: Add property for non-continuous clock .../devicetree/bindings/media/i2c/ov5647.txt | 7 ++ drivers/media/i2c/ov5647.c | 77 ++++++++++++++++++- 2 files changed, 80 insertions(+), 4 deletions(-)