Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2260828rwn; Fri, 9 Sep 2022 10:44:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7DWdzN3+saIECLwjqYjpuKH6OXrRmzWa/FViZLBsgL/GTFq6foZ27KEhHqLlgXdrfL+0qA X-Received: by 2002:a05:6402:26d4:b0:451:280d:3533 with SMTP id x20-20020a05640226d400b00451280d3533mr1943199edd.316.1662745490020; Fri, 09 Sep 2022 10:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662745490; cv=none; d=google.com; s=arc-20160816; b=VuvrO61MtSMR10AOKiuPeVJj8PqfPRUhW+gBehVMIoHhdJ7qKSTvn4XY4ggq6dvWaT DdHrEIYkvD3IIAE+7bUkbK32KbyFiD974yStVd67T0CcmnSeGlpK2IJ3fEhzxuYvUNL7 D6pZI720Qu9vwMHkEwiOo7LrxxV4rraNWpSlE9PeddwC1mXruXoK7kHfOdyFGGK/4//C st33eejCaS/MA+jrXCZmMhlay4KtxcLL6sRcC2nRjQmswtdvX5DAb2m9UD40q4iwZ05g tgvpV3gzQN19bDaT5KuDp6C6vjcFXFiY4X5Def7sfjRIdWy2nRANutOnQxwmyQUTpBco EIFQ== 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=3hVkctFAOge+LlhitcC8Y0LYOzkX8AHV0NXbXop5Ojw=; b=c1V4U9HxmoUcYnQ4Wo9GTSsfMLXTxAAXDQr3glOmJFAmfX92ygLhXZmUzTU+0AGuX3 /6qdXfm9EZuKfkFnBVmy7hnkcJJCtKpluSupPn7FJ+kmjtOINH3vWYuwMTuwf7vLFvBq GlrtN4y7MDUQhWu6dG+x2jE0Wg5LcKUFS1+8hsM5C7zHWP6IO/CVvYOKQPZ52ffvwrbR tYJUb8tARPY4q9vB2ak2EcjffTFX+Avpdj93+pwBo22ZbO6JHbB45d8X1NJWgc3Hybn9 1g9jVX8Xu98viNg6+XrMZE92/T+Nxo5w0tjehRTO6/ptEir9pRE9D/+j1mA1YBd7nkyG GqmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YDPnd6sA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a17090638c800b00731646a574esi848117ejd.839.2022.09.09.10.44.23; Fri, 09 Sep 2022 10:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YDPnd6sA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231189AbiIIRCj (ORCPT + 99 others); Fri, 9 Sep 2022 13:02:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbiIIRCN (ORCPT ); Fri, 9 Sep 2022 13:02:13 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7751116C8; Fri, 9 Sep 2022 10:02:10 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 289FXTev025402; Fri, 9 Sep 2022 19:00:51 +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=3hVkctFAOge+LlhitcC8Y0LYOzkX8AHV0NXbXop5Ojw=; b=YDPnd6sAzrY76++TVC/BOhr2cCI+hTJW8U3xLQgG8qgEQ/A/mU7qmzDo2ycQJqbdjHI3 5xsjPlzfYjCPs7njJ0VLgSP8wz1wqxO5krVRYhsbPfvvXB7GrFSS51PtifIYwA20dKX3 Wsp88JxfN0aEdGTT/d3UQg/Y131beeSWpVJh9IyBFL0U7fq/dicf1EKi5ZFinFoXt4Bl b9lzB57ZInPjQRMKc5L9FIB1vDQS4GoxE/rhik1hNi7kz3zqFU7bTACqiDXNQ3jMxAuW EdZsv8Ozmqd5QloxvLgied7yh2tM8/HH2sLs2bMTAkTvaSbD1JGtk7BFNNVjccxz/kSQ bQ== 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 3jg3bnt56c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Sep 2022 19:00:51 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EB963100034; Fri, 9 Sep 2022 19:00:49 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E3E1F24551D; Fri, 9 Sep 2022 19:00:49 +0200 (CEST) Received: from localhost (10.75.127.122) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.7; Fri, 9 Sep 2022 19:00:49 +0200 From: Hugues Fruchet To: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Rob Herring CC: , , , , , Hugues Fruchet , Alain Volmat , Philippe CORNU Subject: [PATCH 1/5] dt-bindings: media: add bindings for dcmipp driver Date: Fri, 9 Sep 2022 18:59:55 +0200 Message-ID: <20220909165959.5899-2-hugues.fruchet@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220909165959.5899-1-hugues.fruchet@foss.st.com> References: <20220909165959.5899-1-hugues.fruchet@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.122] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-09_08,2022-09-09_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,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 From: Alain Volmat Add the yaml binding for the DCMIPP driver. Signed-off-by: Alain Volmat --- .../bindings/media/st,stm32-dcmipp.yaml | 96 +++++++++++++++++++ 1 file changed, 96 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..70631046017d --- /dev/null +++ b/Documentation/devicetree/bindings/media/st,stm32-dcmipp.yaml @@ -0,0 +1,96 @@ +# 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 binding + +maintainers: + - Hugues Fruchet + - Alain Volmat + +properties: + compatible: + const: st,stm32mp13-dcmipp + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: kclk + + 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 + - clock-names + - resets + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + dcmipp: dcmipp@5a000000 { + compatible = "st,stm32mp13-dcmipp"; + reg = <0x5a000000 0x400>; + interrupts = ; + resets = <&rcc DCMIPP_R>; + clocks = <&rcc DCMIPP_K>; + clock-names = "kclk"; + + port { + dcmipp_0: endpoint { + remote-endpoint = <&mipid02_2>; + bus-width = <8>; + hsync-active = <0>; + vsync-active = <0>; + pclk-sample = <0>; + pclk-max-frequency = <120000000>; + }; + }; + }; + +... -- 2.25.1