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: 130001 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1665464edc; Wed, 28 Feb 2018 07:28:03 -0800 (PST) X-Google-Smtp-Source: AH8x227k4xCl2fBuJlNlBZyg79ubhDqrcWwHUCq4suu8b5hheYSjjl0/zbzQ672pOikMPafnhfh9 X-Received: by 10.98.62.196 with SMTP id y65mr17873882pfj.24.1519831683596; Wed, 28 Feb 2018 07:28:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519831683; cv=none; d=google.com; s=arc-20160816; b=NmsBiEozcPdj0yARyi9pwnuc1FQMiaSXh7cfG07uRm3qntT52UAhOVvhFHetvOxjiZ ERkXzwvTcgIZnMZKA/lSNFyhy6FlQdFpPQJo3B+qlaOow9TRrczx/yVVZmjENt2cgJ46 N8xvrVW7psXpUn7e/ml6DTZBVBV81T4+7h1k3TxCjrQgwap3v2X/6LZsJnD8ycgq2DqU ZGEbaqSEUe7xqO38U7zJzvoQZ+cw5fgbIW5g4CNGDVpJKdqlE42bFpR9bej/4N2hiUo9 i4xVQ8bAwvPQBGlW/YhKqpqBj1GUdW0Fo7c3nZG8HYaEfQqpM4oY+z+XpeNql/2BtVLL sx1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=x+HaKw4Kihr46hZ7UN0WABSUsmPxyxJnazxt70LkaCU=; b=Se/eWaKf9k0zX34Xj9aldEdnyGJw8xWRwKql8VnecFzUBBoz+3UZpuS+8xk0AoNs5b JjlL6F5RScZwK7vR3s8P/mkbtdatDcch/022Q6Eydjf8AqcVSp5RBWoW1KXkO3UJxrEJ yrvXxyvUKqYwYgJSD3gjNs91BO3Ag+ZUetw+F2Z/j8qNWadGJhtEJ2z11iKf+x8yY0kp pK+DkpKa92H+gHN0SxeM51U9DqKsC6DF7fHYFBLa9edpgfCPPx6ONisjZiuDIeuSSiSI RA+AGIQhUwIB2Tkt81otqSmyHmFqT5Ozpc9JjfgVK2TYCdvgyDhPN6x7OuPJ2cDLb7jV ZiZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WkWL5yp7; 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.28.03; Wed, 28 Feb 2018 07:28:03 -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=WkWL5yp7; 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 S933065AbeB1P17 (ORCPT + 28 others); Wed, 28 Feb 2018 10:27:59 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34382 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932742AbeB1P1u (ORCPT ); Wed, 28 Feb 2018 10:27:50 -0500 Received: by mail-wm0-f65.google.com with SMTP id a20so26782178wmd.1 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=T5uTi4KwYwBlSv5gSowjRBY4ZT13BucXmo7Fw+bkLthbdVpsbqzPaSgER5TnRxdciH lhgWtNEzRKvo2/0YnzgXvpgpqWXOIJ5C7YOznI33H0DbXQxU+StGIYMP4NXiHiF7IGn4 Rf9GD6PK7Jr0vu+RCL8iKEarigBUO0VJNOvrlLcaxWr9sutyHMoFEIjGyf9k9ldjyTJ+ fg+21c+Z8NZgat7/ggdaU7PAS8Lr2/cLCeRj1473Jd3JWX3vk75rvmeUvqBgtOJOVLsL /xxvufH4kL09kisqjLbhO3INfpV1p64oP2qhbro836vVqltQSYWVlNUBSxFej1qjmz+1 peqA== X-Gm-Message-State: APf1xPBRcDbhSwW5XEDA1fyEwHw2CSIEEWUmMivUlusIs7AE9r38fKU3 2csWgyjyGBctFVeGONI6TTxP7A== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding documentation for the OV2680 camera sensor. CC: devicetree@vger.kernel.org Signed-off-by: Rui Miguel Silva --- .../devicetree/bindings/media/i2c/ov2680.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2680.txt -- 2.16.2 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>; + }; + }; + }; +};