From patchwork Wed Nov 22 07:39:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 168134 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1157300vqb; Tue, 21 Nov 2023 23:44:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQVNKRazcg6mhTr9Z27RlXPDtKwUJN9ibSv9hBwgbY6goyHR3Q2c1paRxONpUk8m9JBPhy X-Received: by 2002:a05:6830:1144:b0:6d6:4c3e:bc7d with SMTP id x4-20020a056830114400b006d64c3ebc7dmr1814367otq.27.1700639067930; Tue, 21 Nov 2023 23:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700639067; cv=none; d=google.com; s=arc-20160816; b=fEnPK2+hgS1LVtBwVSlsA8DJLe6beqMPqD/n3WvvPIXmm9OVds33scaPw4n7k0oG/N 3ZsR5uY4m4kOUjkM9WTNUaFeDodqw/WikcGq5tf0rd+ujus76owrmo4WdDQ8f6eXJSc1 DMrlcvhHc8SnpXj1nOrK48+1QC0CTnRVqi2beUoWT1LoDPBvMJjqo9g+4ixZ0RdMxYiQ RLTmPCN8v2lkujzc/vbDNOhGEZl/VG3eL/F4WE77jVq5gEU7X2yloZueB60TW+7w20xU d92XRkGO8sZnWVicS6qk75Ik6hsE7LFO+sGmj6SJAL+bu6rI6/0oSmLlOcIoCoPm3UGE 1D1Q== 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=SgomDZ4n8rij0Ku1C1HWR5BqnMLcC05vUVKWOJcNk4M=; fh=cN1dJnSgiijpyyHKmQrasIAOPDSejTQHmf33Br/TtI0=; b=ARJ9v8cZHfFQXBWqKLcDeDp8vYKWyT40hxhgSLNRDHsfE3GMAvLZRT4AMmI5AKaiNK mpEbve6ndNdM8c5AcPdS+0uvueJMAQPPVMqrrMhNqGKfz3Q9TmoxlkpGFB47wFjSEpjk Zc0K4dihVK03i3ZRt3XNBlSLqtG/RXYMZTiQCo/nAMH8kGrvEDSOoPmEzEWs1qbAAzTe bHjt6S4dzlg43G96D41ypwxYq+LLwF44ZfOjSGheYHPT55XlNtzXkW3u4pnqwYrSBQRS BpVe0s5N9Gj0tvTfXZVn5hciC9/Yq8odRJyT16+rBJLyFlle048F72pkMpk0kk16br1z UW3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=hMNzbnNa; 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u3-20020a634703000000b005be1ee5be37si11696883pga.133.2023.11.21.23.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 23:44:27 -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=hMNzbnNa; 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 E4D4A807799F; Tue, 21 Nov 2023 23:40:58 -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 S229931AbjKVHk4 (ORCPT + 99 others); Wed, 22 Nov 2023 02:40:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjKVHky (ORCPT ); Wed, 22 Nov 2023 02:40:54 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EBF412A; Tue, 21 Nov 2023 23:40:49 -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 3ALNp6K4014434; Wed, 22 Nov 2023 08:40:18 +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=SgomDZ4n8rij0Ku1C1HWR5BqnMLcC05vUVKWOJcNk4M=; b=hM NzbnNazxm/0l7EPgc0HMV2mAH1jvsVo9kB2U5tyz9qOWdoOA5quNhVafyMlx+pWQ rbRGDJ/y4lMrv1U4CzY+4BwKyRIh4ospXVEi3KKXrM4DQNHaLYJHhe6GdcwF/8m4 k4PwiUWQdIK8IQzlbBayi+TL9p6QYlqJnfa32oW00HejS0iUaH6a4Xz/CGKhal4Z q0U/qSRwnze8JYH82Su55nKMOzD1+VKotusVZza4NTanKWdvhH29nCCE5lziQtJE hWaZsAvHdo5mIzKevQvfQZDRccAXC9b0p4mv4co49c+iMPgdFzBiN9DM6EuZD5Nn ltADATIXn4JrpWGPS09w== 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 3ugwu0ujwa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 08:40:18 +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 7AA9D10002A; Wed, 22 Nov 2023 08:40:17 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6F1E92122FF; Wed, 22 Nov 2023 08:40:17 +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; Wed, 22 Nov 2023 08:40:17 +0100 From: Alain Volmat To: Hugues Fruchet , Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Russell King , Philipp Zabel CC: Sakari Ailus , Laurent Pinchart , Dan Scally , Conor Dooley , , , , , Subject: [PATCH v8 1/5] dt-bindings: media: add bindings for stm32 dcmipp Date: Wed, 22 Nov 2023 08:39:15 +0100 Message-ID: <20231122073927.788810-2-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231122073927.788810-1-alain.volmat@foss.st.com> References: <20231122073927.788810-1-alain.volmat@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) 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-22_06,2023-11-21_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 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]); Tue, 21 Nov 2023 23:40:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783249311077471605 X-GMAIL-MSGID: 1783249311077471605 Add the yaml binding for the ST Microelectronics STM32 DCMIPP (Digital Camera Memory Interface Pixel Processor) Signed-off-by: Alain Volmat Reviewed-by: Conor Dooley Reviewed-by: Laurent Pinchart --- .../bindings/media/st,stm32-dcmipp.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/st,stm32-dcmipp.yaml diff --git a/Documentation/devicetree/bindings/media/st,stm32-dcmipp.yaml b/Documentation/devicetree/bindings/media/st,stm32-dcmipp.yaml new file mode 100644 index 000000000000..87731f3ce7bd --- /dev/null +++ b/Documentation/devicetree/bindings/media/st,stm32-dcmipp.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/st,stm32-dcmipp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 DCMIPP Digital Camera Memory Interface Pixel Processor + +maintainers: + - Hugues Fruchet + - Alain Volmat + +properties: + compatible: + const: st,stm32mp13-dcmipp + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + DCMIPP supports a single port node with parallel bus. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: [5, 6] + default: 5 + + bus-width: + enum: [8, 10, 12, 14] + default: 8 + + pclk-sample: true + hsync-active: true + vsync-active: true + + required: + - pclk-sample + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + dcmipp@5a000000 { + compatible = "st,stm32mp13-dcmipp"; + reg = <0x5a000000 0x400>; + interrupts = ; + resets = <&rcc DCMIPP_R>; + clocks = <&rcc DCMIPP_K>; + + port { + endpoint { + remote-endpoint = <&mipid02_2>; + bus-width = <8>; + hsync-active = <0>; + vsync-active = <0>; + pclk-sample = <0>; + }; + }; + }; + +...