Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1507984lqp; Fri, 22 Mar 2024 18:48:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9+2i+pUspn+RZHshcPduAyaqxwiB9S/H12Bh77iAgn7ZC0w5eSC1/M43I7wvTLUln45/aEJ3yPcIP1+jyedywbHJIZwqCcp1TUlxdfg== X-Google-Smtp-Source: AGHT+IEnrg3vprhBfgLrLrfcCbYQ2A1AS+oRarhkC/sb81K2+MV+s5nUKLJ7sPM2p4hUf4D3UztM X-Received: by 2002:a50:8703:0:b0:56b:9f35:65f9 with SMTP id i3-20020a508703000000b0056b9f3565f9mr960774edb.0.1711158499606; Fri, 22 Mar 2024 18:48:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711158499; cv=pass; d=google.com; s=arc-20160816; b=clZxrJgznW+shipTGbcAjOG+MxzTkJLVOFSfutM12T8QsgvEOVAZPZTLKNIJb3AvYO X8RjQD6ynL/yaZXtmb3K1fY9Y0DQ/T4xWXWD+8k6GfXEMx4lgrVOekkmhNE7CNTzcHTa FO7W4HnbKf9CfwenZ9zy0kRgO9A46zkq8sPqnsOi1WccU8papUhWodhnEfYwp6oDwi81 MaP1FKAmsqczjE6rYfxp+dri10wRtOWJMkKVgdaPM8YaAEEGNr+hPT1rZHr2r8vs1vM8 Y7oP1O/8sSPlxqXW5t7zgglT2gQf6V0NH74ZicRQtqZ5+0jHhwDuETP8e5Z8Py6WzpPn PFow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=L9sV1k2/YiQfQS31JUciQZcHTepfyUO9odFjpo3O2Vg=; fh=aF7GZBWogMl1vYtQGrcZfmiuISEGZ7/2aY6MjnO4VqE=; b=qM5Hoa3HNsfffAFWphFf/OybVO0BHp8Cv6/IG0//ICcGdbys6O3G0CUgavHfj99gXV piQEzPVvLkytJYEGUWZDRbEEL6ZbgyOdCXfGgjz+SFogJT2qwTy40pm4NnZkgS8e3qZj Kig8uUcUI1AFwamG6VwpsUTI7bOzvlm8KxfEfUlZkJtfZAjAwRPY3uENpgxidY31e7ec /ECl6yKRJS1+gFKm3nG5CSKlOXsNHAQo8o2DUAlwT/wvpSTeaqeORucIwzvZssVn/lgh NOd8k9yuVoXfc0w1Q2nU10XWdvuum5zbGGEF0DZeLcidsmCwP6r2kRO2S/NFjFhZelIo OYfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Qfk2KdPJ; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-112165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y8-20020a056402358800b0056bdf8f9ed1si381238edc.53.2024.03.22.18.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 18:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Qfk2KdPJ; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-112165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 58F0D1F221A0 for ; Sat, 23 Mar 2024 01:48:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D618E211C; Sat, 23 Mar 2024 01:48:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Qfk2KdPJ" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB648A31; Sat, 23 Mar 2024 01:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711158488; cv=none; b=HkQ+3H8JGc9eJvQGyGjxRtbWbOMZrcnBl0TqfF0IMgtMnlqyhcXEhpwO5FXTEktBR85C+K5oWUh5mxLuToNenW6rSOR1sNWNiS+MEXRwQgxRSOboiIsDMyjkbvCOpHDUG9BEfsEtcAI25BktAJQk4x4FbMjsPvOfJB9fHbIQk20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711158488; c=relaxed/simple; bh=EefJjbcu4y17KYVAxbcOnml0EPnFeSsN57fYer/OBj4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Texgi10Al3aLOCdIDu7gDDXGScs/ovcpYuqzixl/JPJMvwdfyEmr364rbuBAj53P3GPki3hKlWlNl3VB1HRFS7Tjiknqs/0WMDx8rIZQVTT6DfG3yQu/IY28SXJCnmSCKopHAxHwWqerwnOVzlMCG7TCJ3a6FSwPHfROuQoDsB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=Qfk2KdPJ; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 61eb6da0e8b711ee935d6952f98a51a9-20240323 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=L9sV1k2/YiQfQS31JUciQZcHTepfyUO9odFjpo3O2Vg=; b=Qfk2KdPJ2Uc71OGdJQZcqko3C56tFbCLmRWl31anFjmmLAzzEIWOtkywPWN9v5mbpEf8ouqkUVGvwIB5rvwzpa7236KgH0V3nFg871nOYi1t1vvO0cy/JDQ08eVRg5VCKwGxvbQya1r5GZFyimXkFymUmz3xYqindfGWNtBdqXg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:0619a45b-c985-4106-8ea0-c7832437192e,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:6f543d0,CLOUDID:c3433900-c26b-4159-a099-3b9d0558e447,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-UUID: 61eb6da0e8b711ee935d6952f98a51a9-20240323 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1738991571; Sat, 23 Mar 2024 09:48:01 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by MTKMBS14N2.mediatek.inc (172.21.101.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Sat, 23 Mar 2024 09:47:59 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Sat, 23 Mar 2024 09:47:57 +0800 From: Zhi Mao To: , , , CC: , , , , , , , , , , <10572168@qq.com>, , , , , , , , , , , , , , , , Subject: [PATCH v2 0/2] media: i2c: Add support for GC05A2 sensor Date: Sat, 23 Mar 2024 09:47:49 +0800 Message-ID: <20240323014751.4989-1-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--6.229200-8.000000 X-TMASE-MatchedRID: 8L/XLRDZTtQtlu2PjaXfUW3NvezwBrVmQPCPzycuBFOl4EP+dy+wBAwF qajp21ReNJCQfPeJOQovXSnelSgBMJlIfdN/LTrGdE/dhjO8a+RqYquCrLrVwhHfiujuTbedduS l0OECBiZx7H5wEf5GN9b0cMVDXqkVGh6744KLCtJc/msUC5wFQUyQ5fRSh265NSweOixQAJJHdE c8dOyw1Vl+Hk3Iw2bEX7bicKxRIU2No+PRbWqfRDsAVzN+Ov/s+Lrh13TcOsY4/58XLbV2HCy9y zFe+82np1KXOwgMd9vQNldzzCL3LQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.229200-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: D038C00FCE3E57CDADCC6A0A7583B5644BA82870704977B68015B11B0295F8B92000:8 X-MTK: N This series adds YAML DT binding and V4L2 sub-device driver for Galaxycore's GC05A2 5-megapixel 10-bit RAW CMOS 1/5" sensor, with an MIPI CSI-2 image data interface and the I2C control bus. The driver is implemented with V4L2 framework. - Async registered as a V4L2 sub-device. - As the first component of camera system including Seninf, ISP pipeline. - A media entity that provides one source pad in common. - Used in camera features on ChromeOS application. Also this driver supports following features: - manual exposure and analog gain control support - vertical blanking control support - test pattern support - media controller support - runtime PM support - support resolution: 2592x1944@30fps, 1280x720@60fps Previous versions of this patch-set can be found here: v1:https://lore.kernel.org/linux-media/20240316025253.2300-1-zhi.mao@mediatek.com/ v0:https://lore.kernel.org/linux-media/20240313054409.8073-1-zhi.mao@mediatek.com/ This series is based on linux-next, tag: next-20240323 Changes in v2: - gc05a2 sensor driver: -- use function: pm_runtime_get_if_active() Thanks Zhi Mao (2): media: dt-bindings: i2c: add GalaxyCore GC05A2 image sensor media: i2c: Add GC05A2 image sensor driver .../bindings/media/i2c/galaxycore,gc05a2.yaml | 112 ++ drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/gc05a2.c | 1387 +++++++++++++++++ 4 files changed, 1510 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml create mode 100644 drivers/media/i2c/gc05a2.c -- 2.25.1