Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1651903rbb; Mon, 26 Feb 2024 17:34:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQq5kkU9KOocNZTmJSUbQMXaSP28r1VG+y0TJsMLwKuQg8qI1oD3FBtGq451QkVI71Uk1bhbmE+btGRV7Q1T0Z7lg4O4fJq7tCUCXtUg== X-Google-Smtp-Source: AGHT+IHTIy8vRk8QgJxAHgF/P7itzEliMhmMHzGp+reoaLCh83yOnmDFKWGJIIP88E8vjrTk6Ve+ X-Received: by 2002:a05:622a:5d4:b0:42e:884d:d871 with SMTP id d20-20020a05622a05d400b0042e884dd871mr4202699qtb.28.1708997678211; Mon, 26 Feb 2024 17:34:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708997678; cv=pass; d=google.com; s=arc-20160816; b=F761lmbzcpfKDmvR6ExeAIClNcqh0MzvTwOH526vIPWK+lqURtLc7aIOrAGdWBdpax uDqB/g9MZ7iO6DyGirVLPnKuuK/PXiUqyMs1NwK4URqXqQaZvniWqrTEakZIXsn/Hsjk p30LSqawa6pcpdFNQE3dPKtJO/6PLrAbfTZEkMipi1NjKfNkqvpAPDJK11KTSvBFBhIU Zl14cA/4KM+CUcHB7lqC+gQaI6rn3FfSe2omD1gmXLj0u9VsqWOrdcqTt/n4Vi1vZ+oa p4t+r/5GTAvjbYjIjsx3SROgIPph/IsJ4Fb8AIedw9+OWcYmMtT84/QyOcWBgsGw27ax Qe0Q== 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=c0PmycMVRivwEWb41nt3gj2hmGIBdJX1VHqiQ5e65ag=; fh=6UdMDtke1gqZtcLZVwNQGwMu532uxPp0iIi5VCFQN5E=; b=KR2PP0kfY25vXdhe05pgkDyNiR3egVA65qbwM6dJbgxnFd3pvAHmAATpokPrynKnaH GY7vS86jzQEDjEJJDYufZz4WHfatIz3zFyvAT6fGLAhESMmm0dkaplXeOcOvssVSrDx6 PtrksMIap2rsMdvIU/EZInHKDwCuKJvUd+MKzOje3NM3WC40G5HAso++b5aN/xq89xkf Ln87uzBxfTNwn+YaPZGqmz+txwvRwL79n/+LuDXRoq0q6IVAH8RXQcBJtKPX2ne9/vPD WKOqh3n7eHOStmtwKrAavPrU8R7r5Uu6Re8Up6dGkP7Qy0jSr9Q3ONXct4Yi4MkED9qg 9HVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="CEAv4M/0"; 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-82532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82532-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t5-20020a05622a148500b0042e7f75e01esi4532012qtx.565.2024.02.26.17.34.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="CEAv4M/0"; 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-82532-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82532-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 360D91C26176 for ; Tue, 27 Feb 2024 01:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 079E36139; Tue, 27 Feb 2024 01:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="CEAv4M/0" 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 A435A4431; Tue, 27 Feb 2024 01:32:38 +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=1708997561; cv=none; b=LqVbJcFgxVnFELHvmzvuGYCr4kMM3Kizyik075X12qdblRVD9KFoYwWfJELtptBCM7IR/w+28u5qdRR5lc0lFOoy4KJ2oLamu/0QZSSJIM35R0N/aDdwT4pX+tvbUpW//l02COeAuGgZjVfKNr6xeKcafjaei63S3aQHetxFVy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708997561; c=relaxed/simple; bh=rwEK40Mj5XvI87taaXUUJLThj4xJgYuaMvN75mfEwus=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=LN1TauVQqSMWx3YfVI/9VjUIFYTaQN7bfmKJyft9KyL0LwruEbodfN9mA3q84P5w6lsLzG4+xToeGbojo47bKuxLFNzDATJ03UhjSWclPgGJCajxh5xhn0v88Kr2rRwoi6OAT2kBapHSPd8pkIUfnrCum9wWZGUbI0eeS6LHhho= 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=CEAv4M/0; 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: 1285ce64d51011eea4ad694c3f9da370-20240227 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=c0PmycMVRivwEWb41nt3gj2hmGIBdJX1VHqiQ5e65ag=; b=CEAv4M/0hv2llcBJQ/aiABWGppiqyQ+FNyYnkiYMVjLuOLxXQhg7Cx2o1mb0q5yr/5ae7Q9aMic1My8LvAt6znHdBu7XUQDbLkrK+D3rJPbOHIrXGGoIRR/2zDjUTY/klXeIif11haHLzfX9zMMlT181wsr54ulLTo4dEgvhfBk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:e2ba2bf1-7836-452f-be1b-10d5eec6e432,IP:0,U RL:0,TC:0,Content:-25,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-55 X-CID-META: VersionHash:6f543d0,CLOUDID:81d63dff-c16b-4159-a099-3b9d0558e447,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L:1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,S PR: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: 1285ce64d51011eea4ad694c3f9da370-20240227 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 285279662; Tue, 27 Feb 2024 09:32:30 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 27 Feb 2024 09:32:28 +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; Tue, 27 Feb 2024 09:32:27 +0800 From: Zhi Mao To: , , , CC: , , , <10572168@qq.com>, , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 0/2] media: i2c: Add support for GC08A3 sensor Date: Tue, 27 Feb 2024 09:32:19 +0800 Message-ID: <20240227013221.21512-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-MTK: N This series adds YAML DT binding and V4L2 sub-device driver for Galaxycore's GC08A3 8-megapixel 10-bit RAW CMOS 1/4" 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: 3264x2448@30fps, 1920x1080@60fps Previous versions of this patch-set can be found here: v5: https://lore.kernel.org/linux-media/20240220012540.10607-1-zhi.mao@mediatek.com/ v4: https://lore.kernel.org/linux-media/20240204061538.2105-1-zhi.mao@mediatek.com/ v3: https://lore.kernel.org/linux-media/20240109022715.30278-1-zhi.mao@mediatek.com/ v2: https://lore.kernel.org/linux-media/20231207052016.25954-1-zhi.mao@mediatek.com/ v1: https://lore.kernel.org/linux-media/20231123115104.32094-1-zhi.mao@mediatek.com/ This series is based on linux-next, tag: next-20240226 Changes in v6: - gc08a3 sensor driver: -- refine header files in driver code -- use macro HZ_PER_MHZ/USEC_PER_MSEC for some variable define -- define reset-pin as active-low in DT,and use logical states: gpiod_set_value_cansleep(reset_gpio, 0) in driver -- use new PM macros: pm_ptr() Thanks Zhi Mao (2): media: dt-bindings: i2c: add GalaxyCore GC08A3 image sensor media: i2c: Add GC08A3 image sensor driver .../bindings/media/i2c/galaxycore,gc08a3.yaml | 112 ++ drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/gc08a3.c | 1333 +++++++++++++++++ 4 files changed, 1456 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml create mode 100644 drivers/media/i2c/gc08a3.c -- 2.25.1