Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp213586lqa; Fri, 26 Apr 2024 22:23:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYd02F2fX2QO2MhINJpIDUDcKIjkGYIC/0ZJ0F8hvH0GG615+ENROl/NoFAtlv7lv8bUxt+6O9WLuJGV98riESm5ZRZKXGjwm7nkrmbQ== X-Google-Smtp-Source: AGHT+IF3KxFk5wUvm6YqVa+cD1ZUoW4HPGkI0W59nKES3P2TiesPZ1aO0TXv2tLnbOkB5jVwb9m6 X-Received: by 2002:a05:622a:130b:b0:439:e82a:c8bf with SMTP id v11-20020a05622a130b00b00439e82ac8bfmr9081726qtk.4.1714195400156; Fri, 26 Apr 2024 22:23:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714195400; cv=pass; d=google.com; s=arc-20160816; b=YT/hZ+uNp+s9uV8gPz7AxPVMsmXx97anZUPge8MeuTxx0fpHDNMkGfEbfAEiYFMWtS CJ1coqdshqDRwtY7KYkQmXvSbCuyr76+nR6zTjE4nKacWtaISQMzGhXX6wz4bFxSWNjH 7TaJmSpxZsPBGXqnOLdHEXWyUqR/3ceoB9XUPbGzFG/FZEJRGkbd/Z01AfkqPE1jwjaj sIPFhgFNHFoovV9ILIrQd2oNU0sFCtQMso5QgWGpIHWnHA8wuWbWlVI6Ghae0l0aqxRF 4hVUIyFPkXIbUOZ1BrWO0DJocXLDfWXVXdqZb4GhKtMJ4RXIHTZXphiQ4lei87ezz7Gl g7ew== 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=RfXxZqRO1iT2ixVp89TG5IOSKAmXlSsHm4PrhfIZCQc=; fh=POLa3/LfCgfZENPJe1wmenHipvLxnBbMtUW0zgkKy5g=; b=rDug+/ylZVTgxMwHlsdzWWrkxh9W7otdo07rkTXEDdeoGFUSLypg+OmhAchRXN2Utm ufiY9kroTSUmJliwBv2AFSSjtzKKQOdC1qHyZdZ75bjJD7G14MhfpbNf3ogUNYiQ7Av3 h6fVhZul057nUzWI13GysRZiH1H/yfxlFAg1czg3I7HJGfPon59bh/0QI9Y01uNPb7To CUMoLnXqJe5FIg43r1IJ94405nDqFKJ8Ay5iEzpA1m5J4wicwYeOoF3cUG/hL0vtnoUw BhI5oZzfc0jYxi/g/Og++bgGfxF7y5HPIl1IJa3Qjj9JmicnBG+0T6kG2vwplNLz99dt L+JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="okAd/Bks"; 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-160902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160902-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bs5-20020ac86f05000000b0043a09afe8b9si10381036qtb.128.2024.04.26.22.23.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 22:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="okAd/Bks"; 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-160902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160902-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 C82931C224DC for ; Sat, 27 Apr 2024 05:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB743405FC; Sat, 27 Apr 2024 05:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="okAd/Bks" 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 E54A13FB2F; Sat, 27 Apr 2024 05:23:06 +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=1714195389; cv=none; b=ual9kXyFMppSEJKUlfm5DZqkDfaTXdyokdVW9JmMuqfAI3uwJS5TVvx145P84ahl7pYbMMa+oZW0Wy1dLTY85x0JEEqbyJB3k9y3fWYK1wxEnKdUzdb+Hiwwi+QjX1OZx9eiiRXA42ghaW/qLlG8I61W3LW9xuAZq1ujp8LvoK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714195389; c=relaxed/simple; bh=DKCEeBKb6zTzx+KUvUYnkQTiMPCaOizcQv9q6x3j1n4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xi869EomJBClmga35h8zRhSIDtdOatOywWyUTS5gl6KeTSEmc66XTIOkipFFF9/oZk7wgbYWzSvwIYLlXKhYbyqPySjA5dJTyXjvbkQzQV1BEG3D5Mt9YrhiJRDEeIapMODZ+AehacpPSbnS6ebeUgz3qZREacOQuQZeghrF/6U= 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=okAd/Bks; 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: 37421d64045611ef8065b7b53f7091ad-20240427 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=RfXxZqRO1iT2ixVp89TG5IOSKAmXlSsHm4PrhfIZCQc=; b=okAd/Bks0eWKy5H+dGqEmVrtWT/KMXMOGLfsg3fuuHJnod5pxt4P9XN5pg4KtHAhQhYibpQjh+Ppg67oX91GRJLHFbxcmoDVXhLLTwpg1blDRMf4WbXpujQ1xLPCjvPPO7D39yT4B93l6Qly21FWWHx923Ob6cHmFB6ZfX3UgnY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:d2b52cd6-aa57-48ae-a66a-bcd152701223,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:82c5f88,CLOUDID:666eac86-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_ULN,TF_CID_SPAM_SNR X-UUID: 37421d64045611ef8065b7b53f7091ad-20240427 Received: from mtkmbs09n1.mediatek.inc [(172.21.101.35)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 619366222; Sat, 27 Apr 2024 13:23:01 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) 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; Sat, 27 Apr 2024 13:22:59 +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; Sat, 27 Apr 2024 13:22:58 +0800 From: Zhi Mao To: , , , CC: , , , , , , , , , , <10572168@qq.com>, , , , , , , , , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v4 1/2] media: dt-bindings: i2c: add GalaxyCore GC05A2 image sensor Date: Sat, 27 Apr 2024 13:22:31 +0800 Message-ID: <20240427052233.8915-2-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240427052233.8915-1-zhi.mao@mediatek.com> References: <20240427052233.8915-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. Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno 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