Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp990149rdg; Wed, 11 Oct 2023 10:58:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5/2sCo0lDZSzk1NGyEN2a/2IHHo7V2wEmE7Q7jAZc6vpYKb4jQp/ym9AyRSFVOHkH9CpR X-Received: by 2002:a17:90a:e610:b0:27d:63c:34f2 with SMTP id j16-20020a17090ae61000b0027d063c34f2mr2174154pjy.41.1697047099906; Wed, 11 Oct 2023 10:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697047099; cv=none; d=google.com; s=arc-20160816; b=TvDy1bwgnoIeVS9Md+hNzvb1pY75D9sqZ+rKL+0JVRh0WURqkf7o60aht7gUHuUM6M /1yyOySSc8C0WDhzkycUJylBOUiKHmoJz5tSql8thIQhvuwl9GOH0mM+rBgrQ95wDDx+ 0BDQv9L42k/w8TwXIova7D5bVg57xzDVU9cY7G4euSEfXIuW/dONfXphf8enEzQ961tz u/8ttYliqAb9fga3iNvzEedThrYNmNH8zykZP7TA3+JpGln49hItawWrjMRfo+Ke54yN +vrxM1MHX5jZ7Jg/SK5jxnjdnuI7deytqospFCeEwKIuH4r6H5H+jS1uoFNdJXAFytq/ NcQQ== 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=TAaAF2q3limPjnQvFZPK8yGWYOFgr3YyW+A1RHS94jI=; fh=lDfa5G4qN+YPj+h9+UH5ZuD5XX/OR8QqaUsVqhzufKY=; b=ktSSN1TD0I6pkDM4BzU8SOxa6koH5HPxTVeZUYmjbvs4CkIXQDE5bPuZPAO4W+EHEf mycvbuw4ljMVKXokALJUwWFzqWnPOIsoZgTdnG2LHZnqfNpJD/FY/WkZbLSPDF1aolcf cV9hzFHCQNO9yWoPFsQ59x9YbnxMQrHIdTG7zn26XhFztYVGS30aBptXxUlj8Pd2lzlO O14NV3KyPH/mzQnGA8EGKRJ2NWe9TNZxCSUgbvyaS4jbET4Q+VgnlTqIcmeu5iTRPpHC S+8/F6gFUU+6NukCeLq0ToiIz3Rm6nWaz3z3Kdorciqhg10HkOcRnhlRrx8ldrAOOZFI l7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=mv+3BIHl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bk21-20020a17090b081500b002700bcdbff1si305335pjb.154.2023.10.11.10.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 10:58:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=mv+3BIHl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id A9CD980C9DF5; Wed, 11 Oct 2023 10:58:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234775AbjJKR6I (ORCPT + 99 others); Wed, 11 Oct 2023 13:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbjJKR6H (ORCPT ); Wed, 11 Oct 2023 13:58:07 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819D68F; Wed, 11 Oct 2023 10:58:05 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39BEw0GX007819; Wed, 11 Oct 2023 19:57:51 +0200 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=TAaAF2q 3limPjnQvFZPK8yGWYOFgr3YyW+A1RHS94jI=; b=mv+3BIHl/k+x1WNBa6p97xv T4rn9dp+uqlV3GnVyd4g2hjO9/vnYRCXv9xFgTRqfV40mke4pII0ajgM64kATqXF 1qsxptDi6BB17+qa4kKizwp9EgImiXx7UJfSHmW/h/1UExPZ6yLZdpvbRjFk83Sb 4o6ROhGf7bpYLOFJkJGHOfihdKQgTl4yyjWg/gNQSQUyYSOT6RTCIqh8MbzksGw7 LQvghlueItbs95yL+76YC8rGT5dhRTjrT3w6cYBhylttwr+gDej/HxZdb8SnpRmX ef1cmRSpYFOMpy6K5n7GqQTvAMuGtgNcDqlRxY7PPAmU/lSTEarEZGTU6dlzOIw= = 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 3tns0cj739-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 19:57:51 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5775F100057; Wed, 11 Oct 2023 19:57:50 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 44EAA20F55A; Wed, 11 Oct 2023 19:57:50 +0200 (CEST) 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; Wed, 11 Oct 2023 19:57:50 +0200 From: Alain Volmat To: Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jacopo Mondi , Kieran Bingham , Rob Herring , , , Subject: [PATCH v2 0/3] media: i2c: gc2145: GC2145 sensor support Date: Wed, 11 Oct 2023 19:57:27 +0200 Message-ID: <20231011175735.1824782-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.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-11_12,2023-10-11_01,2023-05-22_02 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 10:58:16 -0700 (PDT) X-Spam-Level: ** 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. 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 | 1440 +++++++++++++++++ 6 files changed, 1565 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml create mode 100644 drivers/media/i2c/gc2145.c -- 2.25.1