Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1509386lql; Tue, 12 Mar 2024 22:45:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYbJqY4bAudCSaAHyrCvjl3WeZbpbpzTOSDrudrtoDjN5yucw+phj4YS2N0tenL34j+hjpwTD0x9xkI7V6sJUUJL0+G367EgNeh1Ko5g== X-Google-Smtp-Source: AGHT+IEuXK3fZ+/xW+WjsEO+XBZCK9RSKh6nqXiSG3DXqVab//VA06hpELcWT/B7XwhoEM4MvFeZ X-Received: by 2002:a17:907:a704:b0:a45:46e0:be9a with SMTP id vw4-20020a170907a70400b00a4546e0be9amr8223374ejc.35.1710308701604; Tue, 12 Mar 2024 22:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710308701; cv=pass; d=google.com; s=arc-20160816; b=vQoy4+qUShfyVjszztn6siS+E6WNxGyOMcyOHAblib6St1IuFBAoh9C2p3dt4Wvaak zl3/T99SspoAQpq24tCG5Wt4Ifj+l+1EQbuOVZZ9t7vVxPcO6VAEaY4qCOvzXVZQG0CI 0bYUguBpLyonwuqAwaVXoYCTEqoi5Mec9kaGcyZpXGPuOLyqHs+f1wpbNx5SnaIsydL0 jOcWh2fuZrIsuErc9fvjILMWLBQ9qmpxqODy3/UhKd1x9Rg6NRQYpHyUASon/6BhAfK3 rriJdkUQyzJqoQn/eJb1HPfrqHMBgXX/4+OO889uikh+hq88LVuxHJEtxEXSbwltALAP gEPQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AZ6K5SH22g8Y2zzXJKv//w/7GQ1CqncUAEa4pWOjUAM=; fh=aF7GZBWogMl1vYtQGrcZfmiuISEGZ7/2aY6MjnO4VqE=; b=QQxpVANBigMrJ2/trma5kAjj/IsTyoAYDM2ky/swxjPkc+GGDDZrK9NiZ3gKUJ45Nn pgKifbCscX7lj6HgtOOU2sJCvp9zjPFQBOCOoBf3wEp1NES5cCYhmcN4Qk/uZelJwpob 5I5m+0oxOAa4r/CDaIqEs5CxghhjSlGn0J82Xp28E5vT5OHKfJEuhVB+yca1xtewR2pU cKh/p3cSB+atr26Vxfl3QQkJqEKJXk+/HlNnLKZfBBS1DYlE0veYYZRJUu8K3e3932mX 8A5tA2aXjvEQepymoOmL4YrCKJTNQ0IvPQre1aPA2MdW1l0Xoe5hHKHg8aaLFPW7Q5Fx nTfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pmTv8jt1; 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-101126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101126-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 gb30-20020a170907961e00b00a463625f8a2si2135162ejc.298.2024.03.12.22.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 22:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101126-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=pmTv8jt1; 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-101126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101126-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 2244E1F22205 for ; Wed, 13 Mar 2024 05:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 332CB168A4; Wed, 13 Mar 2024 05:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="pmTv8jt1" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 1C87115AF9; Wed, 13 Mar 2024 05:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710308678; cv=none; b=iMdVHHIV2XVcjoxWI/wp9Aldbo3XiL4TUrkCeTsIwHihQYDTMikV4YP3XbFDw4FinOR50tBBXrf95p/BGe3p424m87wLVuT2etzsgSiFiUlRUEnbzk+tPWp7zM7kZjIKyZ9vh0lPROoGVjSApdnwP5/B8BF7CArJk1ddxuor00c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710308678; c=relaxed/simple; bh=eXgc5Alqb7RWL95uj0m+pDSd/qBmQuo8n+Ik6Q9+DVE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ci5jtt55JzBr1uPUVQcrtpiAVv0fE4KY8GweNvlBC0xCq3JiBnh0OKKtm8GwLbJ6j5q7wo0fguWeTYVUuhuDgHD+1jVt8vkiGGhwuhbmzZ1KcpDUj2PXFCiL6YldmmeirDjSRa67Z2LgJKY7OI43RDYLcyXirNX3+SxOMUopajo= 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=pmTv8jt1; arc=none smtp.client-ip=60.244.123.138 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: c2591678e0fc11eeb8927bc1f75efef4-20240313 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=AZ6K5SH22g8Y2zzXJKv//w/7GQ1CqncUAEa4pWOjUAM=; b=pmTv8jt1FJpsheP/aKF/DsWibPOhvUkYYb9rOmnP7y1gzgDujKE67jmYiqrxyMpBsSCHqqEuvBIwbrzmCDmzXFK046l7FL472d6jN+jD/wv19iHtJgqT14f/P+bY5eZ/XxqiA3R8F6v9CRZ0xTol1hnz7t9O+IQAKuuOnJKFSO0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:89d2399b-4de8-4004-b82c-8ee437783116,IP:0,U RL:25,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:c5e2f084-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|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_ULN X-UUID: c2591678e0fc11eeb8927bc1f75efef4-20240313 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1778113985; Wed, 13 Mar 2024 13:44:29 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 13 Mar 2024 13:44:28 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 13 Mar 2024 13:44:26 +0800 From: Zhi Mao To: , , , CC: , , , , , , , , , , <10572168@qq.com>, , , , , , , , , , , , , , , , Subject: [PATCH 1/2] media: dt-bindings: i2c: add GalaxyCore GC05A2 image sensor Date: Wed, 13 Mar 2024 13:44:08 +0800 Message-ID: <20240313054409.8073-2-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240313054409.8073-1-zhi.mao@mediatek.com> References: <20240313054409.8073-1-zhi.mao@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N Add YAML device tree binding for GC05A2 CMOS image sensor, and the relevant MAINTAINERS entries. Signed-off-by: Zhi Mao --- .../bindings/media/i2c/galaxycore,gc05a2.yaml | 112 ++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml new file mode 100644 index 000000000000..0e7a7b5ac89f --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2023 MediaTek Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc05a2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GalaxyCore gc05a2 1/5" 5M Pixel MIPI CSI-2 sensor + +maintainers: + - Zhi Mao + +description: + The gc05a2 is a raw image sensor with an MIPI CSI-2 image data + interface and CCI (I2C compatible) control bus. The output format + is raw Bayer. + +properties: + compatible: + const: galaxycore,gc05a2 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + dovdd-supply: true + + avdd-supply: true + + dvdd-supply: true + + reset-gpios: + description: Reference to the GPIO connected to the RESETB pin. + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: + Output port node, single endpoint describing the CSI-2 transmitter. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + oneOf: + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + - items: + - const: 1 + - const: 2 + + link-frequencies: true + + required: + - data-lanes + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - dovdd-supply + - avdd-supply + - dvdd-supply + - reset-gpios + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@37 { + compatible = "galaxycore,gc05a2"; + reg = <0x37>; + + clocks = <&gc05a2_clk>; + + reset-gpios = <&pio 21 GPIO_ACTIVE_LOW>; + + avdd-supply = <&gc05a2_avdd>; + dovdd-supply = <&gc05a2_dovdd>; + dvdd-supply = <&gc05a2_dvdd>; + + port { + sensor_out: endpoint { + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <448000000 224000000>; + remote-endpoint = <&seninf_csi_port_1_in>; + }; + }; + }; + }; + +... -- 2.25.1