From patchwork Tue Apr 3 14:29:21 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: 10321303 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 7A92A60532 for ; Tue, 3 Apr 2018 14:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C74428585 for ; Tue, 3 Apr 2018 14:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 612D3286CF; Tue, 3 Apr 2018 14:30:22 +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 0ED8A28585 for ; Tue, 3 Apr 2018 14:30:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751708AbeDCO3l (ORCPT ); Tue, 3 Apr 2018 10:29:41 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33252 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602AbeDCO3h (ORCPT ); Tue, 3 Apr 2018 10:29:37 -0400 Received: by mail-wr0-f193.google.com with SMTP id z73so18943068wrb.0 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=HUvUtq4bjNvG0UwzPCF1XCSOJlLDN05miLqTffAIZNsPknzVcT9PaY55y9GS00tAIW FGYb+uS2oox9nwfc7Sw9tFMUuByaX95BDYzwzHvochMrh2g7fAg9ZjR/AE61n7oXSpfo jSl1G5v36zTwCu33wbRieUVeLS0yCd/9Obfu1Xji7K7aKdFLicR7YW0CXtEKWYbZ+MV4 nf+XXkmIHzT6Q8Vw1/CBAZNaWFS1tiOqk+aHrzVAqxQj1DYab2dRTsYT14ezX0QiM5uH XvF73Uqeh5qWSijdnG1IqAjFmP2beosFwijNA3mTl2hDP3qE+fByXPUO6abePRWfp0Wp Wzcg== X-Gm-Message-State: AElRT7EtcJIeZwxBrC+H1tD0BxCTUzCjkE8M9kbaIJPQKvCBTG6heBM+ KMCGhN2bALvRw3Q+IeNEQdSziA== X-Google-Smtp-Source: AIpwx49pCk+PzDQyncupmDnqLJ70G73uz/pCf3m9r+25T2M1BrhImRoT3Bq35wt4jcSdjtYp468tiA== 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-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. 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>; + }; + }; + }; +};