Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1580193rda; Mon, 23 Oct 2023 18:04:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGB3Q8xuRELbNeosQDmgm+5dToa6ZaXyQcHLv86VlXwE1m9GdEOSb9i5O6tUrWYSTOd1nps X-Received: by 2002:a05:6a21:7189:b0:15d:8409:8804 with SMTP id wq9-20020a056a21718900b0015d84098804mr1112054pzb.57.1698109491819; Mon, 23 Oct 2023 18:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698109491; cv=none; d=google.com; s=arc-20160816; b=pmzUHu/eeALACqV2daWtgQQtlmpxN/LH2UQphfVzDZGFfO9zOSCA2c4G1dxNuN+Ebk lqlsN3O6Gia5Rx5DWNIX3PIRrJC5DXGgfXKEKC/CygEp8FSr6UODQPaQ5b+TlQOjG58K umJWYNTgloEbL3zFcXFvA2QYiK0Ye3PKZXEn92g5V8NTrAjcZk2b8uW8DOLY7klTuyOp h7pW+/RbD5FMXGQH4x3XgvY5WB7fkNYdM0fpiADB0AoXFcN8KPtQL/QUwZtfR3bVuxoa qw/Ie9VLthR19e3o4AZH+Y0hGVdqIyp7znLtSXkzIXmamj2bCr8+uW+wy0NIHNGZJfI/ nx4Q== 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=tskwblXb3bR8lG1qxzlmh08rYbcHASr49UyquDBcE54=; fh=2hk1mHshaKd3SX7C6WR7M1wBaAulQaHZm8Xy44VClmg=; b=OzPOUa3xOWpBsgq2cwSM31Lrk0Yc48y+giomu4FFicmxR9MIgs0tbYDEeJIs1QDu+S RF//ypV42eh691A5FugbBnefH2aPjlo0PoA7aOHrpVh8CsrwsU+WMr6UjI7jgQSSd/pX E7GvhDn2L7M0DsDRHXm5ImHw2p14lTzn+NIDuezTMEqxyfHGn9Gmp8qhU8k8gtaeRM52 N1BeK71rY3OAC7p3kaPZrLLDMoHJzTRLT2ffMc7FCZBi4XeQBELnIMoTWZ+vd/c/0Ipi /KtB5vatLKutLYvok+2gplxzHcry8d5HOV95T0YNZb8dIDEz3Mjv6ZUqHjCmG1R3CUSM XgUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kZxQaMYk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j3-20020a056a00174300b00690ffbb46e6si7630693pfc.261.2023.10.23.18.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 18:04:51 -0700 (PDT) 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=pass header.i=@kernel.org header.s=k20201202 header.b=kZxQaMYk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0E5E2805F416; Mon, 23 Oct 2023 18:04:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231864AbjJXBEI (ORCPT + 99 others); Mon, 23 Oct 2023 21:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbjJXBEE (ORCPT ); Mon, 23 Oct 2023 21:04:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E557BCC; Mon, 23 Oct 2023 18:04:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CF3AC433C8; Tue, 24 Oct 2023 01:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698109442; bh=ZfPl6t59R5Ac+1BPcyB7uDtR1zx5eWUVL7UjAPeXsdc=; h=From:To:Cc:Subject:Date:From; b=kZxQaMYk0knUAkNwR6rQa2TX+jDYR9tP10iiMOXXkE1xNvuSpyA7wwa1E/oi+PKZ5 biIpjYew17CALK8u414fhlFf7I/7YeMwgpQZI1mebSWd6/vlffYW1H1ozPMqcLHGZy K/vFHRwcpftJWC0N+tA8T9W7Hxb8IMVLbHdsScNnbGHsy6XRT4ASf+wjTKMOWr5fhn 8t2T3K63Kq2AHZBWYTwq4NxxLwJ2jIMNcIrunOyoKkAbtD1koQmbu0BWy8bCFD0zMR 9rAUBCuHkhoMTZO/bu5EenaOeAU/fVcaZouLIg1hZoQhHtF3FHHp+sUvCrCdzntwSX 9FBT2MhQVsuDQ== Received: by mercury (Postfix, from userid 1000) id A76C2106052D; Tue, 24 Oct 2023 03:03:59 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel , Sakari Ailus , Jacopo Mondi Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] GC0308 Camera Sensor Date: Tue, 24 Oct 2023 02:59:49 +0200 Message-ID: <20231024010355.1877523-1-sre@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 18:04:41 -0700 (PDT) Hi, I did the following tests done by me on an i.MX6ULL based system [0]: * v4l2-compliance -u /dev/v4l-subdev1 - v4l2-compliance 1.24.1, 32 bits, 32-bit time_t (from Debian testing) - Total for device /dev/v4l-subdev1: 44, Succeeded: 44 * Using gstreamer + v4l2-ctl - Tried 640x480, 320x240, 160x120 YUYV8_2X8 formats - Tested effect of all exposed user controls * checkpatch does not report any driver issues * dt_binding_check does not report anything [0] https://embedded-recipes.org/2023/schedule/running-foss-thermal-camera/ Changes since PATCHv1: * https://lore.kernel.org/all/20231023002547.1754190-1-sre@kernel.org/ * Update binding: i2c0 -> i2c * Update binding: make GC0309 use GC0308 as fallback compatible * Add regulator handling in power_on/power_off * Fix alignment of regmap_multi_reg_write arguments * Fix useless extra return * Do not check for pad in gc0308_enum_frame_size() * Drop get_mbus_config implementation * Use V4L2_CID_AUTO_EXPOSURE_BIAS instead of V4L2_CID_EXPOSURE * Drop gc0308_get_format in favour of v4l2_subdev_get_fmt * Replace open-coded v4l2_find_nearest_size() logic * check clock rate instead of setting it * use fwnode_graph_get_endpoint_by_id() * power off device when probe errors out after power on * replace mutex with sub-device state * add Galaxycore to generic camera sensors section in MAINTAINERS * add GC0308 entry in MAINTAINERS Greetings, -- Sebastian Sebastian Reichel (4): dt-bindings: vendor-prefixes: add GalaxyCore media: dt-bindings: gc0308: add binding media: MAINTAINERS: Add GalaxyCore in camera sensor section media: i2c: gc0308: new driver .../bindings/media/i2c/galaxycore,gc0308.yaml | 108 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 14 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/gc0308.c | 1418 +++++++++++++++++ 6 files changed, 1551 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml create mode 100644 drivers/media/i2c/gc0308.c -- 2.42.0