From patchwork Wed Dec 11 11:54:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 181197 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp423402ile; Wed, 11 Dec 2019 03:55:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyAziqyQHXs4Y/YNi53QPGIkBoap55C+0gGRwmEY7vNoUij0/6LuQlLJ0rDo95XGDzGmfNg X-Received: by 2002:a9d:361:: with SMTP id 88mr1892123otv.210.1576065323505; Wed, 11 Dec 2019 03:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576065323; cv=none; d=google.com; s=arc-20160816; b=1J0JVpyDFreX/6iq/Tliq5OkGF6ujy0G36Rg8J43C2RMF49C7JKPYLhG+U2pDeyHGz kgJ+otNZ0rvL8g3d8Ek97VlbqZDVKq32JUNqI69qARueB/lqcM4rFtjyKbE3sKxjxnCz N1sBmz/lxxXro75CPaFOpTmqkTgexoIhCq/nV+Z17VND+b+vrZnaJMtLi0JQBMIpBuiN OnfzUEavdSOpYlELoY1grXWYJtJBWba0PV2XpIm0axX1ndV8q8FoSvi/urfhK6+0UvVK hTCHWoI8Lf2aAMTw6AU1zhdg++e0GHY2qp9ZMrf6ygzCFigauTQAUXPFcQ891XF6n6Jd wy+g== 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=OF56zXhdjGUx6RHLdRal7OMJ6MFr6ViKDJ0o80jzbuo=; b=QBo8ptIDwqK4ytm36xyDJhqej7lhURxPNjV1LmC2WXJf/ZCc+tUMAL402QoUkHAL0n u1WHrnOHtYGgwuB8B+FFuWHRnef6jFkTk80YZ3v9xB/vtMpUHhASx6aP8J5R/8+ke/ru 4HufV1I0xxq/rgGd+pa2rK6E5Zhf4sEdwyD9ja62ln1woW43imZwFfMjghZRz59Hud33 crsen+fs5TGxsl8ViH3zA87GKeeQI5LX5ZlQffFnWGcZ0VLbVbQo9ZrXi3YIyRkzuOzZ QC+SF9IDv3S1dEDUakzvscx8PP9STZmVVTuSo+3UwWsq5iS9j9Fc7JSjuq0d3tvqlfWr 2zfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vSf22LmP; 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=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 10si985210ois.76.2019.12.11.03.55.23; Wed, 11 Dec 2019 03:55:23 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=vSf22LmP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729077AbfLKLzX (ORCPT + 8 others); Wed, 11 Dec 2019 06:55:23 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39080 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbfLKLzW (ORCPT ); Wed, 11 Dec 2019 06:55:22 -0500 Received: by mail-lj1-f194.google.com with SMTP id e10so23712403ljj.6 for ; Wed, 11 Dec 2019 03:55:20 -0800 (PST) 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=OF56zXhdjGUx6RHLdRal7OMJ6MFr6ViKDJ0o80jzbuo=; b=vSf22LmP0Cn3bRIqS86tNWpO9wCQHoulBfeNGhhxRAHwRBkDt/FS1UMW1K5F6bh73p 8RAQUSf2I/a7Pib7NrnMqrPbR1dvHLsU2htaelJtdLl5V/A7NzdaaCQ/W8T64vUADEyZ ANvcLYs8zQZkedM8+pL1SzQ7xx0IBp6TDKKXPvEd8OaRjcJuNDCyb+/ikjgj8leSHjKp 3aa43K8VpIlVclgz9EGJp4PgdBAhz2tRlrRYNAhmc1Yg5oqOBm3MsPtuVUJ81affg3Dw RUsNEGFFD6LmfNQOTNlP2ArnctnpWO5UkJND9F4fV6szf/oRS9IY9abmrjM4PCpUFGBy f/9w== 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=OF56zXhdjGUx6RHLdRal7OMJ6MFr6ViKDJ0o80jzbuo=; b=o3NCjWiY5VbmsIl/b/E8tvAu3MHLYwn19qnWoFm2309IQYvoywdL/8sTmP9MjU7l7W GQADqys0hoHqOnbj3F9zm/898iEhaSSyXmgbCOt/uWcOd3bsvoAXTU7/exWc0KVRPCI7 BXQVz6mDgubRW1NsWIr8fbUJdDso1JvK6+Fs/rzbG3nufAvz7Z2hl9THxpEQfSHmx0Yy pDUb5GEtRoyyjAZI/Yfdvwt8p/RRantWdK1pWTpsdpLWIYyue1BGT43x8celtaltJnB6 H9eP54eEDO3nIMhnbMDJzjwmr0aFnoNvNTc8EmaIRGoxDGoBVJ4rnsK15mpjSQzrhDXs GNgw== X-Gm-Message-State: APjAAAU7CXuLbUazrF1HGExDGpjZin9+PE7WkEvl2Zch67rdh7LSvQ4o TXTMO1BNSzpqpdGWnWMI30kimg== X-Received: by 2002:a2e:8016:: with SMTP id j22mr1870701ljg.24.1576065319781; Wed, 11 Dec 2019 03:55:19 -0800 (PST) Received: from localhost.localdomain (95-28-65-22.broadband.corbina.ru. [95.28.65.22]) by smtp.googlemail.com with ESMTPSA id 138sm1055875lfa.76.2019.12.11.03.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 03:55:19 -0800 (PST) From: Andrey Konovalov To: mchehab@kernel.org, robh+dt@kernel.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, dave.stevenson@raspberrypi.com, peter.griffin@linaro.org, Andrey Konovalov Subject: [PATCH 1/2] dt-bindings: media: i2c: Add IMX219 CMOS sensor binding Date: Wed, 11 Dec 2019 14:54:40 +0300 Message-Id: <20191211115441.10637-2-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211115441.10637-1-andrey.konovalov@linaro.org> References: <20191211115441.10637-1-andrey.konovalov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add YAML device tree binding for IMX219 CMOS image sensor, and the relevant MAINTAINERS entries. Signed-off-by: Andrey Konovalov --- .../devicetree/bindings/media/i2c/imx219.yaml | 112 ++++++++++++++++++ MAINTAINERS | 8 ++ 2 files changed, 120 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx219.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/i2c/imx219.yaml b/Documentation/devicetree/bindings/media/i2c/imx219.yaml new file mode 100644 index 000000000000..5e4293c21933 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx219.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/imx219.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony 1/4.0-Inch 8Mpixel CMOS Digital Image Sensor + +maintainers: + - Dave Stevenson + +description: |- + The Sony imx219 is a 1/4.0-inch CMOS active pixel digital image sensor + with an active array size of 3280H x 2464V. It is programmable through + I2C interface. The I2C address is fixed to 0x10 as per sensor data sheet. + Image data is sent through MIPI CSI-2, which is configured as either 2 or + 4 data lanes. + +properties: + compatible: + const: sony,imx219 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: xclk + + VDIG-supply: + description: + Digital I/O voltage supply, 1.8 volts + + VANA-supply: + description: + Analog voltage supply, 2.8 volts + + VDDL-supply: + description: + Digital core voltage supply, 1.2 volts + + xclr-gpios: + description: |- + Reference to the GPIO connected to the xclr pin, if any. + Must be released after all supplies are applied. + This is an active high signal to the imx219. + + clock-noncontinuous: + description: |- + Presence of this boolean property decides whether the MIPI CSI-2 clock + is continuous or non-continuous. + + camera-clk: true + + port: true + + data-lanes: + description: |- + Should be <1 2 3 4> for four-lane operation, or <1 2> for two-lane + operation. + const: <1 2> + clock-lanes: + const: <0> + +required: + - compatible + - reg + - clocks + - clock-names + - VANA-supply + - VDIG-supply + - VDDL-supply + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + imx219: sensor@10 { + compatible = "sony,imx219"; + reg = <0x10>; + clocks = <&imx219_clk>; + clock-names = "xclk"; + VANA-supply = <&imx219_vana>; /* 2.8v */ + VDIG-supply = <&imx219_vdig>; /* 1.8v */ + VDDL-supply = <&imx219_vddl>; /* 1.2v */ + + imx219_clk: camera-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + + port { + imx219_0: endpoint { + remote-endpoint = <&csi1_ep>; + clock-lanes = <0>; + data-lanes = <1 2>; + clock-noncontinuous; + bus-type = <4>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 02d5278a4c9a..3baf2954d2f4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15339,6 +15339,14 @@ S: Maintained F: drivers/media/i2c/imx214.c F: Documentation/devicetree/bindings/media/i2c/sony,imx214.txt +SONY IMX219 SENSOR DRIVER +M: Dave Stevenson +L: linux-media@vger.kernel.org +T: git git://linuxtv.org/media_tree.git +S: Maintained +F: drivers/media/i2c/imx219.c +F: Documentation/devicetree/bindings/media/i2c/imx219.yaml + SONY IMX258 SENSOR DRIVER M: Sakari Ailus L: linux-media@vger.kernel.org