Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp352727imn; Wed, 3 Aug 2022 06:43:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR4OweoH6AfglgksONKkOgyiKoJJ9j5fsBikZ/qHeKx3lhK0206Dvqmo2Uz9H7BXCSXMF5b/ X-Received: by 2002:a17:907:6e14:b0:730:a229:f747 with SMTP id sd20-20020a1709076e1400b00730a229f747mr6232862ejc.202.1659534186906; Wed, 03 Aug 2022 06:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659534186; cv=none; d=google.com; s=arc-20160816; b=gq9B+le0t834nbULLCsDIx2HZX4D6w+7h8/aUp6mWT5EOTA2Csl13Yp7Vkoz0akRyS +NtgDOPTqvA/uSETswLwUPCg86rYNHKPapn9Ukz/vezm6djAc8OzNNR2XJyqpS9ySvGx 28qQ8EiCEGaTl/a/t3XRaAxST/K/w/vMbnvtZ2vukIRo+iLPPoQfjTGW4QMjFascD7R1 g8lRNkuW/c0sXVfw48BkuyHCwMHj/I8+32FK0gq511dCCllPXhsHqNwWKAagSGeKIvPo HPuGEBrjDbWfzsb1cR+A+wXbOOp8iVYFl+Xt5d62OytV7Pkww/fhNTTL32gpZmwAp3pT 8hrg== 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=NbEkmhp4ylSkvGtJq77wNtGsbmQWNZVmdOV2TFt4T7E=; b=pY6U1o86Ji4ByZhOfHbdrQj4V4TRw8qPr96WMSp+hjoFXhYR2hTBdLEEwZYbWGl00y Y1/mg1JczjtS8pXVLRDeqhFC/Smwa0ihoC1ORGPwh0aOTmfIuEnSH8WYeWcpIp7XrT2q Bbo6RtnISh4Wpa5V8zABNxi+f+Q7aDqci8HkAl2aZVC8OZxTexjMi4+SN1mR68E5EoE1 WseLbylZAF+7riO1L7gOqPAZ3vI05TFAzFYNins6KQmfnUnEy/zYSar0z0NLv1clM7oE X1jeK7Cpf0FJLkJptt48UJjTmxphKwg3sSeIv2sG+t1inuSJl7Sr/gl9ZFkNXe6d4VS/ RAYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OJhNdbra; 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 qa40-20020a17090786a800b007307fa2da78si7650129ejc.450.2022.08.03.06.42.41; Wed, 03 Aug 2022 06:43:06 -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=OJhNdbra; 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 S237566AbiHCNgl (ORCPT + 99 others); Wed, 3 Aug 2022 09:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234360AbiHCNgk (ORCPT ); Wed, 3 Aug 2022 09:36:40 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231671835B; Wed, 3 Aug 2022 06:36:39 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-31f41584236so171611797b3.5; Wed, 03 Aug 2022 06:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NbEkmhp4ylSkvGtJq77wNtGsbmQWNZVmdOV2TFt4T7E=; b=OJhNdbraYgEHabTSeFWTYvJphQ3Pz27f+t7+ioW3V/haNlNvOn4wmk8v8YedDYZz9N 4USr7sCGi/lE7DF8TM4E3NMDBKErysp2FJioIhaY8m5cqtzxJN810g8h0LVS4Mu6yk31 hKzZKaZ5R3mH+aPk29TfE/PCOoBbcHoNPDSWE9XGTisbu1yhgw55AGVrfZis/sYXUlPA /5qWyJAs/N1ZPzF9Jim4ibKFMlI8aumtoXyXwX3ho/hq287yhwElX/twYsiJ7vr0cARv 5wV14XcwNRLIjt1URTfHH+m5BUmYLBjEw232yVLG+sltUGiCgaHbuYhOg/SFCfs+Mytz vJIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NbEkmhp4ylSkvGtJq77wNtGsbmQWNZVmdOV2TFt4T7E=; b=HCAH/jcrOnZ0CqqETXWGyOUvE7lTsxstjGCGEzxP+DUPDS0XNap5E1VqTEXjUZihCs K55MtKp4hw46xot5bYx6JCLtAVfADWBOJ971mz5EM08RHphgxXtMCiBBUb352/WO1LjF QA57lo8qo0pNqbHgOhfkzbf7XQgHE3kOO3joKoyKFYdo1XI95vl/bIyZAvKQv4nd5RGa 1dCp5OGLfbwV0kTiKaKzZcBBWP6Y2BUBuAjaEOndIjYwn/B/r9ldVg590r4xd0Yk+0LH PdgCuMcfwqDVdVMLXupkim8rDgB9cGiiN1rJyKU4LJPcmM6Pc4YwvUJD6V/pCsEckx3X PEXg== X-Gm-Message-State: ACgBeo0cNF8AB+Y6U/Wx9mRISvV1NkaJjbqOLlRD6f/y70UGdH/lWgZ0 2VVeyWQP9ZerQEQaltLUDdwZSSOzNK7XYK6kLq0= X-Received: by 2002:a0d:d60f:0:b0:325:1853:2b with SMTP id y15-20020a0dd60f000000b003251853002bmr11734428ywd.24.1659533798315; Wed, 03 Aug 2022 06:36:38 -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> <4b1d5266-40a9-9897-7caf-d3d41c0aa598@linaro.org> In-Reply-To: <4b1d5266-40a9-9897-7caf-d3d41c0aa598@linaro.org> From: "Lad, Prabhakar" Date: Wed, 3 Aug 2022 14:36:11 +0100 Message-ID: Subject: Re: [PATCH 1/4] media: dt-bindings: media: Document RZ/G2L CSI-2 block To: Krzysztof Kozlowski Cc: Lad Prabhakar , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Laurent Pinchart , 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 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 Krzysztof, Thank you for the review. On Tue, Aug 2, 2022 at 8:36 AM Krzysztof Kozlowski wrote: > > On 01/08/2022 23:47, 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 > > Too many "media" in the subject prefixes. > I followed the pattern seen by "git log --oneline Documentation/devicetree/bindings/media/", but I do agree I can drop the extra "media" after "dt-bindings:" > > * 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: > > + - 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 > > + > > + 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 > > + > > + 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 { > > Node name just "csi" > > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > OK will replace it with csi. > > > + compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; > > + reg = <0x10830400 0xfc00>; > > Please use 4-space indentation for example DTS. > Sure will do. Cheers, Prabhakar > > + 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>; > > + }; > > + }; > > + }; > > + }; > > > Best regards, > Krzysztof