Received: by 10.213.65.68 with SMTP id h4csp3587946imn; Tue, 3 Apr 2018 07:32:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Q82ACRxgyZgXd+xxnnLfz11O1lnqX+iR4586OpyG1cYji0ILuyr0SZP/cjsiUWHY9Yjos X-Received: by 10.99.119.129 with SMTP id s123mr9243120pgc.137.1522765942070; Tue, 03 Apr 2018 07:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522765942; cv=none; d=google.com; s=arc-20160816; b=K4m0jE6oYW5kJjV5H2fzN7XsUhMpHTzVNPWRcHyRG+4tF0fAGFGPghKTQvojYnuoDE rqCW/Zq2tIMPu9Iur7+/k1b20MrpDst6xpBlZ0Cv9IyyXWLRvme7WOLeHlSa2CpLVgbb 3nYNol+clacbS1pAGTiAt1RhbO2sMOTwEVs3YiPyY/FSVMp/8JbIG4DSzgTpn8qBju8q MJS9OTfyk69qY6QE9KUzEkRc6akznWFC84qmo4Yo7UBBJM81LgRNnPrg3ITeXlAR1Fy2 4c+rmSB1HkuaxWRRtCy+WIMhSg62fYQzLglP4v/FEKl1tsv79WETcJ7UMevXecFT2MOQ Gr+Q== 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=nuPBJjzVvVo9eZSUfWwGG7H+WgejbPC18v4ZkAOW+YU=; b=i8tBs6g/9GbxgsI4U0MW8R26rZ0XlICV/BShGbhb9iM0XAOwdO/PHPdhrejSKvtRpg 4tGz/9xXtFPUZIeGCucuSu7SIy/s6GhypJ/8VrYkPcfTXxIJSn9lPdOqfZVIPd8gNI4J wAHvgZP3Ms5m3k68klxz8kX4oZx9wzSrp3qQOhwApwyE9c+f44vZjjNDZYgXUHNHEuor xsQqAl9BKGfbShIStu0w3jus7YdoaK/ufwoBP2F+DxF4wwCZXuV+SNZ9XZp1YL2MXze6 Rvqdy70u5aoj2XLBjWtlNEenD/4MOMdOdx6A03Sp8p5Jqlw7bN5+E9Y5PQnUO6Q0YmKL 6svg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MgUhEoSW; 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 f59-v6si698292plf.38.2018.04.03.07.32.08; Tue, 03 Apr 2018 07:32:22 -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=MgUhEoSW; 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 S1751713AbeDCO3l (ORCPT + 99 others); Tue, 3 Apr 2018 10:29:41 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41745 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbeDCO3h (ORCPT ); Tue, 3 Apr 2018 10:29:37 -0400 Received: by mail-wr0-f195.google.com with SMTP id s12so8339652wrc.8 for ; Tue, 03 Apr 2018 07:29:37 -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=nuPBJjzVvVo9eZSUfWwGG7H+WgejbPC18v4ZkAOW+YU=; b=MgUhEoSW9uLeQLPLot5xFib8fmy7n4+6qETnKa+NM5bUBZHtw3/QLjVaILfj8gSRpI WbBQTqCsNo2npKzkhSn8I+MUCflyEdTpXh3VwUtYPugIB3xNvqtml/+eY0zt4waKOBOU nPWuBfv0TTCfBqk1N13zhKUp9EsvBAeyAJtRo= 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=nuPBJjzVvVo9eZSUfWwGG7H+WgejbPC18v4ZkAOW+YU=; b=FUkmLpadz1gpKHjPStMAzENEQmeQ4WSOzKeXe9rZw9e60KNdMfZBrXre3Gnjf8zpQf /5cRmWnC8CXhdQrCxaMaqx5X2dN75qRk9nhUoiZsLdyhnQ6Dr3ZFr16lcobfgVd2s3+E fNnGJawAIU0T47zRe1QRfsLpavze0rs85nwoI/TAfiBSdHTuNL87sNSzr1UvmvTC0czq 925TEm1BhK5fiZYiPf+zRHAlRirQ3kXpmsy1xXnNqN0qbRiUYhPZ7YdknTzINPniHE5k eYjKhXpQQQmY5q010rET0izhQ1eGDXCpjnMUyHgWuJ+LBg3DvCQmBLywasU1bAFxe/ar MhmA== X-Gm-Message-State: AElRT7G/hhASKrRPCDpS94+A63k8JNvbXwaij0DgShbz4SBfB9aM88kK JF5ZnY9jgVGqZ99+kO3KMScW+Q== X-Received: by 10.223.165.3 with SMTP id i3mr11232656wrb.283.1522765776370; Tue, 03 Apr 2018 07:29:36 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:fe64:a386:8845:a072]) by smtp.gmail.com with ESMTPSA id t130sm1099431wmt.0.2018.04.03.07.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 07:29:35 -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 v4 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Tue, 3 Apr 2018 15:29:21 +0100 Message-Id: <20180403142922.20972-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180403142922.20972-1-rui.silva@linaro.org> References: <20180403142922.20972-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 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>; + }; + }; + }; +}; -- 2.16.3