Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp143904lqb; Fri, 15 Mar 2024 19:54:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiTXJ3RvIJYaf2cX8bjRJ8JvKB1oWPuhO2FhuUKVEow44EzdqwSV/ti2R+MYlCkQNPGKPG++Alj2x9fBKYSkAPR9Z65h51bDNJjk9xFQ== X-Google-Smtp-Source: AGHT+IGohQapOrmxKuyH5bvMHmBFQkMbEHEQFgSF9hem4sij6KuEPZtqcjujWDjMBWfrljoActmg X-Received: by 2002:ac2:4425:0:b0:513:2900:1f5c with SMTP id w5-20020ac24425000000b0051329001f5cmr4311502lfl.59.1710557644363; Fri, 15 Mar 2024 19:54:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710557644; cv=pass; d=google.com; s=arc-20160816; b=0+9L2ezyua4m1LCAtXtjqL9u16Hs+nV0K3z+0LALecY8vRJicJjlVtQC35elhSpH+k zmyZDCmDXofMdffjKbJ4H1g+tLktqzLBU/9gKRQJqj6CPZt3/PI1XVszz6Sg66U2dWzy WNiVSNwak76uEPQZIyjXNPZXt4zOjYuNOI6JsQZi7GAc72taEo0fYl389F3JIIMWefT6 Igv1UnFsk3MnS0h1oZ7pDmM9qJ51XpdtVwviTAdtlR8Mux/ROMYwapoUxC6mxjh+2xsK 0NR9cr52ZC1TH1Q7NgJDAXKyeNZZJrUSktu5Pfl6zXuFUEIuJEZNz4RzXnZfFFBz9xlv 6Nlw== 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=d+YZNbe15Xpk4oIV6HxvQ+l7RP7JvdeluMPoAHyejCU=; fh=POLa3/LfCgfZENPJe1wmenHipvLxnBbMtUW0zgkKy5g=; b=nk+K4/ksulxs90mrBJnNeQRwQnS7NY+Kp33ctN9Wx80t5dcS6rij+05E3AkETEjz2a G4kl6eC6FuO6TdlN3zJSoc829sn4o26B9QGvRNtDkGscVAOnGvEPWiql+mBxYdWW8mp4 6zjnnsfj+Z2V5IKDwFZKQeMha4vgwBXlu9s1BIe5MeBLvZRhO7pJXnRI/LyY/uSsf1JG P6nX5imdj4FCN3XPhvITotr26gcj5Egoeui+gsSzxpO3Q4kLTqGZGF9s3JNjuAgvDMR2 YXb6W/gQofGrTgl7i90csPXhWlQYjLXG0mNtD8U2CzOLZeYz+hTSPqbr/NNjb6DzwdN7 niQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=oC36SNK+; 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-105040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105040-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 e27-20020a170906375b00b00a45c4ca579dsi2212405ejc.257.2024.03.15.19.54.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 19:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105040-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=oC36SNK+; 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-105040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105040-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 E2A361F218B6 for ; Sat, 16 Mar 2024 02:54:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C82D5695; Sat, 16 Mar 2024 02:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="oC36SNK+" 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 32154641; Sat, 16 Mar 2024 02:53:24 +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=1710557607; cv=none; b=NjhdIdKpO1iJCgOA5dcjMsfy8lWQCqJ0iwKpha6xzznYMVMwcmSPSTvNvecRWODECRzthnwQY0RQ6yp1N5iPnPKDH+jVOPttmgwZpcT8LaIqOBy5TGwXvsGxP89di+F31/8v5N4dxg4FaOHwJjCzdjov3O1qoo9ZwrHUaJjXVNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710557607; c=relaxed/simple; bh=uwemOh8dUcRv7NFeE/7oD8keorTI6TKajDU4g71uvwo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XyEGAY5/Y6DS/YlXxLoXF38l4JtDujJUDDYzMapSE3FLWLiIgvHCcFwuNisYbVRD85KLF/ukpcf8UEbLS3pzmgIZBFapoKt6l2M+Z+s1gaVZOFngbux7+dMhEMTe9/uh2zhtJdgtrB5K8H3M2XL74XNQqLNnQ7z4Vnk/j759QIA= 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=oC36SNK+; 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: 5a0cb502e34011eeb8927bc1f75efef4-20240316 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=d+YZNbe15Xpk4oIV6HxvQ+l7RP7JvdeluMPoAHyejCU=; b=oC36SNK+5lzpFr1MsBrnPn6ZOj1PSHsLpno6QRxLX8WclMvtu+g3E6hUqyg8kb0U0qD8Fg+9r4adr8SqDq/pmbfw45F9/wBcPa3DcoCDceTIzBH1YUt28g9ygnPMS/b5Yodz/N9ZnbjjRlMFPmikMk9q0B9+4hlpPXYnPVNNw/g=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:1f19968b-376c-44d7-bbb8-59876084c57a,IP:0,U RL:25,TC:0,Content:-25,EDM:25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:25 X-CID-META: VersionHash:6f543d0,CLOUDID:20dd8f81-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:5,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: 5a0cb502e34011eeb8927bc1f75efef4-20240316 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 534546429; Sat, 16 Mar 2024 10:53:22 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Sat, 16 Mar 2024 10:53:18 +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, 16 Mar 2024 10:53:16 +0800 From: Zhi Mao To: , , , CC: , , , , , , , , , , <10572168@qq.com>, , , , , , , , , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v1 1/2] media: dt-bindings: i2c: add GalaxyCore GC05A2 image sensor Date: Sat, 16 Mar 2024 10:52:52 +0800 Message-ID: <20240316025253.2300-2-zhi.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240316025253.2300-1-zhi.mao@mediatek.com> References: <20240316025253.2300-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--2.207600-8.000000 X-TMASE-MatchedRID: y64C6oV0e4euhCBFl/b63mNW0DAjL5p+TJDl9FKHbrm7qpOHKudqczQz 47GqDWjpnD3AxwqeC/rkllaluas5jhhzK7qAlTSLbBu6+EIezdzi7rw6Es9+PWc8hpiIXjqI95g DS6/KArcBUSTe1MynCuLq62s6J248mXR/sc2rXAQMH4SsGvRsA7WWqrjofQpmmyiLZetSf8lBgw 5G4NYCZN9pjzubZ2rHWBd6ltyXuvushbk/v3kH7kRpXXBfVDcPLSqvYVxyahYnFdz0ffaJTUaK+ guxj8KtpaWGUo6DBm9p78pCxSTxhD0ypfR/8T6Vik4eJsuMEfWElVGWRzS6/kYFeh7KssddUGjj bmeia+IPZN5fBGmCHKL6Q11UB8yDftwZ3X11IV0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.207600-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 57891FBDDCDC1EBC208460CD76357C8FCDF3F744813EA8663D183AB29903A6122000:8 X-MTK: N Add YAML device tree binding for GC05A2 CMOS image sensor, and the relevant MAINTAINERS entries. Reviewed-by: Krzysztof Kozlowski 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