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: 11212875 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD45213BD for ; Fri, 25 Oct 2019 17:59:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B864821D7F for ; Fri, 25 Oct 2019 17:59:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SedUa1wg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731025AbfJYR72 (ORCPT ); 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-Google-Smtp-Source: APXvYqz3piyw+cOfNWbtwHTeWyr2/cMXnuAPV9qLBZz+W+Tcdvl44tJdS08iO34Vyrxy3OC08OiSCg== 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 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>; + }; + }; + }; + +...