From patchwork Thu Oct 3 09:55:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 175065 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp70977ill; Thu, 3 Oct 2019 02:55:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHeFlhZwcfTgpIjsNHClGFAUchRZ5ELLPiWKb1oodcY69bUTrlDTCiFn/aksmL9wPEOrng X-Received: by 2002:aa7:d313:: with SMTP id p19mr8357745edq.197.1570096528959; Thu, 03 Oct 2019 02:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570096528; cv=none; d=google.com; s=arc-20160816; b=Gyr4Vi6g3WtfyV+4LeKKREOwzwxKcS6zwc2+UlvQ8tNxIq0Lg1cN0A5MeJ05xUb5/e i/b4+7VZ744yMkMIpCZHoxWrb2cOLEWEqXkTj/h7OJP7+6AFLvhOf31n9vdmE6JnKLpJ dp4JWvaRJanLV2mXyVvvvsHuhdpN3frzujPktcBPTpKQHDs5HZr2gwTTqD4MeypqUn3h cr8HxeSoTZQl1skKM+x/CwWQpj+DBZemOvEfboxWIE/5vNHrm9CWt+SSPU6+Z9c7xocU HXucDYLLgh5QAIEgGjzIHpKkNEdoj90r9BbTBPgHPGa8jnNkp+igTzTQ4xZgIVInIlxf rdAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=e6qE7XB76qy7vrZGoWaWqzg5fBcTX3zqPmnTO48m2kI=; b=O91Q8nQpVoR8969jAUifoeSTX1l9qJN4uqZa/RMOWH4A/jqXjSoFiDuQZ6Wqx7LELo EjkZk6Xy19pDzOYY/7SQx0mBtAXMAQILJAWv7QUnhaDioiC9JUBNHeDvT46QcneTg6ry XJx4gKoA2RUZuUFLtrl5MiT8FBxcTMpnCF+Hoop7yTGNiV23P8aQ1so9Aa7L7Ubnog16 vIEiN92DUKQNSwaUIRiMwfmmcY7/Hpw7Lj2OtmEFXBhm3+BL1UKvBEQMIepa/i74FO56 H5IkEPqOTZMUj7FfczE/opzQ6en6XXe+kNdc89CTijx7uj5i2bwpZtdRMBnBGRDWBia5 OQYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QQmX9/5P"; 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 e50si1289389edb.177.2019.10.03.02.55.28; Thu, 03 Oct 2019 02:55:28 -0700 (PDT) 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="QQmX9/5P"; 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 S1729155AbfJCJz1 (ORCPT + 8 others); Thu, 3 Oct 2019 05:55:27 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35967 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbfJCJz1 (ORCPT ); Thu, 3 Oct 2019 05:55:27 -0400 Received: by mail-pg1-f194.google.com with SMTP id 23so1453718pgk.3 for ; Thu, 03 Oct 2019 02:55: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; bh=e6qE7XB76qy7vrZGoWaWqzg5fBcTX3zqPmnTO48m2kI=; b=QQmX9/5Phtejcr1s1+XLaQd2GNoMEJRCgCi+qbyPv4OAQyhGeTxqwHOsoWcrQ3h4ls 0PBrbMSml429sVGl9iiksabhKvcCNZRCsALpvqhhRxjstI3KJQrwjDS6cZZtK/8uOz4l sw1hkkpnKXuY6qZB/VyLeoze3Qm71B2UWxRvYm9T6dwL3Uo4zzJ4X0sxX7d+fbUbFohi MQHReNnKsu1eC2tK3k5llT2QaaFN0arIMNg3rOYbjbm3HBdJEdaLjyRn62TdLk6zDz+b h4HwvSOHP0ntz9Xs2AyqQLL/P+58M1xgZ+JylLH7VXlj/IqJAX0lv7FPnnILMKpKufPl Zu0g== 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; bh=e6qE7XB76qy7vrZGoWaWqzg5fBcTX3zqPmnTO48m2kI=; b=HtAH4/N6vaeR8c+zlG4u4ro/g5uLay58TxJdrZg8rvdFXXbwOH+HMAinuLJ2ddD197 /p743tmnMNfi5Cmg69IzSaUy6H2rUrew0sUzMbBy+0MOvp2WGhZ5HHCwzR0h1eAIxkVK wvg6XBbOvzxd9n0OdxtiEaAe7HBnjeZiZFpUB/MNi7jeds5T5QLsuf1tQFTy/9aFAMGh Qhof8qN5HJh3PENtDfUaiiRTEdnmEeNivI0EM7BgqxfCxex0OOfXTAmfAqCoZEOcz/aF DqY3UjCLSVy2P3u9hQBOfWxupMenWugEQG6UFdaXrdO4omSFQLmF6H5sAXgU6nbFWnXT qgMQ== X-Gm-Message-State: APjAAAXbFK5yJ28+jKGz2O7SVylhE1ZBCbNMFzbpqpZTZ1mva0NGdPQv h+ka6hmmALYihTo+uVLlvMNU X-Received: by 2002:a63:ed10:: with SMTP id d16mr8924685pgi.307.1570096526650; Thu, 03 Oct 2019 02:55:26 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:801:ac5d:fca3:6f38:70fb:67fc]) by smtp.gmail.com with ESMTPSA id v3sm2346171pfn.18.2019.10.03.02.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 02:55:25 -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 v4 0/2] Add IMX290 CMOS image sensor support Date: Thu, 3 Oct 2019 15:25:01 +0530 Message-Id: <20191003095503.12614-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, This patchset adds support for IMX290 CMOS image sensor from Sony. Sensor can be programmed through I2C and 4-wire interface but the current driver only supports I2C interface. Also, the sensor is capable of outputting frames in following 3 interfaces: * CMOS logic parallel SDR output * Low voltage LVDS serial DDR output * CSI-2 serial data output But the current driver only supports CSI-2 output available from 4 lanes. In the case of sensor resolution, driver only supports 1920x1080 and 1280x720 at mid data rate of 445.5 Mpbs. The driver has been validated using Framos IMX290 module interfaced to 96Boards Dragonboard410c. Thanks, Mani Changes in v4: As per the review by Sakari: * Squashed the MAINTAINERS changes with driver patch * Some misc changes to the driver Changes in v3: As per the review by Sakari: * Switched to pm runtime * Used link-frequency property * Removed useless read calls from buffered read function * Some other misc changes to the driver and binding Changes in v2: * Added Reviewed-by tag from Rob for bindings patch Manivannan Sadhasivam (2): dt-bindings: media: i2c: Add IMX290 CMOS sensor binding media: i2c: Add IMX290 CMOS image sensor driver .../devicetree/bindings/media/i2c/imx290.txt | 57 ++ MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/imx290.c | 885 ++++++++++++++++++ 5 files changed, 962 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx290.txt create mode 100644 drivers/media/i2c/imx290.c -- 2.17.1