From patchwork Fri Oct 25 17:51:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 177767 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp3925333ocf; Fri, 25 Oct 2019 10:51:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRyAupY9PTYIVpKfNId1ciP5OCWUvftU6Tsz02yoDhnfYyDdn4I4z2bonUY+Ik27C3p4E3 X-Received: by 2002:a50:984b:: with SMTP id h11mr5430778edb.248.1572025907911; Fri, 25 Oct 2019 10:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572025907; cv=none; d=google.com; s=arc-20160816; b=PtmvZG8pQbEdOqlkUf1u0dLuxtrUBjQtoCdOI/raJcVFSLRX6sAXJcQc8AiQ6Qaabb QSMBMv1hE25ygbnK9I2LsLMoJArGx0a/RTEO5WZRzYyrycN8ZgQ44Jk2z+OJMUvKsD4l +/Dg/YTILfPZ1mVXERr/AWU+bxxFp6D7mGUTGDGsMSUsBGDb7bCWoCD2Q0URVQBKgXlL JvaX7w/dprUfmZq4fHSQrTbcLtZwkvnBS7W+tAbpbnRk1OO4ESPzQPaMKtQ5Mp8IyIU2 /eNiIex4THxVEoz47jZGB5SBk65I64hP+Gw7in5xBHPt2LW36cG600IzIa5AOerapNZO B1Iw== 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=h3QJdMfhJbfPOyUujEeH2uCMTYfYjj0kP8BVOZvY6vk=; b=d4xTlTnksmDJO4A9G+a3yYLnHaUXP/NC/n5Tm8Y8i+DX2dF+N1uRgTBqO5rHjaXy0Z fBzh57Y7yO2Cc+sI8UT8srGeHcVNZZNgByjCTYLLrxVzR8vdnw1DOPII+fkW4WGUvKUu XFjnpJ0nx3R7oXE7b6euoDVTcDfpYeiFHmBAAlyNB3IfBFlKmJx8qq7KcwugScG9/Llg VFZ3m1R+l3iFaU9tay3c+36POLHXoRrylf32UPMRRedq7VoNktAV/6xkNLonDgDjEOg3 kjM4P8Qf0BYFux2dPDGC8NLJPiHP4GWsu0xdeOyxfF0OSY/UKoP7z7WEGmwItrPM0FVM ypaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yg3+cfho; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 c13si1982457edk.4.2019.10.25.10.51.47; Fri, 25 Oct 2019 10:51:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=yg3+cfho; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727064AbfJYRvn (ORCPT + 26 others); Fri, 25 Oct 2019 13:51:43 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:45189 "EHLO mail-pg1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfJYRvm (ORCPT ); Fri, 25 Oct 2019 13:51:42 -0400 Received: by mail-pg1-f181.google.com with SMTP id r1so1981115pgj.12 for ; Fri, 25 Oct 2019 10:51:42 -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=h3QJdMfhJbfPOyUujEeH2uCMTYfYjj0kP8BVOZvY6vk=; b=yg3+cfhoMvzbNVLOYxlHpxK9zIstoIJ+vmFQRnolgRRIna9gktbKYtnBZ7RBVfRwKn hNHOI/2OChFg9xUnidYcX0AONc1idmHcSOFRAMx5zZgLAfR+omQFY5WcMVEQRO+8g1eP 3uiUrvtY7t0ofUZUIevZNs/EuWWoRUXSp7eOaMHfGkS26igzuxLUnKHx7ArgeVNWWFTl 5zepKRIYkT/HbMEWB/RIEzhUOX/IhjONMKVbB3KpOiAOs91pXkLpAwgNjikBQrkHRO7K C8awJpIDnRKpXJZNzDVCYoxv7jkI1DE0IzqQl0KVVx74h8VhH6pkLsqNvcVYfLSRzm/m /HlA== 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=h3QJdMfhJbfPOyUujEeH2uCMTYfYjj0kP8BVOZvY6vk=; b=KTr1FUap6Gl3rTCZGWHAUjbHuNopfhg3rRWDgNWdCW4OdKThzyKoHyA0IyzF0lmxt4 +8fsIsB8iRxl09iI8v3brwVkRZWejHSykpsJk3ZDZjtwzRIZNhBX6vbJEsd+EWeH4tzF XFYS3sfrBig7ALPIe3/2HRqIIl7tEELGP0oweBJfd92uqcO1rN9b5pEcXOqcajO4fhFA 1IUdgeL3hCsQ1jSeJ1CDtAe+hYaBfxglYK7lyxUEkuk0oYdGJ5UtvQJdSWxHLkIS4F3z 6wI+yrBitBOiCII+R4QJG8jDCND3oQQx+R8SVNpyCusE9SGs1HRVDWq2U0smKhQuL3+e Kzeg== X-Gm-Message-State: APjAAAVMeG9vmVJAxLty6wpPNL5DlNIaD4ldcNd2oH1NmiRyF9Afkyte ce3y12GzYgY6MhhT2crRgiin X-Received: by 2002:a65:4907:: with SMTP id p7mr5957791pgs.429.1572025901575; Fri, 25 Oct 2019 10:51:41 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7108:7f86:4131:5b00:9fc5:5eaa]) by smtp.gmail.com with ESMTPSA id d14sm3916345pfh.36.2019.10.25.10.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:51:41 -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 v2 1/2] dt-bindings: media: i2c: Add IMX296 CMOS sensor binding Date: Fri, 25 Oct 2019 23:21:17 +0530 Message-Id: <20191025175118.13307-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025175118.13307-1-manivannan.sadhasivam@linaro.org> References: <20191025175118.13307-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add 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..646fe0236138 --- /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>; + }; + }; + }; + +...