From patchwork Mon Aug 10 21:55:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11708201 X-Patchwork-Delegate: kieran@bingham.xyz 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 6190E13A4 for ; Mon, 10 Aug 2020 21:52:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BF1D2078B for ; Mon, 10 Aug 2020 21:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgHJVwU (ORCPT ); Mon, 10 Aug 2020 17:52:20 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52953 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbgHJVwU (ORCPT ); Mon, 10 Aug 2020 17:52:20 -0400 X-Originating-IP: 82.52.18.94 Received: from uno.homenet.telecomitalia.it (host-82-52-18-94.retail.telecomitalia.it [82.52.18.94]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id E41234000A; Mon, 10 Aug 2020 21:52:14 +0000 (UTC) From: Jacopo Mondi To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: Jacopo Mondi , mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, dave.stevenson@raspberrypi.com, linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, roman.kovalivskyi@globallogic.com, Rob Herring Subject: [PATCH v4 1/4] dt-bindings: media: ov5647: Convert to json-schema Date: Mon, 10 Aug 2020 23:55:40 +0200 Message-Id: <20200810215543.113206-2-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200810215543.113206-1-jacopo+renesas@jmondi.org> References: <20200810215543.113206-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Convert the ov5647 image sensor bindings to DT schema and add the file entry to MAINTAINERS. Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring Signed-off-by: Jacopo Mondi --- .../devicetree/bindings/media/i2c/ov5647.txt | 35 --------- .../devicetree/bindings/media/i2c/ov5647.yaml | 77 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 78 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.yaml -- 2.27.0 diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.txt b/Documentation/devicetree/bindings/media/i2c/ov5647.txt deleted file mode 100644 index 22e44945b661..000000000000 --- a/Documentation/devicetree/bindings/media/i2c/ov5647.txt +++ /dev/null @@ -1,35 +0,0 @@ -Omnivision OV5647 raw image sensor ---------------------------------- - -OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data interfaces -and CCI (I2C compatible) control bus. - -Required properties: - -- compatible : "ovti,ov5647". -- reg : I2C slave address of the sensor. -- clocks : Reference to the xclk clock. - -The common video interfaces bindings (see video-interfaces.txt) should be -used to specify link to the image data receiver. The OV5647 device -node should contain one 'port' child node with an 'endpoint' subnode. - -Endpoint node mandatory properties: - -- remote-endpoint: A phandle to the bus receiver's endpoint node. - -Example: - - i2c@2000 { - ... - ov: camera@36 { - compatible = "ovti,ov5647"; - reg = <0x36>; - clocks = <&camera_clk>; - port { - camera_1: endpoint { - remote-endpoint = <&csi1_ep1>; - }; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml new file mode 100644 index 000000000000..1c1d94e805d6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ov5647.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OV5647 raw image sensor + +maintainers: + - Dave Stevenson + - Jacopo Mondi + +description: |- + The OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data + interfaces and CCI (I2C compatible) control bus. + +properties: + compatible: + const: ovti,ov5647 + + reg: + description: I2C device address. + maxItems: 1 + + clocks: + description: Reference to the xclk clock. + maxItems: 1 + + port: + type: object + description: |- + Should contain one endpoint sub-node used to model connection to the + video receiver according to the specification defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + + properties: + endpoint: + type: object + + properties: + remote-endpoint: + description: |- + phandle to the video receiver input port. + + additionalProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - port + +additionalProperties: false + +examples: + - | + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ov5647: camera@36 { + compatible = "ovti,ov5647"; + reg = <0x36>; + clocks = <&camera_clk>; + + port { + camera_out: endpoint { + remote-endpoint = <&csi1_ep1>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 5392f00cec46..21e6c3120152 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12629,6 +12629,7 @@ M: Luis Oliveira L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media_tree.git +F: Documentation/devicetree/bindings/media/i2c/ov5647.yaml F: drivers/media/i2c/ov5647.c OMNIVISION OV5670 SENSOR DRIVER From patchwork Mon Aug 10 21:55:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11708203 X-Patchwork-Delegate: kieran@bingham.xyz 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 61A98739 for ; Mon, 10 Aug 2020 21:52:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A3ED2073E for ; Mon, 10 Aug 2020 21:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbgHJVwY (ORCPT ); Mon, 10 Aug 2020 17:52:24 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45735 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbgHJVwX (ORCPT ); Mon, 10 Aug 2020 17:52:23 -0400 X-Originating-IP: 82.52.18.94 Received: from uno.homenet.telecomitalia.it (host-82-52-18-94.retail.telecomitalia.it [82.52.18.94]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 6FADC40007; Mon, 10 Aug 2020 21:52:18 +0000 (UTC) From: Jacopo Mondi To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: Jacopo Mondi , mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, dave.stevenson@raspberrypi.com, linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, roman.kovalivskyi@globallogic.com, Jacopo Mondi Subject: [PATCH v4 2/4] dt-bindings: media: ov5647: Document pwdn-gpios Date: Mon, 10 Aug 2020 23:55:41 +0200 Message-Id: <20200810215543.113206-3-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200810215543.113206-1-jacopo+renesas@jmondi.org> References: <20200810215543.113206-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Jacopo Mondi Document in dt-schema bindings for the ov5647 sensor the optional 'pwdn-gpios' property. Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/i2c/ov5647.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml index 1c1d94e805d6..9f76897f52e3 100644 --- a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml @@ -26,6 +26,10 @@ properties: description: Reference to the xclk clock. maxItems: 1 + pwdn-gpios: + description: Reference to the GPIO connected to the pwdn pin. Active high. + maxItems: 1 + port: type: object description: |- @@ -56,6 +60,7 @@ additionalProperties: false examples: - | + #include i2c { #address-cells = <1>; @@ -65,6 +70,7 @@ examples: compatible = "ovti,ov5647"; reg = <0x36>; clocks = <&camera_clk>; + pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>; port { camera_out: endpoint { From patchwork Mon Aug 10 21:55:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11708207 X-Patchwork-Delegate: kieran@bingham.xyz 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 4746F138C for ; Mon, 10 Aug 2020 21:52:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 359BC206B5 for ; Mon, 10 Aug 2020 21:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726679AbgHJVw2 (ORCPT ); Mon, 10 Aug 2020 17:52:28 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39111 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbgHJVw1 (ORCPT ); Mon, 10 Aug 2020 17:52:27 -0400 X-Originating-IP: 82.52.18.94 Received: from uno.homenet.telecomitalia.it (host-82-52-18-94.retail.telecomitalia.it [82.52.18.94]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 4CD1F40004; Mon, 10 Aug 2020 21:52:22 +0000 (UTC) From: Jacopo Mondi To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: Jacopo Mondi , mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, dave.stevenson@raspberrypi.com, linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, roman.kovalivskyi@globallogic.com, Jacopo Mondi Subject: [PATCH v4 3/4] dt-bindings: media: ov5647: Document clock-noncontinuous Date: Mon, 10 Aug 2020 23:55:42 +0200 Message-Id: <20200810215543.113206-4-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200810215543.113206-1-jacopo+renesas@jmondi.org> References: <20200810215543.113206-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Jacopo Mondi Document the optional clock-noncontinuous endpoint property that allows enabling MIPI CSI-2 non-continuous clock operations. Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/i2c/ov5647.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml index 9f76897f52e3..280c62afae13 100644 --- a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml @@ -46,6 +46,11 @@ properties: description: |- phandle to the video receiver input port. + clock-noncontinuous: + type: boolean + description: |- + Set to true to allow MIPI CSI-2 non-continuous clock operations. + additionalProperties: false additionalProperties: false From patchwork Mon Aug 10 21:55:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11708211 X-Patchwork-Delegate: kieran@bingham.xyz 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 72DEC739 for ; Mon, 10 Aug 2020 21:52:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6392320734 for ; Mon, 10 Aug 2020 21:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726700AbgHJVwb (ORCPT ); Mon, 10 Aug 2020 17:52:31 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37213 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbgHJVwa (ORCPT ); Mon, 10 Aug 2020 17:52:30 -0400 X-Originating-IP: 82.52.18.94 Received: from uno.homenet.telecomitalia.it (host-82-52-18-94.retail.telecomitalia.it [82.52.18.94]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id E8FA640008; Mon, 10 Aug 2020 21:52:25 +0000 (UTC) From: Jacopo Mondi To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: Jacopo Mondi , mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, dave.stevenson@raspberrypi.com, linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, roman.kovalivskyi@globallogic.com Subject: [PATCH v4 4/4] media: MAINTAINERS: ov5647: Replace maintainer Date: Mon, 10 Aug 2020 23:55:43 +0200 Message-Id: <20200810215543.113206-5-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200810215543.113206-1-jacopo+renesas@jmondi.org> References: <20200810215543.113206-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Since the current maintainer email address bounces back, replace the entry and make myself and Dave Stevenson maintainers of the driver. Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi Acked-by: Dave Stevenson --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 21e6c3120152..6a9d87282578 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12625,7 +12625,8 @@ T: git git://linuxtv.org/media_tree.git F: drivers/media/i2c/ov5640.c OMNIVISION OV5647 SENSOR DRIVER -M: Luis Oliveira +M: Dave Stevenson +M: Jacopo Mondi L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media_tree.git