From patchwork Fri Oct 25 17:59:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 177770 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4058974ill; Fri, 25 Oct 2019 10:59:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGsYxjSBviLt2s6j8GiTGcRqaldXX3kbcv3NU5IwekhUakkd23m8SeiSqsBb+ZLUoZdkPV X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr4869364ejb.208.1572026368985; Fri, 25 Oct 2019 10:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572026368; cv=none; d=google.com; s=arc-20160816; b=PNtAlvSPtMLP+oj+m17thMzG77rPRHpVF1KSuldMpBFDK8fUSC9qVa8jq9I3CMPfWY Iu0psWZVT/JDKzVT+LdjsMiDULMauFmoat/Vj//tNWR7SE3iDINez0/SzCKE5CpL62oM iSirFZHfUSl9lzXGYtz7ub7HshzZcRKGnxCs9eklSn2ykc1aBstYVeF5GgN0gdBSnsLh fZdKXTqbePfYJIIcGnEs4PP2DCtgHj5sjY2V6ADhsz8gdf7plOlOUm9OYwaPCApRqOw9 Yj02Sk6V0UuHonfOWe4bVgvaRLwQd6eLyMf7+J7uW52yEsy1/lBxGhqLwPHU0/I0NCD2 YZiw== 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; bh=6V9eAy/RohgQEVA68KP/vsczzh/tYT69NUQZuToo9f4=; b=Pi84VdxSznMHQEznmypunMD9+MzNLdPOqEFDe034drujNTV0Pc6S6WDQdvy2BqLFP3 Kv+mNYdCyqXm+h3nn3Buv4R0qzaicJ6eyj7Je6CtGFLWrlPWrbC+jKgZQJoJxwuXDYcI Mmu9AYsFfcqdbbK2zKKEYtv6cl8/tylEw4JjxORG23P01YO33xq6BTlm4AJL2NO7QJDV zcZtIMrlBgUfTW8MTHO1gwX7Df35u6IcIomQMTEw8VUR5qbH/hlDsAMLE2BRzMcC5pan gMq2PiXM7E21fcMHBk51lxK82UaemDe0yuPDMy/C2mvLc7RD5uowPXCkHZYsqMYA3HT6 JgeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SedUa1wg; 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 a8si1850349edm.240.2019.10.25.10.59.28; Fri, 25 Oct 2019 10:59:28 -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=SedUa1wg; 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 S1731025AbfJYR72 (ORCPT + 4 others); Fri, 25 Oct 2019 13:59:28 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40051 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731021AbfJYR72 (ORCPT ); Fri, 25 Oct 2019 13:59:28 -0400 Received: by mail-pg1-f193.google.com with SMTP id 15so2014310pgt.7 for ; Fri, 25 Oct 2019 10:59:27 -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=6V9eAy/RohgQEVA68KP/vsczzh/tYT69NUQZuToo9f4=; b=SedUa1wgJBBopKAyjCiRP6GFJU9zVsE4B+95tJXT23XiXtgvX/WaMtIX/1onoiJWZa P1j/KQdRDHVpjOwxdcTACHjq2PdAQqSSh8r7nB6okCHryac3/NKO6BplNpHNku9P5Ui7 E44aHFSIuR4xcbMAJKGdPZIr75QtQsWLJW0zqgYztIB1HW+vAEUVKzGJjjrfBcM7C7v4 dUtIDVpREH1ApvCNwYzSiUrVWi1SNhyCfpSW6FNo8oed5b+3tW94VtYabW6QfGX+V2jl T6ZUkfgkuKbswpQfP2u7es9qmyaeBAZX65vPkObBQc/tTf5OWv65c0v23cUlKv4QfoWJ 3sSw== 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=6V9eAy/RohgQEVA68KP/vsczzh/tYT69NUQZuToo9f4=; b=sOZu8OTvAfuK2H2ZGrL3PVJjY5VLJrfw1UKkOaQZjDhK6U4LOW7gpWLthsTGbK6I6y gLB062Ib7lY61HPiAtbaMOhke+loi1F+dUHCqs9Z1OAAT0KjtaFQ5Kr5LKFkjEM/As+o eX+SkR+IIdhTGgCHhgJw6lTULyt+qtTEmJiRIzt+FxsVNV6vRTzP/tWh32BxDblIHTJ9 Un9lxK843i3gLONT7t/idpxCBwwoV6JJ8TUi7zdSDDwcufOA/K0pWbS3Z3lGhDLcielB btuMWa1dtcV35MsKGV3QZvrQxtl9ClUwCOx3GyYtkElZBOd/qRmKc1tUzkC+wr/c9lbz vmYg== X-Gm-Message-State: APjAAAWi5q4JeTpN/gy8lsFg3TiWy/agEOiGdwd581wNlruj+QvcRAjd dYuY2/f+5PtRy3V1x7AoUe4K X-Received: by 2002:a63:1f52:: with SMTP id q18mr6010328pgm.35.1572026367191; Fri, 25 Oct 2019 10:59:27 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7108:7f86:4131:5b00:9fc5:5eaa]) by smtp.gmail.com with ESMTPSA id r13sm3430303pfg.3.2019.10.25.10.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:59:26 -0700 (PDT) From: Manivannan Sadhasivam To: mchehab@kernel.org, robh+dt@kernel.org, sakari.ailus@iki.fi Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, c.barrett@framos.com, a.brela@framos.com, peter.griffin@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 1/2] dt-bindings: media: i2c: Add IMX296 CMOS sensor binding Date: Fri, 25 Oct 2019 23:29:07 +0530 Message-Id: <20191025175908.14260-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025175908.14260-1-manivannan.sadhasivam@linaro.org> References: <20191025175908.14260-1-manivannan.sadhasivam@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add YAML devicetree binding for IMX296 CMOS image sensor. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/media/i2c/imx296.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx296.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/i2c/imx296.yaml b/Documentation/devicetree/bindings/media/i2c/imx296.yaml new file mode 100644 index 000000000000..4e204fd7cf90 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx296.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/imx296.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX296 1/2.8-Inch CMOS Image Sensor + +maintainers: + - Manivannan Sadhasivam + +description: |- + The Sony IMX296 is a 1/2.9-Inch active pixel type CMOS Solid-state image + sensor with square pixel array and 1.58 M effective pixels. This chip + features a global shutter with variable charge-integration time. It is + programmable through I2C and 4-wire interfaces. The sensor output is + available via CSI-2 serial data output (1 Lane). + +properties: + compatible: + const: sony,imx296 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + description: + Input clock for the sensor. + items: + - const: mclk + + clock-frequency: + description: + Frequency of the mclk clock in Hertz. + default: 37125000 + + vddo-supply: + description: + Definition of the regulator used as interface power supply. + maxItems: 1 + + vdda-supply: + description: + Definition of the regulator used as analog power supply. + maxItems: 1 + + vddd-supply: + description: + Definition of the regulator used as digital power supply. + maxItems: 1 + + reset-gpios: + description: + The phandle and specifier for the GPIO that controls sensor reset. + maxItems: 1 + + # See ../video-interfaces.txt for details + +required: + - compatible + - reg + - clocks + - clock-names + - clock-frequency + - vddo-supply + - vdda-supply + - vddd-supply + +additionalProperties: false + +examples: + - | + #include + + imx296: camera-sensor@1a { + compatible = "sony,imx296"; + reg = <0x1a>; + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&camera_rear_default>; + clocks = <&gcc 90>; + clock-names = "mclk"; + clock-frequency = <37125000>; + vddo-supply = <&camera_vddo_1v8>; + vdda-supply = <&camera_vdda_3v3>; + vddd-supply = <&camera_vddd_1v2>; + + port { + imx296_ep: endpoint { + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; + +...