From patchwork Tue Oct 10 08:24:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 150545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp40820vqb; Tue, 10 Oct 2023 01:26:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNfKz1uiW7EpHcZlDmeRpW0ZBR2Km+N74v859xAhUMEkOG9mM0XkeHJIvs+mCXr6aM3YFd X-Received: by 2002:a05:6902:1542:b0:d81:58d3:cc72 with SMTP id r2-20020a056902154200b00d8158d3cc72mr20244670ybu.36.1696926399547; Tue, 10 Oct 2023 01:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696926399; cv=none; d=google.com; s=arc-20160816; b=MW2e1lAkO1UXH5xC9kZ6kqRVybtp8z/l45QuR8XQ1bVR0Qx3btEeLC1otBp+uuQcQ7 PYvR0xK03LyLuBCq0kdmRxEk6n9tV6lfypfRwVlpgOMI5SIQwZBJChR04Nm5Bvm/bAcR Jy6fgtaPEm30vUEGcC4rdNa6Hw5znhKZr2OJnmGiv8GXc48FAy7E8LGsFdUXv8YvVmJm xXT03Bv/7D7RvzoWKA69nzY1zMFxumdP3fQQdpBoVx96isNy5NhPDNYq7xXvOg7OSGnK INtj8VrmwIT38aORt/hP5DAL7Y0/xEdT7npDJYuSdvCh9R7ZUzyL/aXcOFFmkLG+Bww9 fh2A== 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=CEUELCCPmIdMfgXlLjnYs659Uvvi7d6NqAevEP8Gfyc=; b=GLFUz4u/Sbzvu0wqUH1sdeWesQF7t4xdnq7gZCCKB4J/DWMcaa+krepge2lYaOGcqE 4QOMK4hOn7bVzm6KLK4ztne/7tKCh2KMkwOdRAKOdEYpVhysgtXGqQ64iSPLqzDRRhEG 38bYRLSk4rHGygWArsKsYNETbAJoy2zLaOR2zY3R5VTtGRcrNHqP3B0IUjSN5aa2DHvA pI2dFXh0sCQkXBSEZKnJot7g/8q2MqgtDp7U1Ttiayi1Us5vLHbsc2/4YszE7L1j7grk g854JdiGHif3bip8Q8MvI/cqMYVncHHu0/VQYVaOyiuaAfL8gfZCeJBV1EDHExRQt5xt F34Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=v2FBRLhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b0059b7f926c04si1162567pgb.721.2023.10.10.01.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 01:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=v2FBRLhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 953C080E4FE3; Tue, 10 Oct 2023 01:26:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442820AbjJJIZc (ORCPT + 20 others); Tue, 10 Oct 2023 04:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442811AbjJJIZZ (ORCPT ); Tue, 10 Oct 2023 04:25:25 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 818BBFF; Tue, 10 Oct 2023 01:25:22 -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 39A8Gg81016206; Tue, 10 Oct 2023 10:25:02 +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=SgomDZ4n8rij0Ku1C1HWR5BqnMLcC05vUVKWOJcNk4M=; b=v2 FBRLhhfMglbo0fZ+0dHx+ZeDKZj7iYF60Gotw9QZRfV8wZ653kkxPQVvUfTQvjjd nikLQvQxQTtPamSWv/1naGEX+PJEWNNpxN6aofeG9HO8keDRr741nwXjgo8Faar4 qUtV87kAgtT5bA9h73rh2QBzhaEdvBkpqoFlKmHx9pPek3cXl54DnhPAeAalk39v yDquHHUyoXfY7PBh1xffGi3u/EOFpI/hanKpiLkEZgBs9ZJKnz9PnkfQ6Yga5uT8 QBA+CktTVdxO0JB247LfrlOE8epYF9QX8ryQIxebQjV78FS3u6tDeeIYXH+Tel+J Vzgrj8oqRI7bbSR3trmg== 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 3tkhf7gwcn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Oct 2023 10:25:02 +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 6BA26100058; Tue, 10 Oct 2023 10:25:01 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 56F2C217B9A; Tue, 10 Oct 2023 10:25:01 +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, 10 Oct 2023 10:25:01 +0200 From: Alain Volmat To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Russell King , Philipp Zabel CC: Sakari Ailus , Laurent Pinchart , Dan Scally , Alain Volmat , Conor Dooley , , , , , Subject: [PATCH v5 1/5] dt-bindings: media: add bindings for stm32 dcmipp Date: Tue, 10 Oct 2023 10:24:01 +0200 Message-ID: <20231010082413.1717919-2-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231010082413.1717919-1-alain.volmat@foss.st.com> References: <20231010082413.1717919-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.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-10_04,2023-10-09_01,2023-05-22_02 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 01:26:13 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779356296723415555 X-GMAIL-MSGID: 1779356296723415555 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>; + }; + }; + }; + +...