Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp538889rdb; Fri, 17 Nov 2023 06:11:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8qzRwtuyPMnDJf4Z6wccYu+yvF64MUSQorxiyXVmtKJcTqKwxnFhF/+BiC3oWJzQjfENo X-Received: by 2002:a05:6871:7888:b0:1e9:a741:44f3 with SMTP id oz8-20020a056871788800b001e9a74144f3mr21340382oac.14.1700230276169; Fri, 17 Nov 2023 06:11:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700230276; cv=none; d=google.com; s=arc-20160816; b=N0ElPIdtAqaP1t2i5o33z3bZZwmPyIYjkKLyGVefbvi2NR+Hd1aquDX3oHU/0umDU1 ivGpXNdjHxCkQ7JunSbIIQB+Tu612+RG8z+jh+w3MF3cZCW0YXFPErpLBuqs/Ko966jj SVX7GbqPKi71joAsM+cs9U2Znb0HVPE4ffxqBNgckeTQ8+xmxaAZE9Y38tNIwlahSRGf Zz2ehhwOIQ4uRHeOYDcy+jCVsDIdaxVDdiU7YswJnaE8NSZGzPaSyQNw8suEuATYtJ4d Umh3fsLNZad8WdJNyeBdlMImSRk9SGN0jtrQZiyLI3lWwuvRwFqabK/yAN6yYuNFW4ss B3tA== 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=nhCVb9/ufGDkUspAqK4Ca8baYbZP5+/oHMkFDnE6y1g=; fh=JOFv887gsK7Y/frcVPeoXJxYA9/FrJoea5E7zNbvviU=; b=lp3gwmfk0c3cgXcfV5GLI2IeXh35BWbBJT8A+5DZQVCSugtqsS0ehtAZdQZ4gJGZN0 eBMMPZCNMda/t2P9NVwCW4ehCR8JSlAM8C1UC+M3L87VIXC8St4J07rMQDjyNRrd4Cwe t/17Hn9UfBJiL2ZQNgjGU/IWZRK25prYk4tSdsso5pFJgBEQ/XRD825xki2xXUpc2OfD sjT6jhHQMeDLldilAIh2WdM77vj338U1HHLCMRnQfFD9H8cQTr0fHHDJoBvQR+n3VP0H ax3IMYBXxbc+4NhuINRCUAhlXbG70p1wg2L9rYSWNjZJvjlooWAr6FG0tokFt7WH10lH ONAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=wqpyb+mu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w9-20020a9d6389000000b006ce2f5923e7si567249otk.313.2023.11.17.06.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:11:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=wqpyb+mu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 725D4801E957; Fri, 17 Nov 2023 06:11:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231744AbjKQOLK (ORCPT + 99 others); Fri, 17 Nov 2023 09:11:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232279AbjKQOLH (ORCPT ); Fri, 17 Nov 2023 09:11:07 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38BC10D5; Fri, 17 Nov 2023 06:11:01 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3AHB6RNb030464; Fri, 17 Nov 2023 15:10:49 +0100 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=nhCVb9/ufGDkUspAqK4Ca8baYbZP5+/oHMkFDnE6y1g=; b=wq pyb+muqYgVm6ayUbj14jUE/tbnAx6B47oyHP2gN5/U6etoMrNbNjlxE7nGTlZkq5 DOo03uHm7f4e3DmT08zS587u5k2ovrkIff0w712MIHkqlu6Dr03tKI4Hv5yG/WKg rfxtL9jnRokM2M9/BSOvVsmEEpnY89lUknxN+HPX2HzOVPAKyPJxzlVG2llldJ9J Z2WJE3CN4EJODhgkXLm+U/5hlEqTljmzKtxZn7GCPhOiRVcfYEClgDM49JfPpwnF /d+pXH4BJUFH/A3Tzuc+AJSckTlTi/r+tkppDfIVXaL7Qs9PBim7u3QpCPNqetBj H4mLMu8dcH5jfuREluXQ== 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 3ua1u2bp3f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 15:10:49 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A0A2910002A; Fri, 17 Nov 2023 15:10:48 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9749D22FA22; Fri, 17 Nov 2023 15:10:48 +0100 (CET) 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; Fri, 17 Nov 2023 15:10:48 +0100 From: Alain Volmat To: Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Sakari Ailus , Jacopo Mondi , Kieran Bingham , Pavel Machek , Conor Dooley , Rob Herring , , , Subject: [PATCH v4 2/3] dt-bindings: media: i2c: add galaxycore,gc2145 dt-bindings Date: Fri, 17 Nov 2023 15:09:41 +0100 Message-ID: <20231117140947.540669-3-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231117140947.540669-1-alain.volmat@foss.st.com> References: <20231117140947.540669-1-alain.volmat@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_12,2023-11-17_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:11:13 -0800 (PST) Introduction of the Galaxy Core GC2145 XVGA CMOS camera sensor. Signed-off-by: Alain Volmat Reviewed-by: Conor Dooley --- v4: add link-frequencies & correct description .../bindings/media/i2c/galaxycore,gc2145.yaml | 113 ++++++++++++++++++ 1 file changed, 113 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..1726ecca4c77 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc2145.yaml @@ -0,0 +1,113 @@ +# 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 2 Megapixel 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 allowing AE/AWB/interpolation/de-noise/color-conversion and + gamma correction. Bayer RGB, RGB565 and YCbCr 4:2:2 can be provided by the + sensor. 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: + const: 0x3c + + clocks: + maxItems: 1 + + powerdown-gpios: + maxItems: 1 + + reset-gpios: + 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 + + properties: + link-frequencies: true + + required: + - link-frequencies + + required: + - endpoint + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - powerdown-gpios + - reset-gpios + - iovdd-supply + - avdd-supply + - dvdd-supply + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@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>; + link-frequencies = /bits/ 64 <120000000 192000000 240000000>; + }; + }; + }; + }; + +... -- 2.25.1