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: 135289 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5714608lji; Wed, 9 May 2018 07:32:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo3oJkGflw+ItDGoshzLDLB7r2eKI2gQ7nAU1VXExuC4gKnn3FlscqWvEx7fHA1wPZgAbgm X-Received: by 2002:a17:902:ea:: with SMTP id a97-v6mr44500414pla.28.1525876336469; Wed, 09 May 2018 07:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525876336; cv=none; d=google.com; s=arc-20160816; b=t1IZEKMbqwtikULRVYhi8HubEW7PX0LnwiaPwcX3P5qYJ90OBBhmHVU8G27IvAAXlL stJxGUg8rdOziCMTErZMby2ryn3sAHTGAHYdLTDmUDBehAMZxs3KH5wNfLJhmnBZj3k2 mtmk94bvLSq7l27xpNUnsHcqUq56T/C+cUQF1u0Wd5wAPfSDSAOMUvyDmQ39RjgRXrS5 zL/KfvDnPAX1+pdqYr+IlaO3IUStizNjdHTSwZTmS0H9BQf/GcYnkC57aogqxMQlCbCN v8KPqKszL+q0d+iXZJEMHg9HS5L7ijs345R4FCDNhp6N8j8sTEXvlClgKKLy2z6XibNF qXXg== 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=CoLT0a9KZwHC9tBS6N1Nahu+aYpRCWOIo3I0GUtLTZY=; b=SsLhWO4cHcIyzLh9LoIgzCKneeH8K61wTeGKIA1AiSX27Jde/WD5lfPYQb91wZ4xxG 2O3sYS1Ey9TcwmznKJi1LlkPLep9v1hk7DBEvIrNizzy6p3r+8jPoaPl3sk1z13E0RsU Dz9PJSL+o3zMBEMxijEm3yeBZKxJm9jS4nwwKnB08j5w4LRdtKUkpkG3FJ/dpVXYizHt 0dx2mQLJ7w7ikQBwm8YivViGxHt+qvmpsTzrJe0cMFbynMczGA/b56tg77Y/wHXfpHbv GdaW2G9aC9ZCT7TwvyWx2iSOhtfLoK5RnAnFTyWqtfYcSpBQjETg3Rq/h1togBMfGNDe yT9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KBGvaHh4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 p15-v6si6916117pgf.287.2018.05.09.07.32.16; Wed, 09 May 2018 07:32:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KBGvaHh4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935049AbeEIOcP (ORCPT + 6 others); Wed, 9 May 2018 10:32:15 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:41929 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933887AbeEIOcO (ORCPT ); Wed, 9 May 2018 10:32:14 -0400 Received: by mail-wr0-f194.google.com with SMTP id g21-v6so35819345wrb.8 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=I1vkeUC71GlvZly4dAiXlTQ9+yc1Rv3nMF/avVkvGM/PczzoEfg9OQ1LfcSs7odwSK 26/AYNuD/Zyht/9zUAaegOJUqUhXgmjM4Vt7f09ss3D2qMiMlHNEu00GVCrseRR5KLc/ l6cW8fbLCZvoy+lmj5GBakji4XQvs6+VVjMKRH5rzeJgx0sC7yRo0Pb9rhkI8HdloH4/ NgCyhjD5JFyT/SvHyYhQ/wIVgbFV2eydoZw4S823QFA71trhHdTk6z4ig+NNNI0ENYqr WaAZyKCOJxsqplPzLD1LIl0RnZyFUaRlC7caR7AsGe4sQbpC8Ry+OYHODefDrGLSxFdH 5Cwg== X-Gm-Message-State: ALQs6tCUxWqZK2PuZKtmzF7VZ4ShUNi3V+GoGEcToyV7fSAiL1lsT4Jv 8YgSfAPlicOYoxbIUkpv1Nblmg== 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: 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 -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; + }; + }; +};