From patchwork Wed Feb 28 15:27:22 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: 10248037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB2D660384 for ; Wed, 28 Feb 2018 15:30:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCFE828DA1 for ; Wed, 28 Feb 2018 15:30:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1B0028D9F; Wed, 28 Feb 2018 15:30:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DD0A28D9A for ; Wed, 28 Feb 2018 15:30:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933030AbeB1P1z (ORCPT ); Wed, 28 Feb 2018 10:27:55 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:32825 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933020AbeB1P1u (ORCPT ); Wed, 28 Feb 2018 10:27:50 -0500 Received: by mail-wm0-f67.google.com with SMTP id s206so26797190wme.0 for ; Wed, 28 Feb 2018 07:27:50 -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:in-reply-to:references; bh=x+HaKw4Kihr46hZ7UN0WABSUsmPxyxJnazxt70LkaCU=; b=WkWL5yp7FFZn+Nb7RgZkOdQrbXBEm7z3idA/AUjiHVvOxPo9RSkZJ+TP7rfCctZSIZ GcfQYvkgzx4OiaBAhQf99tVcMate66ppSz7xfrhOdMC2RanPjFzuYWejbWI0/y1+ls8I HW9bnMInWVqbqDdX3Lno7VT7nO9QlF0ftKeRE= 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:in-reply-to :references; bh=x+HaKw4Kihr46hZ7UN0WABSUsmPxyxJnazxt70LkaCU=; b=qqieKAj620R73vyiMZ9nivahXxoo9AUYFEZTffWCrOLjmCyBHsyGsnSwxf2DuZkQ4R 72oge0QNqmZrF4q82mvvnl4mwwu4X5UZGz4KrxraCpYk5pW6OYlPtJIBDOk9XXWRxmJt T74oiRMT7zkFln5hJdTuwCxvpGNZkqWxZkEWVvAc35SNDMKKF4JTutt97up/fuSdyQn5 5R7KGoVqIiiuJ3ukYE72V2MjYx7MmRgsBuhcqz878jruPnUYX2YUiHByQNir55uaQSPH 2vBxc0dlqlNe8W7oIRkVzLZcBbVbXubZU/FEOeVIk7m2zwhSQ6WFQRJZOAHeaNtul9CA Aa+Q== X-Gm-Message-State: APf1xPCDOCdCYyvxnmC7WiNqWyWmXILx8QJHr5Elq+l0HgG+u8zS3htw WKsvFkXKR2SSqfZxaKi0efhHkQ== X-Google-Smtp-Source: AG47ELsZOujh/wf50JFnWKQcw+hejpdsq1egL59QME4TXV/Ko7mekTvBaXC+thiwD0wL+pjvdxcNDA== X-Received: by 10.28.34.3 with SMTP id i3mr1987998wmi.121.1519831669620; Wed, 28 Feb 2018 07:27:49 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 07:27:48 -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 , devicetree@vger.kernel.org Subject: [PATCH v2 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Wed, 28 Feb 2018 15:27:22 +0000 Message-Id: <20180228152723.26392-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180228152723.26392-1-rui.silva@linaro.org> References: <20180228152723.26392-1-rui.silva@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device tree binding documentation for the OV2680 camera sensor. CC: devicetree@vger.kernel.org Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring --- .../devicetree/bindings/media/i2c/ov2680.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2680.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov2680.txt b/Documentation/devicetree/bindings/media/i2c/ov2680.txt new file mode 100644 index 000000000000..0e29f1a113c0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov2680.txt @@ -0,0 +1,40 @@ +* Omnivision OV2680 MIPI CSI-2 sensor + +Required Properties: +- compatible: should be "ovti,ov2680". +- clocks: reference to the xvclk input clock. +- clock-names: should be "xvclk". + +Optional Properties: +- powerdown-gpios: reference to the GPIO connected to the powerdown pin, + if any. This is an active high signal to the OV2680. + +The device node must contain one 'port' child node for its digital output +video port, and this port must have a single endpoint in accordance with + the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Endpoint node required properties for CSI-2 connection are: +- remote-endpoint: a phandle to the bus receiver's endpoint node. +- clock-lanes: should be set to <0> (clock lane on hardware lane 0). +- data-lanes: should be set to <1> (one CSI-2 lane supported). + +Example: + +&i2c2 { + ov2680: camera-sensor@36 { + compatible = "ovti,ov2680"; + reg = <0x36>; + clocks = <&osc>; + clock-names = "xvclk"; + powerdown-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + + port { + ov2680_mipi_ep: endpoint { + remote-endpoint = <&mipi_sensor_ep>; + clock-lanes = <0>; + data-lanes = <1>; + }; + }; + }; +};