Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp341135pxp; Sat, 19 Mar 2022 04:10:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaj50TptlGgcvESlkxHmkcoIn1rWi4hGkZyAy1S7rmbH9iGfrrBn1niiitL8DEZTZWbOgR X-Received: by 2002:a50:d903:0:b0:416:17b1:8557 with SMTP id t3-20020a50d903000000b0041617b18557mr13932590edj.372.1647688242182; Sat, 19 Mar 2022 04:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647688242; cv=none; d=google.com; s=arc-20160816; b=Serf+wAjAMWm3vVg7uwO/kW60ieH84opABkuSK+ZpSUGi8tYxhCeZAVf/b7GwG6Tsj CGUEN4umDFzDG3v7N+q2oPkJftR75NCKusaq6hxXl4TyLEf591gdAnzpTYMiGMAI+KUg BMWV6EknxjhZJGN1VeGZD3HoHayT3SoE/kY3xxwhDEsBD3Pl4/echA/L/Z0YBkZT1Ci9 F14rF3SURoOfdaLL7vzo/qHDCdrcPiLgzWq8OEOMyOGuVJjr+NkL6Kv2gzqgombKk8dl uIz4RI+tIXx2m8iVcHS1JBN003dxgIn+SyIWtq9I7angsSwrW1LQ84tXEKKOMQIdxUJn z16g== 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=vVp1w9NSmxaFeYurA8RKxT/i3A6lZfLYPbCAR6Ix1v0=; b=ZvE605fjA8aRPV4kzsA7Q02x9bGn94nkGqmwx3ytVyBAAWYIejqhtTAD4VWZDpojsi ri0hOuevdQbzG7tVuDIxNdat4fbQBPsibzt/GKbRRp39+dWIEINuwq5GepgfUa5SbBv/ wQsQL8hZu5cLdIEJyX633Iu+zYWNnabgcl1LcEHDBiMfHTIjdw1kuw3mm1TI09pfOk5o r45qyGj7ahHn07ym5NFZ4l06VmqWvmiBeiOFHbESpA76Jaimx6moovBKLpLfXd7bKT4V lpnackIhKqrJj1wKAhW72izuZ2fT+R7XAOk5NJPw0ESRRtAa6mraAdbIPR0/kMF5Ozbo QizA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Fxm0IYCl; 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 cr19-20020a170906d55300b006df76385d3esi3602826ejc.478.2022.03.19.04.09.51; Sat, 19 Mar 2022 04:10:42 -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=Fxm0IYCl; 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 S240720AbiCRUl3 (ORCPT + 99 others); Fri, 18 Mar 2022 16:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240499AbiCRUl1 (ORCPT ); Fri, 18 Mar 2022 16:41:27 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D566122BDC; Fri, 18 Mar 2022 13:40:07 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id v35so17800502ybi.10; Fri, 18 Mar 2022 13:40:07 -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=vVp1w9NSmxaFeYurA8RKxT/i3A6lZfLYPbCAR6Ix1v0=; b=Fxm0IYClQ7mZTdGPutUhNB+CcRqg2eAXb4Xrt8BiZlgOp61krOQGkOtPDOhyF25tFB h9uVxt3DtI0l7RPfkUMBfociPLwcv8v82aWtqjxodZVc39L5KTz52+0jYJCWgNC2rynx QSPEsSDqgvsUezpR368TyL3KkqZApW0xUreL4P5GqkYFkIrxzM7gm9xu4+VEhBWFFCjA gOf9VtS3xcDn2dqESKrO3JQRayt/tp1eeYpb1NPw0kqlaS+Gm8jGxSJZo1+B7uxk3jQI mxsdY/jMfIcY6QtTMhAJVOL/H1uxJUMN09p65818HGfoz1oLLWfyaBMvmHN3h9GB44yG w1Jw== 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=vVp1w9NSmxaFeYurA8RKxT/i3A6lZfLYPbCAR6Ix1v0=; b=ELc0cH4A86IB41b1nMwml2KQ854FeG3Fp2XOAXa1kX9ljpMd1KVGau0Go4P0cL7gaY P8aKw+MaX+g5aX6CA7o0f7e/5gwB3J/Y9yzjKV41VTJlJJx9mWLuXG4tX6o/KkcfH7DC If8uE80eZ+94aSJrpSO6scZZUr5qOoXnDAQ3sBWqlSNeHuMGvxAAmNxNF2+J9rG3ifQy uf490wFh2v88pieKd4m1Mj5cLjKGusBCr2NFPe0PTqbxRrMPiRLhc1GtmMQLYmIZWiDG Ynz7idck/Oopk40GdpRZ0+TXy+jyWJIyBzb4kI9i74o4cvDquOL2VAzp/kdNE5ZunYxl Vfug== X-Gm-Message-State: AOAM530Gj84vC8pVIoQ816PjIdlpfeCGhMBOJvHbRKuasUkInHGct49F J8tpzUeMiauwtMH74fo4XiNpX+T/HruDEctzc5E= X-Received: by 2002:a25:3bd4:0:b0:633:6772:5ac1 with SMTP id i203-20020a253bd4000000b0063367725ac1mr11490111yba.431.1647636007056; Fri, 18 Mar 2022 13:40:07 -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> In-Reply-To: From: "Lad, Prabhakar" Date: Fri, 18 Mar 2022 20:39:40 +0000 Message-ID: Subject: Re: [RFC PATCH v2 2/4] media: dt-bindings: media: Document RZ/G2L CRU To: Rob Herring Cc: Lad Prabhakar , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Jacopo Mondi , Philipp Zabel , Mauro Carvalho Chehab , 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=-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 Rob, Thank you for the review. On Mon, Feb 7, 2022 at 10:39 PM Rob Herring wrote: > > 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: > > Don't need oneOf when there is only 1 entry. > There are two more SoC's to be added as soon this patch series get merged, so to keep the changes minimal later I will keep oneOf here. > > + - 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 > > > + > > + properties: > > + endpoint@0: > > + $ref: /schemas/graph.yaml#/properties/endpoint > > + description: Endpoint connected to CSI2. > > + > > + anyOf: > > + - required: > > + - endpoint@0 > > You can drop all the endpoint stuff. Just 'endpoint' should be valid as > well for example. The graph schema covers all that. > Will do. Cheers, Prabhakar > > + > > +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 > > > >