From patchwork Tue Sep 26 09:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 144815 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1818828vqu; Tue, 26 Sep 2023 03:51:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrbkPOQLeByye4KJEoML64/urEqmf1GUEE97fX6T2T9+r4H+e5JTc+cu4Y/YXd+zwcqaHv X-Received: by 2002:a17:902:e743:b0:1c3:6251:a78 with SMTP id p3-20020a170902e74300b001c362510a78mr8114095plf.3.1695725465179; Tue, 26 Sep 2023 03:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695725465; cv=none; d=google.com; s=arc-20160816; b=yL2Ld+KKkWXJ7n4/fc0RIF1cBWp0AitmSyuhl6ej1E4hxLefPIfxlohy+NLB+KQ4BX r5FSLyccnwgx+WVgzqQsOsquFqbGFNtb92wvke09v2Fm0/QK1mVS4AWlLuVp3UdWvENq G+2gL8BPbNnq57GUTVR92umdIieMjpUpbSD9pjqJoXf5VJEcqTIIbsIwBQgKxeIiuGJx bBEUH0+J9N7PKdhOnVo6DVdxTLcRbe3km8FJFLIepDH2tktWTNuiwixJR+PcUQnfBbnb ivsfB/c8Jfbp7uVGq9CgSaYBvk5599+n/WiEwHx5g6JbJt/5iUb1KM7V3CIi0VL7H8BC Ez1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tU4y4rww+u+vWpGqbMDb1c4BTepYhbJ/N2yy4RTD7j8=; fh=Zqm0lawtt9TqRUQHNSIC22PzrUFnyZjD7dqsaeH82F4=; b=X7lsJh6ZFd3dssNY2+RqCamXKtXrTMxI9BbNXlWKiZfTV1//vd3SlnSvwiTLtFDED9 Q53ntmtJB6XuEKYMD01S1p1C5IjsRiIz2Sral4t6+7H9j1PYdCmXbU709EVSSiXn8vIZ QkkDfruo101M0HE8kUbbY5YgAjoTe5zxhPhca7SOqsR8lMvMVdMj/8a5SwesNrIxzd6+ TeQSpIpYSaZGD+khX+mZIbPqpI6xZGRBDNeygpAlop6KMz/3tpgbqBeGmXOgR1Dl5BaR nd6ke0wvMpOKN1n0y+3OzMh2xdxlCbUNmnJBEOwxSN8qHnaUww9P/Asi4KBhr2BH5vuA JtIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=vYcocHuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d7-20020a170902cec700b001c5c632aea4si13549270plg.217.2023.09.26.03.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:51:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=vYcocHuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 39D09825B48E; Tue, 26 Sep 2023 02:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234204AbjIZJ3O (ORCPT + 27 others); Tue, 26 Sep 2023 05:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234255AbjIZJ3I (ORCPT ); Tue, 26 Sep 2023 05:29:08 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EBF120; Tue, 26 Sep 2023 02:28:54 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38Q6x9Cm001756; Tue, 26 Sep 2023 11:28:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=tU4y4rww+u+vWpGqbMDb1c4BTepYhbJ/N2yy4RTD7j8=; b=vY cocHuS+0kK/uHhyzDGnbCSzU7deJ9AAE5acP+Q2lDij71l+1TcBTWno+URTIleca DVPw1amFgUQr5oKAhxSTGuzCjCQmd0no+qi1sQcWO3Xk+vr2TfHbNw2buxg4QKl0 EKkO7C7F7BVH3bp8Pig7LbkpC6gF0Lp+VBn3m5hQM11NnkcPGq+Yikp1piymSFkG BSj67wryss3TRfgtv749xpR8bAha9FB7XcO7MHdSoaSu+lrZUwISV3qBbHKuJwiO NioP15c7UMKd2WPM8c23IpuQZOfjh+s4Baj6Q6ytI5FlSTdX/vIUjesLWs9qtRp5 VliNxSzA+5A9tffR9Deg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t9pwd453p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 11:28:47 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 22219100059; Tue, 26 Sep 2023 11:28:47 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1656222FA51; Tue, 26 Sep 2023 11:28:47 +0200 (CEST) Received: from localhost (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 26 Sep 2023 11:28:46 +0200 From: Alain Volmat To: Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Andrey Skvortsov , Rob Herring , , , Subject: [PATCH 1/2] dt-bindings: media: i2c: add galaxycore,gc2145 dt-bindings Date: Tue, 26 Sep 2023 11:28:19 +0200 Message-ID: <20230926092825.819229-2-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230926092825.819229-1-alain.volmat@foss.st.com> References: <20230926092825.819229-1-alain.volmat@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_07,2023-09-25_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:29:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778097025744302846 X-GMAIL-MSGID: 1778097025744302846 Introduction of the Galaxy Core GC2145 XVGA CMOS camera sensor. Signed-off-by: Alain Volmat --- .../bindings/media/i2c/galaxycore,gc2145.yaml | 108 ++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml new file mode 100644 index 000000000000..e80b581498fc --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc2145.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Galaxy Core 1/5'' UXGA CMOS Image Sensor + +maintainers: + - Alain Volmat + +description: | + The Galaxy Core GC2145 is a high quality 2 Mega CMOS image sensor, for mobile + phone camera applications and digital camera products. GC2145 incorporates a + 1616V x 1232H active pixel array, on-chip 10-bit ADC, and image signal + processor. It is programmable through an I2C interface. Image data is sent + either through a parallel interface or through MIPI CSI-2. + +allOf: + - $ref: ../video-interface-devices.yaml# + +properties: + compatible: + const: galaxycore,gc2145 + + reg: + enum: + - 0x3c + + clocks: + description: Reference to the xclk clock. + maxItems: 1 + + powerdown-gpios: + description: GPIO descriptor for the powerdown pin. + maxItems: 1 + + reset-gpios: + description: GPIO descriptor for the reset pin. + maxItems: 1 + + IOVDD-supply: + description: Power Supply for I/O circuits (1.7 - 3V). + + AVDD-supply: + description: Power for analog circuit/sensor array (2.7 - 3V). + + DVDD-supply: + description: Power for digital core (1.7 - 1.9V). + + orientation: true + + rotation: true + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + required: + - endpoint + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - powerdown-gpios + - reset-gpios + - IOVDD-supply + - AVDD-supply + - DVDD-supply + - port + +additionalProperties: false + +examples: + - | + #include + + i2c5 { + #address-cells = <1>; + #size-cells = <0>; + + gc2145@3c { + compatible = "galaxycore,gc2145"; + reg = <0x3c>; + clocks = <&clk_ext_camera>; + IOVDD-supply = <&scmi_v3v3_sw>; + AVDD-supply = <&scmi_v3v3_sw>; + DVDD-supply = <&scmi_v3v3_sw>; + powerdown-gpios = <&mcp23017 3 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>; + reset-gpios = <&mcp23017 4 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>; + + port { + endpoint { + remote-endpoint = <&mipid02_0>; + data-lanes = <1 2>; + }; + }; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 573578db9509..d9df03bba5bb 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -494,6 +494,8 @@ patternProperties: description: Fujitsu Ltd. "^fxtec,.*": description: FX Technology Ltd. + "^galaxycore,.*": + description: Galaxy Core Inc. "^gardena,.*": description: GARDENA GmbH "^gateworks,.*":