From patchwork Tue Jun 6 15:54:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 10370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3503106vqr; Tue, 6 Jun 2023 09:04:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kvWpwLqXPHsaLTbBztOi6u4rwvx7Nf/k0FUYuGM1lQZRd6wpQQ5v1URTk9wuE1fbxXNgz X-Received: by 2002:a05:6a21:7894:b0:10b:b5cc:6348 with SMTP id bf20-20020a056a21789400b0010bb5cc6348mr125237pzc.20.1686067447498; Tue, 06 Jun 2023 09:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686067447; cv=none; d=google.com; s=arc-20160816; b=AYJm5TOJJZRJ6mqIJHtx+q2yYpeGASoB435ixmo1EoKCCVNT6d5DMO2w7ThIqAVg2h EFhvsFAo5TcwbDkUms0rP76hhfMff0qTNXE5C4fP6CjfPsJ65EBaH+xW+FcsQ2wEM5tL ln2dVpWaGRERLSncDBjX7mbo3RchGbZ0X/dFtxip32h9IXZ+PrRSsRx131UBZRWomUL+ mbnVqFmMWJCfb7lxSQIYFlyr+LfLpGW7gFTfJBun5dFIo9jgUInnvQxolfB7A6ssznU8 +rk2/EBOJ2d8JEiEgE9tigOKw9nvbRS9p5E8SYenxO8Bt8Jxi2oNU1AFNnT38xuozDOE IpCg== 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=AycpAEzM4UVxeNN1UkOzTKSrPahRGWW+rcSs3aKWXAY=; b=OQTkj/2XHM/n8IyjW+aAFukh6Y5pV/1fVsrEZRMCSJKH72IZw22+2SKBCVjX17zXT+ VpdFEGuQoiVZ3W4rcFnYQsxs4bXiJdZLhqyUzUBSZvvK8hEGoOzV+ltbqeW82ZgtFfS9 GgWL0kkzfBO/eFaCQYIXH9vhUIq0OF+QFBxXqLBBi8eT+eNHCO148AOix4B84nDviPBM Ynj+KjbaLCn1RZBXl1A0WnwUzAaO9FEz2k7C8crqgp7AFvXfbbTB57+lIkO7dvRAFnSn 4otk3pYntq+xeXckqswHbTbPqZ1tbcD4T9eDDTKUvRFJBy8y4zcHzpipolRAt3TQRILi M/cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=NivT3q9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a636cc8000000b0053eee173732si2320103pgc.161.2023.06.06.09.03.53; Tue, 06 Jun 2023 09:04:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=NivT3q9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238220AbjFFPy2 (ORCPT + 99 others); Tue, 6 Jun 2023 11:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjFFPyZ (ORCPT ); Tue, 6 Jun 2023 11:54:25 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91AC110D1; Tue, 6 Jun 2023 08:54:24 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-977cf86aae5so447979066b.0; Tue, 06 Jun 2023 08:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686066863; x=1688658863; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AycpAEzM4UVxeNN1UkOzTKSrPahRGWW+rcSs3aKWXAY=; b=NivT3q9JwYgpsrPpz3UOriLewwMn0QTVzKJAoD5LtRTtdn4MhkXc6akwXftdLBVIeN lJv6/cpJy3RcgF6YwueCHzxteVZUar27qqK0/oQkS9i6c5KvszS23W4tIf20Z1GjJKK8 AagFDVqU1XGguPGRkwMaY/doDXK1LHmcFH4y4DeIOPZjGzCaNGmxlKSZ80xxYvbmiTqj g9G60bMGQ0s8ubSy8WZxfFOCB68cpVln8O1naLeDCMONRDYQgScrsRUqblYv5vX7K7QL IZrnoDzBjUNMcUjeSEmg3WKF8L6tqGzHt+1E2sYZXUKwK/z4p/FogP011c7gpytx/7qJ HRKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686066863; x=1688658863; 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=AycpAEzM4UVxeNN1UkOzTKSrPahRGWW+rcSs3aKWXAY=; b=FwpMF68RaGWUIU9RNqt350zXBhVkKirgI+K3ttIJ55NxKX5o11K6mdwXuJQhQX7OmJ Mb9e7Hq4/9dTphjIhCS4r+UkfOTZwH0aNX5V5HAkm0a2o6l54h3hqmyuMA1S7C+TE7ML OUk9o4glq1R/RNyDVDBOj7Vp00A/bXL6285gsL3kX8s3dp4IXOJZ5qKe8P68VjWZfqEE 2sHYfw1yb9NxFK4WANpEzhcTJSDPOSimmKGyh1AHTa2Ohuzg6eMipVxLYsB9TPiwyGLu f2Eev5YQPzAc8Hg4V0tpb++CoKWEIHA77G12H35HOj4O1T4AYLnHwj2mvR4iNshBqe92 VL4w== X-Gm-Message-State: AC+VfDyeooFXE5n7TbNsbRXo0oDBkNw73T9JcCsg25S22aLbn7V53aKV ZzRg4302rX/g+IYe3Jl7oRE= X-Received: by 2002:a17:907:2d8f:b0:94d:69e0:6098 with SMTP id gt15-20020a1709072d8f00b0094d69e06098mr3206261ejc.45.1686066862792; Tue, 06 Jun 2023 08:54:22 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-50-121.cust.vodafonedsl.it. [188.217.50.121]) by smtp.gmail.com with ESMTPSA id x13-20020a170906710d00b0096f694609f3sm5800412ejj.31.2023.06.06.08.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 08:54:22 -0700 (PDT) From: Tommaso Merciai Cc: jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, Tommaso Merciai , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Sakari Ailus , Hans Verkuil , Marco Felsch , Gerald Loacker , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= , Mikhail Rudenko , Linus Walleij , Benjamin Mugnier , Shawn Tu , Nicholas Roth , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v3 0/3] media: i2c: Add support for alvium camera Date: Tue, 6 Jun 2023 17:54:01 +0200 Message-Id: <20230606155416.260941-1-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767969859715370937?= X-GMAIL-MSGID: =?utf-8?q?1767969859715370937?= Hello 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. Working on top of Ideas on Board (branch: ideasonboard/v6.2/isi) I'm able to test the driver on imx8mp-evk. I collect also some patches to enable HDMI on imx8mp-evk from Pengutronix (branch: pengutronix-imx8mp-hdmi) I collect the patchset required to enable ISI + HDMI on imx8mp-evk into the following branch from Avnet Silica Software & Services EMEA [1]. Some documentation on testing ISP and ISI of imx8mp-evk here [2]. Thanks all for the great work! [1] - https://github.com/avs-sas/linux/tree/tm/ideasonboard/v6.4.0-rc2/isi/imx8mp_evk/alvium_drv_skel1e_v1 [2] - https://gist.github.com/Scott31393/077a10024a6058536d3f2fdde476265a 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 | 93 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/alvium-csi2.c | 3478 +++++++++++++++++ drivers/media/i2c/alvium-csi2.h | 485 +++ 6 files changed, 4069 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