From patchwork Fri Nov 24 09:30:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 17044 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1031838vqx; Fri, 24 Nov 2023 01:30:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Kcq1sCj7OXr62OPEnVtVxfoHWT0PBntMKcdODrODQc5Hw/N37yR3PfQq4bEnofaIcTuw X-Received: by 2002:a9d:7989:0:b0:6c0:a98f:56e0 with SMTP id h9-20020a9d7989000000b006c0a98f56e0mr1824472otm.38.1700818236195; Fri, 24 Nov 2023 01:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700818236; cv=none; d=google.com; s=arc-20160816; b=zCFDfQpsAfc7LIvFLC+gl4lQp5ojjynUHoi2FzL5wI5nn0ktPQqZh0Ywc6XIQNMZl4 AGbSuuOxEIrtb9MdsnFAEV+8m5ZZWGSJ6RQEh+HH02Ws0+QVLq3/Cs6UMTIwyMQKOj6f S/DomQ2t8a3iYrkd3ZasKdcOSXYKBY9D8ncBHKxDkVRltoz9iYHwCxgd8SKrRFSm2wl8 k/6FsPtfBi5fV3xT2c6jv5msp9mraUXn2dHsXhqEGDgGKEwiYLS3TpWrPk/T+FV4cixr qMLhfcbQq23Yltc9W7fUprjqJpzRxT5oAh7KC5fA6KaRGTQIRH6lshES/oZ5dIxERKcj DByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=cTLi63yxvI2hAeNdVd7eWh+ex8w0Y3/NocaKGFnahv0=; fh=RUvrfnnbA7LGxua8JWJDR6jgkQKhOYtEVtbJ6K4y9mQ=; b=tUx8HYPi2PxnSqr0ylUkDSEdRHZGRgTEyn1UieofAGw4KlLl3qoMBSY7ib2J0G1USn FQJeZUfMl6JH3LeowXDUydzNt5WIzj1Um24qRUeZo56yWhUnT9ROFoltonKouYWFxkkQ NoqvnWzqPS8hwGsdfRn2YqUqbsZu0mn9PBpHolvuVIu4SSoOYMuO1N8oGH+25xe00u+h uiiBEVFo8thfvE+rJ2txEB3IQLfrcArESmDCU4vaR3S+z/WbG9FZRoQgW9qsq0/q/rF9 2STTFMLpdV216S0WGDGk+sq+IAq7yXjjo1V9oAQy4QXVUEI/ehElLWMKYtqXe+2HiZOX wQvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=UI4txSvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h27-20020a63531b000000b005c179c0075dsi3094811pgb.883.2023.11.24.01.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:30:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=UI4txSvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C8A4281EF1B6; Fri, 24 Nov 2023 01:30:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbjKXJaM (ORCPT + 99 others); Fri, 24 Nov 2023 04:30:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjKXJaL (ORCPT ); Fri, 24 Nov 2023 04:30:11 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B969130; Fri, 24 Nov 2023 01:30:16 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-548ce39b101so2286050a12.2; Fri, 24 Nov 2023 01:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700818215; x=1701423015; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cTLi63yxvI2hAeNdVd7eWh+ex8w0Y3/NocaKGFnahv0=; b=UI4txSvH000xyMnKX/M8OvWuTPF6OQlCwEOGh56gmdZwzZUMIo+/UXeduMWzUEhkTg t2xGFlVXh4YmVDKq1wA5VOqVYwYneKw4rdlEGlUEcUtiB9ceRNeT1I7lY84aNk8lkbNq RxaxFLtuSddqe+rO8eVTpI/7ujiTtLFQJ49ugLEpiG1NCpSVaj6dk42qERPjbCRpT4Va FJPvwLBdAaP6BBP8ezLMgssCob2OSdTKDR8djxEVVDdEBkLHRqtYgXYfb0ot2BuaOxCR lVwmtuyN6z+81nMpqhe0oudUZrgM5356KWC17XPDD15JGoRqN190w5uOoxbcI/PqpvdF kR0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700818215; x=1701423015; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cTLi63yxvI2hAeNdVd7eWh+ex8w0Y3/NocaKGFnahv0=; b=jxp56YKjXTZPpLpQ5EPts0O3A854TAuIBoSAxa1NI/sAFaIHLr4gGUV+fyzEoYbFEM ygcM8nnGPpF2v/xBaExxbas/hBmkUcchW9XYgM2Cje/kUCT2NGT0pG+SAzeExww2CZ08 mA5KQszkzvpsuZf+FxXWItRUq2f/JkuJYhRDJI75mYN7mYmHbWXI2TAqJrggFhOuRe+h 1kn/DPZWxGTl3EDfGrp4Lb8CEcV2QCYLj4KtBU9f1AF8d3Y6ci+j5XUK/VjkVFodd5e8 6dcO5AvDwo8eBoz+BjptQe42sxzjZkuhl9TEWutf+UsMG5OhfW/QC2NrHoEgAYgpAMqg ibzg== X-Gm-Message-State: AOJu0YzfiRavg4XBW5j+e3YE+E6DpTosoY7Fu45z1oL0HLpaxzYPy9p6 6fdj/m09wvNQoorqRvaFcH8= X-Received: by 2002:a17:906:74d1:b0:a02:9174:629f with SMTP id z17-20020a17090674d100b00a029174629fmr1412930ejl.55.1700818214341; Fri, 24 Nov 2023 01:30:14 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-2-39-142-131.cust.vodafonedsl.it. [2.39.142.131]) by smtp.gmail.com with ESMTPSA id k9-20020a170906578900b009fee12d0dcdsm1856307ejq.15.2023.11.24.01.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:30:13 -0800 (PST) From: Tommaso Merciai Cc: laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, mhecht73@gmail.com, sakari.ailus@linux.intel.com, christophe.jaillet@wanadoo.fr, Tommaso Merciai , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Gerald Loacker , Bingbu Cao , Andy Shevchenko , Daniel Scally , Nicholas Roth , Linus Walleij , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v14 0/3] media: i2c: Add support for alvium camera Date: Fri, 24 Nov 2023 10:30:04 +0100 Message-Id: <20231124093011.2095073-1-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:30:21 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783437182936510826 X-GMAIL-MSGID: 1783437182936510826 Hi all, This series add support for Allied Vision Alvium camera. The Alvium camera is shipped with sensor + isp in the same housing. The camera can be equipped with one out of various sensor and abstract the user from this. Camera is connected via MIPI CSI-2. Driver use latest V4L2_CCI_I2C API. https://www.alliedvision.com/en/products/embedded-vision-solutions/ Tested the following alvium models: - alvium 1500 C-500c - alvium 1800 C-2050c - alvium 1800 C-1240c - alvium 1800 C-040c - alvium 1800 C-052c - alvium 1800 C-240m Note: - Driver is rebased on top of [1], commit [2]. Thanks & Regards, Tommaso - [1] https://git.linuxtv.org/sailus/media_tree.git/log/ - [2] media: Documentation: Initialisation finishes before subdev registration (f7af8049dd07) Tommaso Merciai (3): dt-bindings: vendor-prefixes: Add prefix alliedvision media: dt-bindings: alvium: add document YAML binding media: i2c: Add support for alvium camera .../media/i2c/alliedvision,alvium-csi2.yaml | 81 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/alvium-csi2.c | 2532 +++++++++++++++++ drivers/media/i2c/alvium-csi2.h | 483 ++++ 7 files changed, 3118 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml create mode 100644 drivers/media/i2c/alvium-csi2.c create mode 100644 drivers/media/i2c/alvium-csi2.h