From patchwork Fri Oct 20 14:13:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 15683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1087826vqb; Fri, 20 Oct 2023 07:15:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfTj0JybRVsEbf6j4bFTlL4poT682YbMxqzw1ppaG7qZ5btltlGrjKMm2+tRtlBzW4nk6M X-Received: by 2002:a17:902:f686:b0:1c8:7489:56e2 with SMTP id l6-20020a170902f68600b001c8748956e2mr1957250plg.35.1697811318265; Fri, 20 Oct 2023 07:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697811318; cv=none; d=google.com; s=arc-20160816; b=0CtFEkNARxckx5JK1IPx1salaG0derlrYFYMejSiDO8C9wK6DypLnECrQl7Yt7Vzvl cDYCbFLPkey0RFnJ82uLl9RDbfvX9fY6AnnaKrdrw6MI2AtXNzT5P9oRNJ+EY4NTZBRw cbbVQL0nmtZDXmjjVVfq6d0AWHcWgJqiUrejMa+Iqd+wVsyMrgE1CvO1hlwMPfvyw/Kg +KYqazQkH4yaIUhlydBq5lbs7KXFZdtzJmiB1zihdI9z3YPGhRVKzKslYCvSVzFF4SsT +pRCF+924bl30gBA6u6wJ7GPGYgD/2CvcZULpYh7EzIIMqtSkyPFbdAf0hMWG5B7BP8m zcvw== 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=JD6mwhJo/tCFNUNjBKLMUK7FnEMFViJbfce3FCLQYtQ=; fh=vzxbNyLMe9vLAgM4fiJZzr5YK74KVn/TUbRE2v+wmWU=; b=X37o+nB+cYOkN9cYAaao/w5mCisG0Y3HVOtHAHjX2Xz+QBmVVQ5tkJQkfwvuhvjJWa XWDUKaCoXftpQGicZFW5IKiaNakmOa6KgA35qDdW7qd3KGH8jkDDOCNXH50E/3gXFspO jCIdJ82BKb4UfXMkDunh/Rb4ql2rczlrYAxNP6xsuN3MD09yz/qveY29kxrDkvWAX8b4 KDoJKMctjv/J5/B0qDNXmmJEScYV/kZ9O5Nre+7yA1KI1PyYZTi96dUy7pgsyZSXpb4t HHmeSNr0GGxAov4B9hmFnVevqkrmnMttkkTKVJ5i5XzDD1gUK5q8jpCwaJOnWaGcHLjj dDRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=InkirstU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id w16-20020a170902e89000b001ab29e00303si1952342plg.426.2023.10.20.07.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:15:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=InkirstU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id A56EE842C6BC; Fri, 20 Oct 2023 07:15:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377532AbjJTOOd (ORCPT + 26 others); Fri, 20 Oct 2023 10:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377482AbjJTOOb (ORCPT ); Fri, 20 Oct 2023 10:14:31 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5A6819E; Fri, 20 Oct 2023 07:14:29 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9b95622c620so135988266b.0; Fri, 20 Oct 2023 07:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697811268; x=1698416068; 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=JD6mwhJo/tCFNUNjBKLMUK7FnEMFViJbfce3FCLQYtQ=; b=InkirstUr6E8D1dE9yUQ4MJafSx2exke+1vbcYqZN/UMEnvgWFe/1Mj0XAjtAqiRiz iDPXouySnaGHIPSb3ZFVcI1qpNCgDIajfI6K05xDUFf50s7a75dQLDkt85xs8sIc6+d5 7T4M/Vw1Tbz3/oy6dunLkyL6DmONL08p4GdzFvtdiMX9mT8i1Z5/QkDP6V5zHVpYB61M rwdl9HKtB4T3mTHCRNyGhYTBocRM+d/MGE6KEOVbPuWoIHgiKl5d7JyQ4X2CodylBqHY jUOGGxTuec31oOjwd0yQW0XNwZYfCV8hsMMqzeoA82svu5bI/FVECN8DN7kLYbJ1IP4f qRrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697811268; x=1698416068; 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=JD6mwhJo/tCFNUNjBKLMUK7FnEMFViJbfce3FCLQYtQ=; b=vyyXcjy+h1A/CXC5w09XsGGJXaDVlRhlxWEZJkDZdcLpzG2vS0X5kAaaoNwHfb5LqH 26Db+6s9ZvO9GfcyhYN3vFgkccvhPxf4mZNp7xAB+gDDd7lz1DWBEuIQTEF0+7jvnbPo PN8nJoSIAZH+KX5sm8Um/KuTDAOeEG4OhND8dzNJTiJywfDYOKKimdanYgbJ7FPWKd87 /TOwrsZFDaB1HcB7uq9p5e2sitsotsG6xvjcIfkwBM8XpgzjBQe61c5KJdqgAisIL2c1 oXVVkzq1QMB7zquZp2l9S3kpJjFkMxM1GiJcOEjS1LvhjbYkdpuA5LH6CE4UhTwmcVfP FCtQ== X-Gm-Message-State: AOJu0YxolzKQiwg7zZCYiQWr/CfwtdDYv04lfCJEOovUFQl4uM5ld4vr iq5IN2syTU/5k/9jtIl0F+o= X-Received: by 2002:a17:907:3183:b0:9bd:7f40:caa5 with SMTP id xe3-20020a170907318300b009bd7f40caa5mr1208771ejb.77.1697811268005; Fri, 20 Oct 2023 07:14:28 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-59-109.cust.vodafonedsl.it. [188.217.59.109]) by smtp.gmail.com with ESMTPSA id i6-20020a17090671c600b009ada9f7217asm1562914ejk.88.2023.10.20.07.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:14:26 -0700 (PDT) From: Tommaso Merciai Cc: sakari.ailus@linux.intel.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, mhecht73@gmail.com, linuxfancy@googlegroups.com, Tommaso Merciai , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Laurent Pinchart , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Marco Felsch , Gerald Loacker , Andy Shevchenko , Daniel Scally , Shawn Tu , Linus Walleij , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v10 0/3] media: i2c: Add support for alvium camera Date: Fri, 20 Oct 2023 16:13:48 +0200 Message-Id: <20231020141354.2500602-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:15:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780284200436407271 X-GMAIL-MSGID: 1780284200436407271 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: LP-11 and LP-111 are states, not modes (c9a1b0b583db) 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 | 2666 +++++++++++++++++ drivers/media/i2c/alvium-csi2.h | 489 +++ 7 files changed, 3258 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