Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2354264pxp; Mon, 21 Mar 2022 17:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAdfAlp15fWlRUKGCLzEUpYfhK4NqPmyqTjL4fTp0Wcs4qF9seEgQ1qW/K9YTY94sQYY4t X-Received: by 2002:a63:3e47:0:b0:382:366:64ea with SMTP id l68-20020a633e47000000b00382036664eamr19054218pga.210.1647910232108; Mon, 21 Mar 2022 17:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647910232; cv=none; d=google.com; s=arc-20160816; b=TTrI6M2CmFozBagzg25QapLLMRLouTWL48DBJlc4L068KdwJaefl5tnVTYNQ+Si1i/ ++E9qHjzOCPomHmEeSZyeik0AbnVnYNsrlxp9Al2AKyRA80wO9712evRAiKRVwM+Gkd8 uHWIRqYY/MKYMgH7kHUp8hcthaTG/a1qK2mGGAI6v+yVO6kgwCDUq8n3bQtCPBf2wB6y gtRF/P/Z7t/9+XJfVTnDm3k1HMYExIGG7Mxu4TwvOc/esuzXqpLYc1YT5N6siQu4iOCc RRmjP7cWBgSFF/aJSAWtd82/oR6XCTCXfs/ZP8HX6G7T6WVa0QzHe5gvfqQ0vL4eQO29 Pn5A== 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=zOoeIR6C1c0HAXUC9LUDP+oPb673CZ3AP0dB7asqPvQ=; b=SuG2mx+3k0yTHQ4hCM3/598j3u/DnOVbrR4UW7aE3BVJCEgqZ5FkVCbq+ocfb0048S 1rHpsmnljIG6aijq6StsIvuj5qoWqdOxSceNhfvvFsk8HIxorbfgoCnWw2iRYBvd7udu 262MbmpIcW6b8TTBm8cSUxdWuWsIbQv83fo4CQ/nhOP8PcIJKsKRJSQGb8CYz1UbutW1 y9gbuEBeVHNiK3h/+Go4cMzOf2sTxWJYDMXQAUVxsF0o8kZ3FjRhFLbmrqxOAMgs/u+j 90dnN5HcR9PBMvh284b9mLU13SzbDeFERgeCNCl1YF8oMYWd0wsrHS3hkf2BH23w1tWy Fi3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jkZU76Av; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d66-20020a623645000000b004fa3a8dff55si7813148pfa.12.2022.03.21.17.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jkZU76Av; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8092D179417; Mon, 21 Mar 2022 17:23:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233844AbiCVASB (ORCPT + 99 others); Mon, 21 Mar 2022 20:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbiCVAR6 (ORCPT ); Mon, 21 Mar 2022 20:17:58 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1FE8BF4D; Mon, 21 Mar 2022 17:15:12 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id h126so31029073ybc.1; Mon, 21 Mar 2022 17:15:12 -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=zOoeIR6C1c0HAXUC9LUDP+oPb673CZ3AP0dB7asqPvQ=; b=jkZU76Av1am5F29MVDhvmcFlzuQi3Zro+AhqI61FQAu6eSAx+1VMCJhyXfUNTVDzWh hmBaV/k4DSiIETe1bj8WabsTDiYd9na28Ayr4yjoW/7GurLJ++tBo9L9R5h1VACcbcTq eo2BqWalXP82yiFv7bRBaFFOckjKbSEdEUwTVeubqDEZR1TBRn/8IqAEdgonOq2nMvln h/LmHMrdQVHqwda9BKESZdKrMb+lwZMTJYL+TCxjYOCpbUdrCE/SqodSIwCTwgXmvIIf myIsst5Kjnj1xeEp2tL923shTcWZzQDIbmXqYsWXFImhKZESVpJA2TMobWsgwpq/Xe6R G/AA== 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=zOoeIR6C1c0HAXUC9LUDP+oPb673CZ3AP0dB7asqPvQ=; b=gYQaPk8PFMAmOyEHqjEGUq547HzbBjsUMA29PzxAzXsteuoUSzdm9AasSNRzkRXWsA agqXABT8ptPIZTOySV/8aNOYLoBUVnPHTWMkU6L2SRe9opQPb3dq5PXSJ0AuL89GKGHw uHHWQZDY32KsVaMEqaOSdWQMvalRcCNM8JK5P1V8I6A3LFlOLCE7Kilx979h9N/VKSfl kIll45OORcGALA5bpGmOMCxtemSAkeTGiv/+YahXLQOscCDOQ1ca+QwmawD6aY4dsHnr teJh0vgT+pLva5sL6ZmfDxZUjZAxeWgn0kUX/RpeMHwJGIxRv9gQUbitNACbCGD/UDaK 9dlA== X-Gm-Message-State: AOAM530/Sow181wx7j95TQrO5JB9uOLPAAP/hyAMKcs2JhsBBWYg5zbx Sfi6B6HxSJ6qQvad87rGobtKZi4od4HP8IuTcjY= X-Received: by 2002:a25:d3cb:0:b0:629:182c:6c50 with SMTP id e194-20020a25d3cb000000b00629182c6c50mr25627885ybf.417.1647908028612; Mon, 21 Mar 2022 17:13:48 -0700 (PDT) MIME-Version: 1.0 References: <20220121010543.31385-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220121010543.31385-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220215130651.hh3zb7ogl756pigt@uno.localdomain> In-Reply-To: <20220215130651.hh3zb7ogl756pigt@uno.localdomain> From: "Lad, Prabhakar" Date: Tue, 22 Mar 2022 00:13:22 +0000 Message-ID: Subject: Re: [RFC PATCH v2 2/4] media: dt-bindings: media: Document RZ/G2L CRU To: Jacopo Mondi Cc: Lad Prabhakar , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Laurent Pinchart , Sakari Ailus , Hans Verkuil , Geert Uytterhoeven , linux-media , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Jacopo, Thank you for the review. On Tue, Feb 15, 2022 at 1:05 PM Jacopo Mondi wrote: > > Hi Prabhakar, > > On Fri, Jan 21, 2022 at 01:05:41AM +0000, Lad Prabhakar wrote: > > Document the CRU block found on Renesas RZ/G2L SoC's. > > > > Signed-off-by: Lad Prabhakar > > --- > > v1->v2 > > * Dropped CSI > > --- > > .../bindings/media/renesas,rzg2l-cru.yaml | 152 ++++++++++++++++++ > > 1 file changed, 152 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml > > > > diff --git a/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml b/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml > > new file mode 100644 > > index 000000000000..a03fc6ef0117 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/renesas,rzg2l-cru.yaml > > @@ -0,0 +1,152 @@ > > +# 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-cru.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Renesas RZ/G2L Camera Data Receiving Unit (CRU) > > + > > +maintainers: > > + - Lad Prabhakar > > + > > +description: > > + The RZ/G2L Camera Data Receiving Unit (CRU) device provides video input > > + capabilities for the Renesas RZ/G2L family of devices. > > + > > + Depending on the instance the Image Processing input is connected to > > + external SoC pins or to a CSI-2 receiver. > > + > > +properties: > > + compatible: > > + oneOf: > > + - items: > > + - enum: > > + - renesas,r9a07g044-cru # RZ/G2{L,LC} > > + - const: renesas,rzg2l-cru > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 3 > > + > > + interrupt-names: > > + items: > > + - const: image_conv > > + - const: image_conv_err > > + - const: axi_mst_err > > + > > + clocks: > > + items: > > + - description: CRU Main clock > > + - description: CPU Register access clock > > + - description: CRU image transfer clock > > + > > + clock-names: > > + items: > > + - const: vclk > > + - const: pclk > > + - const: aclk > > + > > + power-domains: > > + maxItems: 1 > > + > > + resets: > > + items: > > + - description: CRU_PRESETN reset terminal > > + - description: CRU_ARESETN reset terminal > > + > > + reset-names: > > + items: > > + - const: presetn > > + - const: aresetn > > + > > + 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 a parallel input source. > > + > > + properties: > > + endpoint: > > + $ref: video-interfaces.yaml# > > + unevaluatedProperties: false > > + > > + properties: > > + hsync-active: true > > + vsync-active: true > > + bus-width: true > > + data-shift: true > > + > > + port@1: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: > > + Output port node, describing the RZ/G2L Image Processing module > > + connected the CSI-2 receiver > > Isn't this the port dedicated to the CSI-2 receiver input ? > Agreed. > > + > > + properties: > > + endpoint@0: > > + $ref: /schemas/graph.yaml#/properties/endpoint > > + description: Endpoint connected to CSI2. > > And the andpoint should describe the connection between the CRU and > the CSI-2 receiver ? (ie it should not contain CSI-2 specific > properties, as those are specified by the CSI-2 receiver device node?) > Ok will drop the properties. Cheers, Prabhakar > Thanks > j > > + > > + anyOf: > > + - required: > > + - endpoint@0 > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - interrupt-names > > + - clocks > > + - clock-names > > + - resets > > + - reset-names > > + - power-domains > > + > > +additionalProperties: false > > + > > +examples: > > + # Device node example with CSI-2 > > + - | > > + #include > > + #include > > + > > + cru: video@10830000 { > > + compatible = "renesas,r9a07g044-cru", "renesas,rzg2l-cru"; > > + reg = <0x10830000 0x400>; > > + interrupts = , > > + , > > + ; > > + interrupt-names = "image_conv", "image_conv_err", "axi_mst_err"; > > + clocks = <&cpg CPG_MOD R9A07G044_CRU_VCLK>, > > + <&cpg CPG_MOD R9A07G044_CRU_PCLK>, > > + <&cpg CPG_MOD R9A07G044_CRU_ACLK>; > > + clock-names = "vclk", "pclk", "aclk"; > > + power-domains = <&cpg>; > > + resets = <&cpg R9A07G044_CRU_PRESETN>, > > + <&cpg R9A07G044_CRU_ARESETN>; > > + reset-names = "presetn", "aresetn"; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@1 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + reg = <1>; > > + > > + crucsi2: endpoint@0 { > > + reg = <0>; > > + remote-endpoint= <&csi2cru>; > > + }; > > + }; > > + }; > > + }; > > -- > > 2.17.1 > >