Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp37706pxp; Thu, 10 Mar 2022 21:52:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/bgYq7SG6p5j7SQpyYC8c80I3mFY2xHFMpxl4vykbgokWjjKgsVKZthw/QqcU0aboZ3cE X-Received: by 2002:a63:6c44:0:b0:37c:8874:c335 with SMTP id h65-20020a636c44000000b0037c8874c335mr7026943pgc.420.1646977924239; Thu, 10 Mar 2022 21:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646977924; cv=none; d=google.com; s=arc-20160816; b=VFQqOniiYZ96sf//tRvCwef+rwTGVQ63qiZem52/oQgi6namfRfI8hINbcM1TIlYFI Z8yPwLtohoHE23RDl1sGzrNVm2nASAAzXes0o02FkB2FE9mzf8GmbYSwCrOH8mgYHsww k8TuLtUvayvLqgEbrTQ/fAZ47oOsOoaG8riHvpK4DemXVqdtjwgfbIi4Dgt2SMlkSUUl RWnei44c8OZQ3Xx0YP/oBtClMg7V9W+HpZ3VJLQujN7guSx8U8GabbglaTKG4JSfgqjt lEibXl67QutrRlA8y5HLP4IvU4a5plCd/kXbOnTweYJodl3W9BhvYTYUyNDOIUMUSMHo I6Zg== 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=qBao8cjy7gNQIEyZJuZ2n9vPVqjhKNwkDCTd9MQ4+so=; b=DncQHghbqFrYAi9Xb1/3S0eTc58gRS4OiZROSlhufjgtgZdJtj4ZlrQUT8Iorls3gg H/P+5Gb+6NUL18sQTqIswGu6qDVkaZt14Ig6AWHW9Q2zgv7n78uiOm86bgbXChIqmxm0 qcfhF1XFO2KTO0UY8byIV06NzP6yq0IgvNvBv/kBLUoy/vMmGq2DscD2IEBwpjtEIUyB UHu3UyaeDWznGwTpcIqKOcu5Wf+Jyclph0NrCE9JeULVIuEmMcoG570XwoTS3ZbzhX3A zSXzz1tB0tvY2WVQTooxBr5lcyqUchIv8+XwHw/N70eyYLggqjCQ1wggGbNHZGEd5rss BHSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QE+FlqFj; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f71-20020a636a4a000000b00380dcee6d8csi4064704pgc.169.2022.03.10.21.51.48; Thu, 10 Mar 2022 21:52:04 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=QE+FlqFj; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243476AbiCJTOg (ORCPT + 99 others); Thu, 10 Mar 2022 14:14:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237088AbiCJTOg (ORCPT ); Thu, 10 Mar 2022 14:14:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A332C14FFF0; Thu, 10 Mar 2022 11:13:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5A604B8279C; Thu, 10 Mar 2022 19:13:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBAB2C340F5; Thu, 10 Mar 2022 19:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646939612; bh=MFqvsPhJ5FQFN9ZJ8GxngZigWjLHIqTL7/ZSq+djCtY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QE+FlqFj2DYnzMMFwVfj3vAw6KWI1HM2OxSGexXLiAmnLSSEumiNtLCf4h+1Ad614 98I8Cvv4D6VJkkfB1Dym2hn/e1JbR4lelLfzqlQMRdrn0kO2HPdUbj8W6W123F1/nL sIYCZuH0OPRbE56YoOkrj9TsmMpvUepi3Bk9uYYi2h7y2xeT1C3L0+kywPJWYYHAAL 2SrZk6ylTk8iemDXLZhnVFAWR/TYuqjLrWFWzTszrzkjjTdL/uUVLp4Lyk6v5WFfDL rkUEoPiOl46GdwirsruolkbT/JRXfUaS6hxO1fCc5CqnhGgdk427GchL/6a3vsm0PU vvnX0RUL/Khqg== Received: by mail-ej1-f48.google.com with SMTP id kt27so14390112ejb.0; Thu, 10 Mar 2022 11:13:31 -0800 (PST) X-Gm-Message-State: AOAM532Uu0kwIOH5Rgp0TJie6DxZuc6n8IlN0QqxYfFes0ZmWHC8cr4q tpO6MEVEpELzYx4jvagonY+0Cm6YZtb9E5UYog== X-Received: by 2002:a17:907:298f:b0:6da:b3da:19e with SMTP id eu15-20020a170907298f00b006dab3da019emr5542466ejc.423.1646939610179; Thu, 10 Mar 2022 11:13:30 -0800 (PST) MIME-Version: 1.0 References: <20220309120025.6721-1-bharat.kumar.gogada@xilinx.com> <20220309120025.6721-2-bharat.kumar.gogada@xilinx.com> In-Reply-To: <20220309120025.6721-2-bharat.kumar.gogada@xilinx.com> From: Rob Herring Date: Thu, 10 Mar 2022 13:13:18 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: PCI: xilinx-cpm: Add Versal CPM5 Root Port To: Bharat Kumar Gogada Cc: PCI , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Lorenzo Pieralisi , Bjorn Helgaas , Michal Simek Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Mar 9, 2022 at 6:00 AM Bharat Kumar Gogada wrote: > > Xilinx Versal Premium series has CPM5 block which supports Root Port > functioning at Gen5 speed. > > Add support for YAML schemas documentation for Versal CPM5 Root Port driver. > > Signed-off-by: Bharat Kumar Gogada > --- > .../bindings/pci/xilinx-versal-cpm.yaml | 47 ++++++++++++++++--- > 1 file changed, 40 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > index 32f4641085bc..97c7229d7f91 100644 > --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml > @@ -14,17 +14,21 @@ allOf: > > properties: > compatible: > - const: xlnx,versal-cpm-host-1.00 > + contains: Nope. That means 'compatible = "foo", "xlnx,versal-cpm-host-1.00", "bar";' would be valid. > + enum: > + - xlnx,versal-cpm-host-1.00 > + - xlnx,versal-cpm5-host-1.00 Where does 1.00 come from? My guess is you or whoever did the original binding just made it up. Version numbers are only used when they correspond to something documented for the h/w. In the case of Xilinx, that should be soft IP (which I assume has versioned releases) and nothing else. If 'versal' is not specific enough to identify a specific SoC, then add to it. > reg: > - items: > - - description: Configuration space region and bridge registers. > - - description: CPM system level control and status registers. > + description: | > + Should contain cpm_slcr, cfg registers location and length. > + For xlnx,versal-cpm5-host-1.00, it should also contain cpm_csr. Not an improvement in defining what each entry is. > + minItems: 2 > + maxItems: 3