Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4108071rwe; Tue, 30 Aug 2022 04:57:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MK/uDy2RMO2sAZpeG2VnSrx9F/rCssaW5eaHvRezZc9RhpGxvGiQNQLZ6Qb5Rlnava51P X-Received: by 2002:a05:6402:31e7:b0:447:d664:83eb with SMTP id dy7-20020a05640231e700b00447d66483ebmr16474013edb.276.1661860675876; Tue, 30 Aug 2022 04:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661860675; cv=none; d=google.com; s=arc-20160816; b=iBVwvlj4mHMVZAFm+63nasDVSgMi3bHpH2hsvpYcvgfBUFRN+IQRM0R0lI4APwWUHW uhX97tRywcHxsYQ+S5AELe49zFtVP9x1pnvEzDqCNsnU2NVQ/qkiGGq9Kc0TzFMwzsLH t4MkUG12BrLomdyTRi5bAGm59vXOl18kYS2HZ61vX4XEwHBwPgBs8XpJTyJ27yG+fLzm gLkmhCXamebZr+ym/kL0BLFbaqMXadmaqb8iaQNfbiFV04voa/iY1gC5qu7BS5LCAGGk Wd7bGU0ydw1IOI8rv62O3NnjSa1kPcgRwwcsoiHZMznp7cZUffhWjt0GUtrCmX9Hchxa JEVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nMi96jo7aVtzV6gHY/awbFwjLueQUwadnmUfMNrWPWs=; b=bkpR0LHBOFmLpR4Cg1oPP/2uMX/B8memg5vabO6E03J03C/d7Uxuazod+kEkGIDZOc caaDmTsFsw+b72WcHO4CmEwnRO8d/iI5OLGPengwDUQ+yLgeZzNXjCOztuXNzPU0IJ10 F+ZI0wLuTH1inoZibTrKwEM0n+1FnJmAnLQuEARynWHV3EydsfTvnm9QCud4bXkmbSUS OX/dxO6MSz4SPTovyKjsDZJhMGWNsTCtdQMEEIqSmPQmaZxXn5mKQt+gEcbX4l4W0OYX 0ZhmXmbsjNbTvo/wYu0HG+JPxbHyHGOcPgoSYHM7X7w9vWh3DUVdEB2e3PVxtQ4z4db1 TIsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N5QYfCJq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs9-20020a170906dc8900b00741a089d344si3400671ejc.809.2022.08.30.04.57.30; Tue, 30 Aug 2022 04:57:55 -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=@gmail.com header.s=20210112 header.b=N5QYfCJq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbiH3LKl (ORCPT + 99 others); Tue, 30 Aug 2022 07:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbiH3LKh (ORCPT ); Tue, 30 Aug 2022 07:10:37 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D021F647CA; Tue, 30 Aug 2022 04:10:35 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-3376851fe13so264197917b3.6; Tue, 30 Aug 2022 04:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=nMi96jo7aVtzV6gHY/awbFwjLueQUwadnmUfMNrWPWs=; b=N5QYfCJq7Cxaeozg3Gf3tMUV5fMKzuBbCiW2Pf2xoodoPo1NssosU9qMOyG2x8pBav ZpkqItxXDSYOL4cYHma9WvI49RgQEiu22j5ua4GVT5W03hlEdMQvXJT6hCMUAHj1ImiO 4EcHDkd6QRPqmXek//SgS73D+HqtLclg0CP3dwAGxHPk+2Vcb7Ma/627r/vCjP+UFnQ4 m6NMiM9YOtijdVirXkQdx73yGlROl91Ub+cI0qZFXgFy0yeH8zRKG1b7W7AEWKiaUiUS TiZOiSKHIq2LzmjkcF9/IPepSxzTncovLQtM/T7qxZNkvI+In0a0GAJq0dI7+Ir/RjJD qHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=nMi96jo7aVtzV6gHY/awbFwjLueQUwadnmUfMNrWPWs=; b=mRSm0Vm2KxYq/kN7rG/w4BXtgLTaD0cMNeXhTo0EHGBLo/RJ8It3N4L9wNLBWu2fdo fPcvcZ+HAKPNwwV2frgsObW+0SPKG12Qd5kdauAUEFNQPvifSsbueCn7bg3BQ1Yw/1nB 4XSAr1qWObjLFTgj7ggm4RIXp5IBEKLqCMLJT59/ZqH+jRffY85c07nXdzrjDgTLcLW+ MENtRhLR2PgvO77fpgS6/QZ8ZSyidULJ5F83hzJB0aEgCGakykS5hxmoy8Pc5p6CdTah qlj2nRNNv7XAvNBmT2WAo+MQ172KJZagGi5o46iNDvp3ulqxiYBSe5vfhJP/IdugeA0l hp3A== X-Gm-Message-State: ACgBeo2KinOS/HFf1EpJabg0qtBhi3fK7BFaomyPLFrWkdhXHJE5QIuj E9+lOjvoqX68sFEz8Fpa1Y4cXW4luqNaTYtsauc= X-Received: by 2002:a81:6a84:0:b0:341:9e24:58aa with SMTP id f126-20020a816a84000000b003419e2458aamr167202ywc.138.1661857835053; Tue, 30 Aug 2022 04:10:35 -0700 (PDT) MIME-Version: 1.0 References: <20220801214718.16943-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220801214718.16943-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Tue, 30 Aug 2022 12:10:07 +0100 Message-ID: Subject: Re: [PATCH 1/4] media: dt-bindings: media: Document RZ/G2L CSI-2 block To: Laurent Pinchart Cc: Lad Prabhakar , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Jacopo Mondi , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Sakari Ailus , Hans Verkuil , Geert Uytterhoeven , linux-media , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Laurent, Thank you for the patch. On Tue, Aug 30, 2022 at 12:32 AM Laurent Pinchart wrote: > > Hi Prabhakar, > > Thank you for the patch. > > On Mon, Aug 01, 2022 at 10:47:15PM +0100, Lad Prabhakar wrote: > > Document the CSI-2 block which is part of CRU found in Renesas > > RZ/G2L SoC. > > > > Signed-off-by: Lad Prabhakar > > --- > > RFC v2 -> v1 > > * Fixed review comments pointed by Rob and Jacopo. > > > > RFC v1 -> RFC v2 > > * New patch > > --- > > .../bindings/media/renesas,rzg2l-csi2.yaml | 149 ++++++++++++++++++ > > 1 file changed, 149 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml > > > > diff --git a/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml b/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml > > new file mode 100644 > > index 000000000000..f82f88c096df > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml > > @@ -0,0 +1,149 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +# Copyright (C) 2022 Renesas Electronics Corp. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/renesas,rzg2l-csi2.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Renesas RZ/G2L (and alike SoC's) MIPI CSI-2 receiver > > + > > +maintainers: > > + - Lad Prabhakar > > + > > +description: > > + The CSI-2 receiver device provides MIPI CSI-2 capabilities for the Renesas RZ/G2L > > + (and alike SoCs). MIPI CSI-2 is part of the CRU block which is used in conjunction > > + with the Image Processing module, which provides the video capture capabilities. > > + > > +properties: > > + compatible: > > + oneOf: > > + - items: > > You can drop the oneOf and write > Agreed. > items: > - enum: > - renesas,r9a07g044-csi2 # RZ/G2{L,LC} > - renesas,r9a07g054-csi2 # RZ/V2L > - const: renesas,rzg2l-csi2 > > > + - enum: > > + - renesas,r9a07g044-csi2 # RZ/G2{L,LC} > > + - renesas,r9a07g054-csi2 # RZ/V2L > > + - const: renesas,rzg2l-csi2 > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + interrupt-names: > > + const: csi2_link > > If there's a single interrupt you can drop the name. > OK, I will drop it. Cheers, Prabhakar > > + > > + clocks: > > + items: > > + - description: Internal clock for connecting CRU and MIPI > > + - description: CRU Main clock > > + - description: CPU Register access clock > > + > > + clock-names: > > + items: > > + - const: sysclk > > + - const: vclk > > + - const: pclk > > + > > + power-domains: > > + maxItems: 1 > > + > > + resets: > > + items: > > + - description: CRU_CMN_RSTB reset terminal > > + > > + reset-names: > > + const: cmn-rstb > > Same here. > > Reviewed-by: Laurent Pinchart > > > + > > + ports: > > + $ref: /schemas/graph.yaml#/properties/ports > > + > > + properties: > > + port@0: > > + $ref: /schemas/graph.yaml#/$defs/port-base > > + unevaluatedProperties: false > > + description: > > + Input port node, single endpoint describing the CSI-2 transmitter. > > + > > + properties: > > + endpoint: > > + $ref: video-interfaces.yaml# > > + unevaluatedProperties: false > > + > > + properties: > > + data-lanes: > > + minItems: 1 > > + maxItems: 4 > > + items: > > + maximum: 4 > > + > > + required: > > + - clock-lanes > > + - data-lanes > > + > > + port@1: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: > > + Output port node, Image Processing block connected to the CSI-2 receiver. > > + > > + required: > > + - port@0 > > + - port@1 > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + - power-domains > > + - resets > > + - reset-names > > + - ports > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + csi20: csi2@10830400 { > > + compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; > > + reg = <0x10830400 0xfc00>; > > + interrupts = ; > > + clocks = <&cpg CPG_MOD R9A07G044_CRU_SYSCLK>, > > + <&cpg CPG_MOD R9A07G044_CRU_VCLK>, > > + <&cpg CPG_MOD R9A07G044_CRU_PCLK>; > > + clock-names = "sysclk", "vclk", "pclk"; > > + power-domains = <&cpg>; > > + resets = <&cpg R9A07G044_CRU_CMN_RSTB>; > > + reset-names = "cmn-rstb"; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@0 { > > + reg = <0>; > > + > > + csi2_in: endpoint { > > + clock-lanes = <0>; > > + data-lanes = <1 2>; > > + remote-endpoint = <&ov5645_ep>; > > + }; > > + }; > > + > > + port@1 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + reg = <1>; > > + > > + csi2cru: endpoint@0 { > > + reg = <0>; > > + remote-endpoint = <&crucsi2>; > > + }; > > + }; > > + }; > > + }; > > -- > Regards, > > Laurent Pinchart