From patchwork Wed May 9 14:31:58 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: 10389691 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 A9BA660318 for ; Wed, 9 May 2018 14:32:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A62D29019 for ; Wed, 9 May 2018 14:32:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EF092901E; Wed, 9 May 2018 14:32:17 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 31CA029019 for ; Wed, 9 May 2018 14:32:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935050AbeEIOcP (ORCPT ); Wed, 9 May 2018 10:32:15 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:40347 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935047AbeEIOcO (ORCPT ); Wed, 9 May 2018 10:32:14 -0400 Received: by mail-wr0-f194.google.com with SMTP id v60-v6so35831015wrc.7 for ; Wed, 09 May 2018 07:32:13 -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=Nbdba+G5Ye6YdMUV6pDV8s3i59bNib338C/f5zFgU5s=; b=KBGvaHh4gL0a7kw3Jj15QGk9hgEhnr4+cqGbtm1U9LkdbOuM0osEGtniKKSZ+zP4BY PpA3XtUa5+waK4fLzbjboiEJn6shZtHOpLXl8lV9j+UkuAtgx8yzt1hOWpvARKrmetcX SDDqtrhuE2qeDU0F+aZ61ELCC2C9C+aElWgOI= 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=Nbdba+G5Ye6YdMUV6pDV8s3i59bNib338C/f5zFgU5s=; b=uZY85arcf5DjaFKS0QVi5rfwh7Xjcirm1U0hPJDzoN10jlLrARpup7Hm4L+vbrrDqi F6GCksiQvPulwOvuqvuI+2SXIgF8ay30nvU9JPzAnVvTEl61HuDsROGW1T6frb0kXMgz 4yDJiH/wqHPh6uzXgsUdOPTwyTs4xg2X5dGyINC+UcgV6sv/G7EkTDCDFUwnWt07E0JV PS92wHQA9ADO0M7XYBnnvUnsbqZEMzVdaiL5eUy6qBW4xk4ngCULbsgUnHthd+ZSNMsY QQKZowHtvpyjfBB4SxJX2eqQUtnK4Ip4Y/OpY4vRwO70KrsMToNnECuexDvI/vLcJMks V3nA== X-Gm-Message-State: ALQs6tAA2TYTO5gG/wJUGJ3b8LH/LOymwDRGn0xxe6WIu0WCjZ0No0Ln 9xE/RUnMM9omjusoDec16qJjhZyue8U= X-Google-Smtp-Source: AB8JxZpwxdR8t+vK/j5Rq1y/JeZYKG6TkzVLKih7w0vwIvBnOvDLR5tYvFtO8BzaHCuD1KyubeO3GQ== X-Received: by 2002:adf:e6c6:: with SMTP id y6-v6mr22859656wrm.35.1525876333029; Wed, 09 May 2018 07:32:13 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:b159:5390:182d:7dce]) by smtp.gmail.com with ESMTPSA id q2-v6sm29520529wrj.57.2018.05.09.07.32.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 07:32:12 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl Cc: linux-media@vger.kernel.org, Fabio Estevam , Ryan Harkin , Rui Miguel Silva , devicetree@vger.kernel.org Subject: [PATCH v6 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Wed, 9 May 2018 15:31:58 +0100 Message-Id: <20180509143159.20690-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509143159.20690-1-rui.silva@linaro.org> References: <20180509143159.20690-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. CC: devicetree@vger.kernel.org Signed-off-by: Rui Miguel Silva --- .../devicetree/bindings/media/i2c/ov2680.txt | 46 +++++++++++++++++++ 1 file changed, 46 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..11e925ed9dad --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov2680.txt @@ -0,0 +1,46 @@ +* 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". +- DOVDD-supply: Digital I/O voltage supply. +- DVDD-supply: Digital core voltage supply. +- AVDD-supply: Analog voltage supply. + +Optional Properties: +- reset-gpios: reference to the GPIO connected to the powerdown/reset pin, + if any. This is an active low 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"; + reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + DOVDD-supply = <&sw2_reg>; + DVDD-supply = <&sw2_reg>; + AVDD-supply = <®_peri_3p15v>; + + port { + ov2680_to_mipi: endpoint { + remote-endpoint = <&mipi_from_sensor>; + clock-lanes = <0>; + data-lanes = <1>; + }; + }; + }; +};