Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1651582rbb; Mon, 26 Feb 2024 17:33:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFvBhi9+crHa+snzY6K4OQD7oaUDzLGktDObd0SaKmy1eUIEigKIMyQf+kQ3mTXWnInuacXIMAjXXAix4AXUtHycHe4se0Ed3uCfZoVg== X-Google-Smtp-Source: AGHT+IHaw+2E5Vg99VEj9L6bsqILIP+iQlNapWx1NldW4C35Gkt2Pv0uZp5IK1nKplogyQh5v1Wm X-Received: by 2002:aa7:c908:0:b0:565:df8c:6a27 with SMTP id b8-20020aa7c908000000b00565df8c6a27mr3191454edt.20.1708997618326; Mon, 26 Feb 2024 17:33:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708997618; cv=pass; d=google.com; s=arc-20160816; b=qL+7SV88nD1prFcgwX8thizCVMAwXaFsGZAhj65QFSw1WM1NKLmlDNUhjAvi7addDr uBVt3Pu0Zv6M03VPo4kuiEx+XTGauWyjltEDYpwkuf6YrlaIQ2dkkmEFpD0jV18knS61 tQZbZFu8l9ghOCtyYusbcvClkHQrGuyWmvPR11tKKerbqSORp0PBQhNdk4E2tzgARoVM zFEb+YM2RAAOgBysEYP7KhX0zuy4fyyun913wDHz3yQGl3nVIihXonbmp6QOx6ZI/9EP jvjwSiDp4b3/FUqWMLJosyzakMOTGVeJKZXmdcuTi9j2+055gYq+0tRdedNzMdHVTmDR MyiQ== 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=WGM2xlUH+VnRPefY+jxFlDJ/PMiE4bAj+VUcZaPnKPw=; fh=XoHnCzXXj5ayDSwWAKAre8pp6vsiDVBNIRcMKMdSys8=; b=drcpdEqUenKGcUE6iIHDn4XR7TzYN7Sy7SLXgO0UyFZmSE3gptTi5oS89jNMwvDg50 n/sC7ZRs6nbfTD9obxJz3M7ZTGaYAHyJOEmUjrjAeig+gOm9qYdXHyg2MTNOhwczG80P rfwqBz0jdmW9oZL+1bfOUhQZacIObqdQVjOHiOuVdF4XwQcMzLq8/zd7KwXm5t4S74Hz Q635+kss1Ogi52B8IcUbUa+RivCnow3KWqBRusQsymymwSwXe591+wBNE6DiwlhWTTbF WAOvzR4e40ou1srRp7kEmjclqNRR6EBEwz8h6ORYzHTXC0f8xR4w9sEZTlEMZaT2PRqK qzYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=goSjsCFB; 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-82533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82533-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. [147.75.80.249]) by mx.google.com with ESMTPS id a3-20020a509b43000000b005660baf9c8bsi250552edj.518.2024.02.26.17.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=goSjsCFB; 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-82533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82533-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 DDC121F25093 for ; Tue, 27 Feb 2024 01:33:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 019591170F; Tue, 27 Feb 2024 01:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="goSjsCFB" 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 43483107A0; Tue, 27 Feb 2024 01:32:53 +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=1708997577; cv=none; b=q1u/1iJrqZccYK0D+XFTkwHz2EUpUjjyD7pw/La/9juJQxYnOplcEhwvp7gyiOJyKxHAHz9bWR3SzpjDnDEDVqK4McKsdgvm8ZYO2VJzzRxbIGkivmZPYHff6lWOgxA/Ahzh78MP5p2B72jufXrnICNVIDK1x7x8mjbN7rJizFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708997577; c=relaxed/simple; bh=2RG2E/UFqgnbXPljsptLHfNRRADcOVlXP2AOD0Bh7NM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=liaqOWwiJjjYi3JexxPPm6NHwigbB5lANMXAK3475jtgQAp+kwYsszxxCFuzC8wlugTklgYaDmMfdiEy0lxE9VHfNEAEe61wNR3J/MNlKdsnlZ7qrIEzLp8tjQyouKxgfbbHqt5KVt1TcwuhV9yjjAke15FZrZdEkZEufd8GqwQ= 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=goSjsCFB; 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: 1c5265ecd51011eea528b71b88a53856-20240227 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=WGM2xlUH+VnRPefY+jxFlDJ/PMiE4bAj+VUcZaPnKPw=; b=goSjsCFBY91cOiqvdW+PQIyzYL/IFYT1ddRS1bYrPsTAZw1laikZxIbuxgPitzRGDuByiYEhmH5BGFo6/xoc6i7xgL1SJLNxToSn/MBZsYa4VZJmYVSOzmUU5w4Zt5JmP0U39JyP3F3HVkJ+WExeFKkio1CXHQ84YEMYshfIxR4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:6010b34c-6a2f-43a1-8354-6de5fe272ff1,IP:0,U RL:25,TC:0,Content:-25,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,AC TION:release,TS:-30 X-CID-META: VersionHash:6f543d0,CLOUDID:7de2bf8f-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L: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: 1c5265ecd51011eea528b71b88a53856-20240227 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 714284167; Tue, 27 Feb 2024 09:32:46 +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; Tue, 27 Feb 2024 09:32:42 +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:40 +0800 From: Zhi Mao To: , , , CC: , , , <10572168@qq.com>, , , , , , , , , , , , , , , , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v6 1/2] media: dt-bindings: i2c: add GalaxyCore GC08A3 image sensor Date: Tue, 27 Feb 2024 09:32:20 +0800 Message-ID: <20240227013221.21512-2-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240227013221.21512-1-zhi.mao@mediatek.com> References: <20240227013221.21512-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-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--0.968900-8.000000 X-TMASE-MatchedRID: +k55+NgUc6auhCBFl/b63mNW0DAjL5p+2OoWG7QYjlf3dSKTMI31W4pb wG9fIuITLSHDQi/tZU+OEmLXxEuoAga1NXbjqus0tw+xHnsmQjNr9+Kgn2XgeNzOQo7mTgA+57c xCyBlHwbpQZnnRXC6oMWzxqRqOwxXpU8ma7Rqiadx+x1f5juFE5sqkCVjbLpJ28l5OWBiHnp1ck b1kkWq5+LzNWBegCW2U9w4XVXDWCYLbigRnpKlKZvjAepGmdoOAUFqY+NqnNv8G/3W6Jm7mUDyG dcej1TJ1rGWrh6bvs9ijfCOzR555518RKnPbVumKlUik08/sidxh3xO7JMUGfyvrk/UO3Gm8jae 4OD13tAV7Mc+rowcVKtX/F0pBwVJjSV5hDFby7ZnIxZyJs78kg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.968900-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: BB8DDD59EE5655BBBC8128D2A52F9942F133F99FA6C3B53BAC581DF9883334EA2000:8 X-MTK: N Add YAML device tree binding for GC08A3 CMOS image sensor, and the relevant MAINTAINERS entries. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Zhi Mao --- .../bindings/media/i2c/galaxycore,gc08a3.yaml | 112 ++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml new file mode 100644 index 000000000000..51b8ece09c72 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.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,gc08a3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GalaxyCore gc08a3 1/4" 8M Pixel MIPI CSI-2 sensor + +maintainers: + - Zhi Mao + +description: + The gc08a3 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,gc08a3 + + 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@31 { + compatible = "galaxycore,gc08a3"; + reg = <0x31>; + + clocks = <&gc08a3_clk>; + + reset-gpios = <&pio 19 GPIO_ACTIVE_LOW>; + + avdd-supply = <&gc08a3_avdd>; + dovdd-supply = <&gc08a3_dovdd>; + dvdd-supply = <&gc08a3_dvdd>; + + port { + sensor_out: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <336000000 207000000>; + remote-endpoint = <&seninf_csi_port_0_in>; + }; + }; + }; + }; + +... -- 2.25.1