Message ID | 20231107081345.3172392-1-alain.volmat@foss.st.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp85760vqo; Tue, 7 Nov 2023 00:14:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2Hu6HbQY6qkIk9bWNTZ3VXU3GyTZSpR1MbIIauYzpqF82u+G/NAXDd3xTWBzooXseb0fl X-Received: by 2002:a05:6a00:24cb:b0:693:3f7a:eec2 with SMTP id d11-20020a056a0024cb00b006933f7aeec2mr32629954pfv.29.1699344881779; Tue, 07 Nov 2023 00:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699344881; cv=none; d=google.com; s=arc-20160816; b=syXZJA+YOm0pw0lRx37xHcbd8008eCfN6liVG4Ceu48vDmfjIj826IDybykkMoIZ3b fKj+IzvlVYHGTkKr519uvjX8JFFapl1pO1l7iSAnbn01YAVMXK9pXnmnq53sSDKFmldb Jxt2RWB5ikThwnXwTQpRG51bNvSaM1wzlLEk52cq6/4yilGsZcLLL1xIc+u2Jum2rBry xcVAu0Pim6tUCVZ5145w9C7hJjcXpji6dlmek+KmMslgf7VVwGExDZZo9MSuaMYfQLaH 2zdeEhFQcxveY6OoF7pjLq3J6XJVZgOCvbxp8yeQyA7xNQzduHVBTRuib7384cnmaKjr LanA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MikgiowIDgDD0WkWQ6PwrxUlJkzGRTxRL9d3olsWFgM=; fh=gDJfQSRGyPEOGw3Ruk6MQEztN5eC6MYw3dIKGN3eykA=; b=jUEsx9pmaHBitbKjwZiNle7uDxbzkFQyKSMkPMsY9dG0ewJaZjS5fmUpdqe5MdUd+J 4LTuky4f/tsTUDpZryhQqrjt/B6NP3DoIO0hn7jc/EreEGg30TMpnIMY9+82p2T6EfAM 8wLp00jEgZAgvOEpCtFpltyZ8Zd3t/5yUtlsD+8GM4pcEfR1+8Rpv1i+i2z/q8C5OTVA cKhSl6pFgu/NZmMLCUwf2OvzMyb0Pg76er+IK9HL62UOcs/2FHu/hNRH1RDLN1saeIon W8dV04IX/QQqhbs4vI2TdJvdGZfibxXsoN+57LmUbxcFz8OB6ZT4yzndOd9Wwbub+mTZ QA6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0YNlzwK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s17-20020a056a0008d100b006910a45a234si10324317pfu.202.2023.11.07.00.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 00:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0YNlzwK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6C4ED80752B1; Tue, 7 Nov 2023 00:14:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233699AbjKGIOZ (ORCPT <rfc822;heyuhang3455@gmail.com> + 32 others); Tue, 7 Nov 2023 03:14:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233658AbjKGIOY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Nov 2023 03:14:24 -0500 Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85258EA; Tue, 7 Nov 2023 00:14:21 -0800 (PST) Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3A77tx7v026287; Tue, 7 Nov 2023 09:14:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=Mikgiow IDgDD0WkWQ6PwrxUlJkzGRTxRL9d3olsWFgM=; b=0YNlzwK0ND8LjDyOfEbDn8w ybCcpN5cy+V0LMe9sd/F5Xkcl+esZijk79A16uW59j03ErNChWr85ZqWc4CRcWsR PsJbc9PfLYGQ+w8BAn2xmLEFDwW5Xpif5snTv/ekXnxZG4hmfx4p2vF1mZEoBQdV 6cjNv5l9Q5mPDmuTGZOg5CKFDwIqM+FSTPSBhRbfP1Mt+g10yb+fSEC5BwZPw5uI RTFmjeHV3a8265CsiwSooIohdhJPE81y4Y8NouTIhuKsn0rOGZD2A1PdpfrKmMmB /p/jApycDkRhXe8JB0fiTDq5aTWfSOTe7clc5DaMO/3hmgYIUdVwPZ4I/jF1IaA= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3u61sngqaq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Nov 2023 09:14:10 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5B42A10005E; Tue, 7 Nov 2023 09:14:08 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 49F00212FB4; Tue, 7 Nov 2023 09:14:08 +0100 (CET) Received: from localhost (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 7 Nov 2023 09:14:08 +0100 From: Alain Volmat <alain.volmat@foss.st.com> To: Alain Volmat <alain.volmat@foss.st.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> CC: Sakari Ailus <sakari.ailus@linux.intel.com>, Jacopo Mondi <jacopo.mondi@ideasonboard.com>, Kieran Bingham <kieran.bingham@ideasonboard.com>, Rob Herring <robh@kernel.org>, <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v3 0/3] media: i2c: gc2145: GC2145 sensor support Date: Tue, 7 Nov 2023 09:13:37 +0100 Message-ID: <20231107081345.3172392-1-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-06_15,2023-11-02_03,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 07 Nov 2023 00:14:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781892259078228106 X-GMAIL-MSGID: 1781892259078228106 |
Series |
media: i2c: gc2145: GC2145 sensor support
|
|
Message
Alain Volmat
Nov. 7, 2023, 8:13 a.m. UTC
This serie adds support for the GalaxyCore GC2145 sensor. Initialization is based on scripts provided by GalaxyCore, allowing 3 fixed configurations supported for the time being. Minimum controls have been added in order to allow it to be successfully used with libcamera and dcmipp driver (under review) on STM32MP13 platform. The sensor also supports Bayer formats however I removed them for the time being since they would require more controls to be exposed. They will be added again later on. v3: - fix copyright year - add more gc2145_ func or variable prefixes - removal of colorspace within struct gc2145_format - use 1X16 formats since driver is supporting CSI-2 interface only - use msleep instead of usleep_range - add pm_runtime_ last_busy & autosuspend handling - only start streaming AFTER applying ctrls - correct RGB565 format to generate _LE instead of _BE - perform pm_runtime configuration prior to v4l2_async_register_subdev_sensor - remove frame_interval handling and expose HBLANK/VBLANK ctrls instead v2: - split vendor-prefixes update into a separate commit - correction into dt-bindings (description, const i2c address, lowcase of supplies, node naming - correct KConfig (avoid VIDEO_V4L2_SUBDEV_API, V4L2_FWNODE and add V4L2_CCI_I2C) - usage of v4l2-cci framework for accessing to device registers - correction in power-on / power-off sequences and update usleep_range delay - detail MIPI configuration and stop register access to stop streaming - removal of SYSTEM_SLEEP_PM_OPS (and streaming variable) - various small fixes, typo, oneline functions - removal of useless HBLANK control considereing that RAW isn't supported for the time being - removal of RAW parts - usage of dev_err_probe Alain Volmat (3): dt-bindings: vendor-prefixes: Add prefix for GalaxyCore Inc. dt-bindings: media: i2c: add galaxycore,gc2145 dt-bindings media: i2c: gc2145: Galaxy Core GC2145 sensor support .../bindings/media/i2c/galaxycore,gc2145.yaml | 104 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/gc2145.c | 1404 +++++++++++++++++ 6 files changed, 1529 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml create mode 100644 drivers/media/i2c/gc2145.c
Comments
Hi! > This serie adds support for the GalaxyCore GC2145 sensor. > Initialization is based on scripts provided by GalaxyCore, > allowing 3 fixed configurations supported for the time being. There is another version of the driver, from Ondrej Jirman, floating around. See mail "gc2145 camera driver (front camera on PinePhone)". I've added some cc-s in case people wanted to comment on it. Best regards, Pavel