Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1521260lqp; Fri, 22 Mar 2024 19:39:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/odZT2yoZCnagCWvRXFp4PgPHLPKgu7sjGlPmPgSAlIkfnySZYB/RYb5yz7rYvz648RwUa5chWiSJhNrvjPg9HqYGYbDK9Ywk13tRmw== X-Google-Smtp-Source: AGHT+IFfZrmLw4U/9FQJ/2Y53PoxXyYbmLbwxDORBN2vwVlgUdvZljGNceBetQzgZ3R3M/pL82qK X-Received: by 2002:a17:902:e5c7:b0:1e0:9d43:55cb with SMTP id u7-20020a170902e5c700b001e09d4355cbmr863688plf.34.1711161586830; Fri, 22 Mar 2024 19:39:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711161586; cv=pass; d=google.com; s=arc-20160816; b=TEAYlzUZnWOG4ct60nmSRisQKbQneflm2UVvs8qh9kGBj47svnUlxQpeTIx0sReDJ6 YFUb0KcXwltT/animWodA0O5xSg968ulGVjwDc0N70WaJdhMZLJuWtMhzbrLnhYQKW8Q sG/t8iGJh37Ia46u7OUqWPBLDAcKl5P+cVypmO2eu/rukGlypqA3H3Gonz3p76J66LuK cHUgixFFFFdh1FTYabGBRP0LL8WpQzUTVQaHYNlCM+R3sRrmLQBC6Edf99TOGXHUNGx2 G1uYhf5nq+rh04e1GG/V1YQUH0C5l0MDMDDw9vItuuijrmCw+HqSLDXC0tcFH2ioEgrk DZ2g== 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=POLa3/LfCgfZENPJe1wmenHipvLxnBbMtUW0zgkKy5g=; b=gODH2IrCx2h6P5pu6kcex9ur/afeBzpwNqTZgEl+0bXP2rKyJ7Pg4opCJqR/JWREen 9C/hk2Bbgr+FqIrVOkYmnCALriTCuDu8nDkIqFI8FbsXYG5BtGdbHaAc89C/dvE6jRxc I6GPMmIct9zinEYd/9w6ZA0DJlIjRZHNWVFaB5jhag2vmQXCM6gVGE2D4T96bAgxw3fh lXNshsxLLuHj5GXTFL40/HvKT5fktR6JLKtdD+SANhAQppt+Ja6uRKunS+7lY1B4kaU7 q3Ndg9J4wsERo/Pkm65icbFqlHGNo5cpgV/LdQVYsRIqIja02yMYD+fjgTfx+7HxHolK BDpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZIIXMvzh; 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-112187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l3-20020a170903244300b001d9c37d7188si750831pls.201.2024.03.22.19.39.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 19:39:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZIIXMvzh; 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-112187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112187-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 708BD283C49 for ; Sat, 23 Mar 2024 02:39:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EAB33FE4; Sat, 23 Mar 2024 02:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="ZIIXMvzh" 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 4CBC01362; Sat, 23 Mar 2024 02:39:32 +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=1711161575; cv=none; b=XOxzuNt/yYZ6w3j0/d6G1mxTuRhRqT9pYld63I8HUbkf1OOyaYk4JgWw5zkycyQWM6y0gN8gmFEMpqf71/FK7H6Wjwg8dHNFzD3tlMhNjcfYg7II+xII4aQLUT29yZs4zU7EIBRYQWrlb0Z99aLMJGBaSbV3vYp8+45irLVvaEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711161575; c=relaxed/simple; bh=2RG2E/UFqgnbXPljsptLHfNRRADcOVlXP2AOD0Bh7NM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IcTVe1c0GgGPQw4dOdrhGcOyaowS/VPjM6sw67fo/m39mgIWnciE0ifslxfBBvaQT/klaDcOeTWZCHYw/wpbQ4/FvQh26GA3xdifQxaJ0nSR6aj/UhcCm+C4AMOkAR18/p+1RupuHBTiv6Q7RKKgcmEaI0QW2bdwwZQAct9hsoA= 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=ZIIXMvzh; 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: 91c4402ce8be11ee935d6952f98a51a9-20240323 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=ZIIXMvzh1eUEDgZ/3AbCAUf3HywVOMsh/etCsknh+irEFtAjjchP2g+DxPYAD7tulnpJneaWBmIvcEfJn34MA2n09o1NseCvZPjtGFwYtv+BA0AV5qV9mSoiZrssgZWnHZom9jxPBXHmSN6+qofumf7+42XuDa2t6zBu9c/Fipo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:87556bb8-2d06-43b5-98ae-0b7aa7012cbc,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:5eacbb90-e2c0-40b0-a8fe-7c7e47299109,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: 91c4402ce8be11ee935d6952f98a51a9-20240323 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 901531984; Sat, 23 Mar 2024 10:39:28 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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, 23 Mar 2024 10:39:26 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Sat, 23 Mar 2024 10:39:25 +0800 From: Zhi Mao To: , , , CC: , , , , , , , , , , <10572168@qq.com>, , , , , , , , , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v8 1/2] media: dt-bindings: i2c: add GalaxyCore GC08A3 image sensor Date: Sat, 23 Mar 2024 10:38:50 +0800 Message-ID: <20240323023851.5503-2-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240323023851.5503-1-zhi.mao@mediatek.com> References: <20240323023851.5503-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 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