From patchwork Thu Apr 19 11:00:55 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: 133753 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp492487ljf; Thu, 19 Apr 2018 04:01:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/5ovWKV5n6odAncpWbVe17yOABlx3X9pzBFUJk/dR6lnZiQkHRtfOb964xEHAydn0kZwu X-Received: by 10.101.93.11 with SMTP id e11mr4736160pgr.359.1524135678045; Thu, 19 Apr 2018 04:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524135678; cv=none; d=google.com; s=arc-20160816; b=AGTMESDZ5G/Ve5tNFpBekPQO+SVnPC2Z8CmBSfmri+FnOnuen0kz3D0nGuG/Bu67cP l52tNlQz2K10NHNBWJeGCcSQqDpoizbLiWqajMAfqgOfzdHnqflRljsQWJJCTS7heoPF ObZwX/JhYsqh1u3sqwZCwRpxw/2i7gxOtSPNkFiKc5TyHbh4N3lEko74j58IjRqA7GgQ uCRz2K41F8Zvm60NuO9NsYAeClmdKsD065ItPI7lyzTebuIe/kQRXRlAvbyuaOOF0C9s CRCMP3KOTN9cjhhid5mL742UnlTDX6/hMQcG/oLZrQEDDLi/VOLlzwecr8SZzlEifJDh xU8w== 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=hTpzdZXf1LjH9/LR6PhLWOdR+Souq6w1Evs8zJQMZlI=; b=fW5/TpHihKtER7BTTsb5+4u7tSNcUyaUhEPxjpcQmOX6sXkF4Kcb9cRyBqxsDImxsn r4YcRpIQgobSIIwesLVWyk5gnchAHu0sfqvxb6+d/H/HnLmWXSL3BF35c9WZIXfYPmDt axXDkmj85+lfQ2bYagzbOYmvjEBowKOuvKu8b//6V3c3656T2FY8kBrWs/tR7Vd0q5/0 ET/9HbKdZlOvJO+rUY2KL3k5pax4opMOvDhBHlWostaGXEoITAC3T0OaKOV90bJI1A07 J/N/OHbcIjFZOG7CUTYuotbbJvOc94+h6Tlf5Za1jPKD4mGO0YgY6kD5fr/bShyNGCR6 73TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NU3VZhoV; 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 o1-v6si3030842plb.220.2018.04.19.04.01.17; Thu, 19 Apr 2018 04:01:18 -0700 (PDT) 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=NU3VZhoV; 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 S1752939AbeDSLBO (ORCPT + 29 others); Thu, 19 Apr 2018 07:01:14 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42282 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895AbeDSLBJ (ORCPT ); Thu, 19 Apr 2018 07:01:09 -0400 Received: by mail-wr0-f193.google.com with SMTP id s18-v6so12834005wrg.9 for ; Thu, 19 Apr 2018 04:01:09 -0700 (PDT) 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=hTpzdZXf1LjH9/LR6PhLWOdR+Souq6w1Evs8zJQMZlI=; b=NU3VZhoVUCq8iHPsCjyD8VS1uH7pIEqjc07Ev3NloEnOSp4ahz8oGsPzvxqSeVAbFw JnmUQgEj5N9fJ9h9SHE6G6clPWcfO8Phgp9Qbja+4OUg+Twbo17zolvmAd5SUSYRyLoR cC/1eMJShfbUx9aQsf4KNvvAI5FBTcTIp9A60= 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=hTpzdZXf1LjH9/LR6PhLWOdR+Souq6w1Evs8zJQMZlI=; b=SczH75rApvCYbNxTWK7ux/WhOrdxCE/u5zdIZtDdmuy4GKS1aMKk2u3C0uP4jNO0nW tUODYNf1yVaUsPz51ZxWnLrdg6K0Y74PqRH+yqsxUY++1oT91dZSU5a2ChzRWHdikwBP w/md8z4zKd0xlgvMZG9NuDnftnasWfa0G9ymkz+XMuuoXwMds6OcqgUN3lKpCroqnnZX 3/Wv37/QisGG5uAHFHwS1xF9js/bfGhVMrHly20/lO255V6BKhQB/UWVMKnw5q2JEgP/ rEeq76pfzRTzIpmFw4X/njxW3pdqn42PhNxLfdqPXtnN3w9YUBz9PUqjmVY2+RYWxXVI 6lHA== X-Gm-Message-State: ALQs6tBx/fz2MgQ/nHlEhX6IBh29UYTaVKY5++RQY9bQZ0tg03FPGKJL OUKduCxkD45CKupb56hCs9ebZzTAJe8= X-Received: by 2002:adf:b08e:: with SMTP id i14-v6mr4695756wra.9.1524135668694; Thu, 19 Apr 2018 04:01:08 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id p35-v6sm5483128wrb.12.2018.04.19.04.01.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 04:01:07 -0700 (PDT) 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 v5 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Thu, 19 Apr 2018 12:00:55 +0100 Message-Id: <20180419110056.10342-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419110056.10342-1-rui.silva@linaro.org> References: <20180419110056.10342-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. Reviewed-by: Rob Herring 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.17.0 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>; + }; + }; + }; +};