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: 140966 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1212589ljj; Tue, 3 Jul 2018 07:08:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf40BKxujIW9CDDneUxyRzesBsON35S2IaWHKL1EHIyQirZ53KbdPYvvpp1Hox48n9JoP5T X-Received: by 2002:a62:d842:: with SMTP id e63-v6mr8011424pfg.88.1530626916498; Tue, 03 Jul 2018 07:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530626916; cv=none; d=google.com; s=arc-20160816; b=zI4Yo7K+9KEGrhIxQl83bk5jvs65lBAq+HGr5sTMcI3oNlVLCEBxu4wl68rOQ302HY HTE3oeHjTj4u7BA70DuNWxhBoupIvYb5/nZDGrHv/gg0hVC2jMoazyLWhTwGCrDV3Qjn USYnkbXBKUSmgrSfkjU3gclOKxvOWkroy9W6Ww83vR8IAzBvp77LoLqcDhdU0Z6COE7G fDcq8MyXX9LSV9h13op3IIybKl+9OUSa8ezclb+yM6dMgFVxAbF89Jms6CgHXyCA6Swm hTog2sKxj+adp/66umV/WRVkCLowQf+UqxCfsEbNLD1TXK13uQI9ciXng8yEyjZv7ZUv 1E1w== 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=FHBPFIri46SHlTm1bUCg8VdQzLCSFHdEBke/1RxM1iM=; b=BSjkBBYh1iItWO9vfJcKiPB3UU6Chf4fsobXc+feM0rleAci7Qq/Vk1HfU8tv/1Yr4 iKJzQ5a5xRJSMjHfK/tXMl+0LWqHrY7Ud5w28+TAbNZydvXDFYC6H30SHK0MaF/DurL8 k+aQ7PuQxdPflgrYizTp1yxPfLdrDV2KeEVr20h8JgwS2X3y6KHlxsWW0SmKqm617qTS 1rlIilIj3oZke/9aGDgswpuYuYJpxmwRi7MxLFU3XR/TaJ/74y2bqUKF5fLEtqPSTPFX YYQwTFSUzMu2pwVJvRCYJb5+Im7mPK1x9DX8KWJiQNl/inv7LQe5Z+xhE86qiGMofswQ vKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OuOqSMOk; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 a12-v6si1097493pgv.296.2018.07.03.07.08.36; Tue, 03 Jul 2018 07:08:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=OuOqSMOk; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1753464AbeGCOIf (ORCPT + 4 others); Tue, 3 Jul 2018 10:08:35 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43419 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753430AbeGCOId (ORCPT ); Tue, 3 Jul 2018 10:08:33 -0400 Received: by mail-wr0-f193.google.com with SMTP id f18-v6so2119058wre.10 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=HgzCAJxahbY64OmlVVGc+w74b02uRia7zN1HR01Ld5fY7ZRRNfB8ym9YgXmZDYG5M2 rHIxq7bZVln3bzcsrVtKyxfhgHG3/ujiKUlJQmlyBxvnWYLQXBbMsDSvb7bJn1frAaNS +GTiIgOu3YbFa8b2hXjIYWucEuMZAREd/osIPcpPb+T12xUVIFpMmppQiAKgykNvHgSV UBAwUEOqAm61bJEsijMSabu9QvqGeW5HFVOGWcixdiyZq1V0L0KEBsCiPH96utJKQDoD 93gZzxwV51aJ2q9mFFbruWJK/L85t2/xRMWMgMFjKz666ylyXLoKwzurVA6Wb4ZKCmEs AF4Q== X-Gm-Message-State: APt69E0SbGXxWpTh4B13+GizLUnUzXKvop0AVJFx8exLtiKFf+4AOeFn KtNJ1I4g1fsZ3Hf7rwDh8fE8Qw== 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: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 -- 2.18.0 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>; + }; + }; + }; +};