From patchwork Tue Mar 13 11:33:10 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: 885076 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ADJ1DQPI"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 400t6z3zKGz9sSN for ; Tue, 13 Mar 2018 22:34:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932987AbeCMLda (ORCPT ); Tue, 13 Mar 2018 07:33:30 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44492 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932979AbeCMLdZ (ORCPT ); Tue, 13 Mar 2018 07:33:25 -0400 Received: by mail-wr0-f195.google.com with SMTP id v65so21613559wrc.11 for ; Tue, 13 Mar 2018 04:33:25 -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=oD3Rs3MEeB7g0DFIjBWzmCmqjki8bdzGgFjYmZRmCCw=; b=ADJ1DQPIMcxJmlPuJt1Rqmx1delj/LR7lokOr0JYl+ji6zmVoYWrSHqqOTvfA/mCjV nwUZqOTVyrJOy0r/HQYS/HiPQX1QidFJVfe6yLoUnhfNZi5kBvMssfDFpby7Zp3d/fzb kHaZuTp2RbZdwznpxzDmcOeRt1NRtUF8Vjd2w= 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=oD3Rs3MEeB7g0DFIjBWzmCmqjki8bdzGgFjYmZRmCCw=; b=tEb/S4/85IP4drkavthzCKMRQDdE4aqxKNIveaqwHCcSZJFqV988GobRI6OyJlMLtd E2thPAN+aGPKnDh8S6/FEMpk4HnCWHIGL9/RyyVMYZFtbcqlr/87ek12PaM9H4AM4gD9 AEW9zVjyeYX0AGKeMmu+ZQsioE7cyXKiwpRegLICjooxfO6RWwbDeG7dLQdHYaxFw5I2 i2w+lDdKPjavznrsiZCMIOCnr18S1r8I+l2QVA91k3f6wRKlQoGM8Zu0nR0YQamv/Nso 1lT4r+6vUqDQ4A8DbWwJ0i0npbGxSy5m0IpnEISybmqvYspu9rKQhLPaSsbPtsvaJNd9 dSww== X-Gm-Message-State: AElRT7FLh6tVSYSZDhW/CYbP5ShWdxCJZw0n3LcA8OvdYu1dtxg00B5z jDY+844LLJPdyt39Kh9r93uzZw== X-Google-Smtp-Source: AG47ELvEh717TN2ntyxB2Npy5mwnOcOoc1UQAcU+jnamECZ9unp1UV0K5JwU2TpPJHMWit//lLuj0A== X-Received: by 10.223.163.157 with SMTP id l29mr249192wrb.239.1520940803832; Tue, 13 Mar 2018 04:33:23 -0700 (PDT) Received: from arch-late.localdomain (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id w134sm41730wmd.45.2018.03.13.04.33.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 04:33:22 -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 v3 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Tue, 13 Mar 2018 11:33:10 +0000 Message-Id: <20180313113311.8617-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313113311.8617-1-rui.silva@linaro.org> References: <20180313113311.8617-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; + }; + }; + }; +};