From patchwork Tue Jul 3 14:08:02 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: 938686 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="OuOqSMOk"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41KmF22Wjjz9s2R for ; Wed, 4 Jul 2018 00:08:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467AbeGCOIf (ORCPT ); Tue, 3 Jul 2018 10:08:35 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33467 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322AbeGCOId (ORCPT ); Tue, 3 Jul 2018 10:08:33 -0400 Received: by mail-wr0-f194.google.com with SMTP id k7-v6so2142561wrq.0 for ; Tue, 03 Jul 2018 07:08:32 -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=FHBPFIri46SHlTm1bUCg8VdQzLCSFHdEBke/1RxM1iM=; b=OuOqSMOkNg7Cd4tBOO+G3+odD5hpaQeZEKWgNCpXA7ZneqBPSgwclgrNP/f3p00gHG gTP6PNJs02QHUqs+KHylYbh2rEdztg8kNRYMZ5m49U0NExkYZOyAywnT3FVf8SiBzhHC 7lytlb730enw9QU5cJsdApWX3393lOh9TZ6FQ= 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=FHBPFIri46SHlTm1bUCg8VdQzLCSFHdEBke/1RxM1iM=; b=H8AKSle7Crh1s3f8EDg7bGVjuDsHdPzvVC8tBjYWEoKGxVBuOgvwvSaMK+0AxSnAgt Pn3ejVHZwiZAV8hfsPOKtQdyFDCXgorP2F45GPO0SxXo+mscU6mFDSoRQy3OrUqhAob1 nvmNRm2RedubRDNFwAIhJ7Skmwi01ddYGKIrAm5ojM0b5NPvZe8JBGvptP/ws0Jn/m1L mCKZ5YLUJbawnkAPMfHcTpagK5Wq3Qvj1/2MCqqxnFaFf6fwF0dKIy/mFxPyOMFq8YfQ 19aHE9WFkq12hJ63A8Y/cayr4uF+pvFeAIbofJdU9BpCFxnUbZ6kwiiccgoO5GquBYFw eisA== X-Gm-Message-State: APt69E3BmahxRjAYAfASWttoRCdVOPv2bd/QxlR6TqM6heCCpbJ+W6gC hGf+ZYi1UpkQF0zdES5JWx8x9A== X-Google-Smtp-Source: AAOMgpdiB53ovXrMZvd3VgiJ3gQQDMPGbcEOiLBiTEnE6M2DJMfqLwqv8kh+54eWxyeiyuPpk+elvA== X-Received: by 2002:adf:b002:: with SMTP id f2-v6mr20004660wra.75.1530626912107; Tue, 03 Jul 2018 07:08:32 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:b159:5390:182d:7dce]) by smtp.gmail.com with ESMTPSA id o4-v6sm3398979wra.3.2018.07.03.07.08.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 07:08:31 -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 v7 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Tue, 3 Jul 2018 15:08:02 +0100 Message-Id: <20180703140803.19580-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180703140803.19580-1-rui.silva@linaro.org> References: <20180703140803.19580-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. 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>; + }; + }; + }; +};