From patchwork Fri Oct 11 03:56:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 175903 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp207110ill; Thu, 10 Oct 2019 20:56:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5ShB1zE/Rmwi6QqD1JlKb41+7c0O9Dd6W2G4hgDVEXaCfvEHwWC2mvVezn0L8JPeOv4kT X-Received: by 2002:a17:906:1655:: with SMTP id n21mr11710821ejd.110.1570766195105; Thu, 10 Oct 2019 20:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570766195; cv=none; d=google.com; s=arc-20160816; b=Aj8Vvdt03JnSEZS3mwovD7hf9awuIplcsEpZoUsRo3z8Dw/peBZuAmmTUqXotpcv3v 0np6lrAk+R/hYVcnuNgf4f5xSCp6wCpXFWV9HVmw9vVo2WYRPghkgchR78F+ntg3YR64 yFiFjj+pNYX4xLqCP98nurBXFfH3xYRVNYobBbH5EBxcK/m5HGb3ACEkKjVxlx7DokEq 3H7z3LG+jXP8voKrMEAIgen43atGEw7Lg/zrG24298CmXxiVqpN3GyM07LMjmSy9jxfm xa17JnDom6q8JI8dwMs7f1LMr0Eu+iUblGCbtVeDZ5RfwLo1gkhm/AdDVIRzWVaNJiCP mOuA== 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=1cUKYd2JGuOPb29vx0RY5RciC85cA8yW6+caoygW+J0=; b=HGTQT0hLefZEcmCc/O4UI4v0ms581W1wip5TTwfzbmYU2i9IjfKGk41D9IuP93vg/7 5LJh+opU+i9e2OBsxV3nh+Ca06vbLMompyIbwjgP4JoHnXhWQJ3rYfi5OKvKma5STEkH GMhVXjFxjV5YAnnEEcIosO1an1ylmg0b/tsWMa6gJqfj3q5R4g6yKBeh49wZtTsGZFd5 lTZGWabpCZGy5Cvv1lEzfn0KR1pBLCEhCYpj8BGqQxWYe7lqvMZcOGNhb42ZhflQnjkH 123s/+ZOrG+DwSz1YwYVgcFFQs9PToZnoxJS/ItBRERbHCzFtPbSx4IojhC+bkBUq7RX PNlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aWuycG4L; 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 f21si5128010edb.379.2019.10.10.20.56.34; Thu, 10 Oct 2019 20:56:35 -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=aWuycG4L; 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 S1726632AbfJKD4d (ORCPT + 21 others); Thu, 10 Oct 2019 23:56:33 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35807 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfJKD4d (ORCPT ); Thu, 10 Oct 2019 23:56:33 -0400 Received: by mail-pl1-f194.google.com with SMTP id c3so3828352plo.2 for ; Thu, 10 Oct 2019 20:56:32 -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=1cUKYd2JGuOPb29vx0RY5RciC85cA8yW6+caoygW+J0=; b=aWuycG4LboxAq7KuhuLikokhD/yMdUvlgY6lN1NrGhIhuXttaZ/skjSMPHQ6DMHOcW f45MuDy63ux0Y0y0K4otxgKbPAS/acxq25kJzWDxNcEjUeQnqYUiKmGpXgUPhZqU46fd PI4rDcnM7AcOK2EOEuw82O2dmWvBIxDlPHu8l+Z2P3kKXmOo+KkIBhvWcs7lAwdRu73E nYR0AkaduIwE2d7Zg8X2Fy5SjQ4Yx4jTucCui11XylJseHg0lp6BN0ugdXalySWH6nij EFDcrwkc0AaatAdq6vXIgzxHYoYy325iFvP8nAG30i9R1pfJkdARxa76Nd/l1WZ5g0AJ oJbQ== 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=1cUKYd2JGuOPb29vx0RY5RciC85cA8yW6+caoygW+J0=; b=b0DVy/yV12D8EYoV1ezmBS37OyOVkQRu8NyL9IvdHyMC48pxYq/Hk0WXz/QGcKS563 U9NS9Dk1ADegYf9UD8p2DhJUtXlslI+1cPUxBTm8WXLrCkihgOwYt45nUQknxHooio5B 7Os6wlwbJpkBF1UU3xSe3A1pIwvoi3QiIRfNE599NLvav/yNbNp8zS491xtawSTRt+8H 6BlCN1HraikuFoYN0wIpkS+X9hAfSf40b5bv2XYdSISUFCsR8o9TlmdGiGTZnhXN82x5 IFzgnwPzMz/3o94TKm7cpo4jUTMLbJVdtuHtZIZIrk675TllGYkMmRQ4YsBOLBxGRsbF W7Vg== X-Gm-Message-State: APjAAAWH+RxZRxeONwda/kTerxLVJttq7zVMJh2itTnCF/IndMYq8iSw igjPNlWvJ/M99mFqlugCU7fE X-Received: by 2002:a17:902:904b:: with SMTP id w11mr11183843plz.182.1570766192428; Thu, 10 Oct 2019 20:56:32 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:638c:660b:18a3:ff6e:e66c:65b0]) by smtp.gmail.com with ESMTPSA id b185sm9534210pfg.14.2019.10.10.20.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 20:56:31 -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, Manivannan Sadhasivam Subject: [PATCH 1/2] dt-bindings: media: i2c: Add IMX296 CMOS sensor binding Date: Fri, 11 Oct 2019 09:26:12 +0530 Message-Id: <20191011035613.13598-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011035613.13598-1-manivannan.sadhasivam@linaro.org> References: <20191011035613.13598-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.txt | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx296.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/i2c/imx296.txt b/Documentation/devicetree/bindings/media/i2c/imx296.txt new file mode 100644 index 000000000000..25d3b15162c1 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx296.txt @@ -0,0 +1,55 @@ +* Sony IMX296 1/2.8-Inch CMOS Image Sensor + +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). + +Required Properties: +- compatible: Should be "sony,imx296" +- reg: I2C bus address of the device +- clocks: Reference to the mclk clock. +- clock-names: Should be "mclk". +- clock-frequency: Frequency of the mclk clock in Hz. +- vddo-supply: Interface power supply. +- vdda-supply: Analog power supply. +- vddd-supply: Digital power supply. + +Optional Properties: +- reset-gpios: Sensor reset GPIO + +The imx296 device node should contain one 'port' child node with +an 'endpoint' subnode. For further reading on port node refer to +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Required Properties on endpoint: +- data-lanes: check ../video-interfaces.txt +- remote-endpoint: check ../video-interfaces.txt + +Example: + &i2c1 { + ... + 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 GCC_CAMSS_MCLK0_CLK>; + 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 { + data-lanes = <1>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + };