Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12256526rwb; Sat, 26 Nov 2022 06:34:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5n9D8j/lXDSahY+Kx0/Ln/YhKT+9xD5mgpeZQ2lsjS7Wt2bWOZxnknaK9NXlPFZgSndjaP X-Received: by 2002:a17:906:3fd0:b0:7af:9bff:8de6 with SMTP id k16-20020a1709063fd000b007af9bff8de6mr19441404ejj.91.1669473247445; Sat, 26 Nov 2022 06:34:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669473247; cv=none; d=google.com; s=arc-20160816; b=dcuBJIa6+ymoIVfGbPznBOEMd+BypPeq7AifqNh8SsFsybomhpw3rd9K/U3L9zC0Fs hx5Q9xjGN8h35Hm1ZRQHowzToSK03CE/7GBGm8saP58yRrrTh+7VkByEdFdr+qXU0cdY GpuSJpXoUT+tZ04wm6BqC0coIP9fZdlCsiGBXS9Tbgp5FY2QOeOYkCGVU3OSkMVXJxPn WeZgLOf7wj7wPs2y0jmL9ZRORV/T9a6PUyyg9yRR15y66BOBQHBRCm5eaYXBhd1W/1+y PVmIuUFdCHBwL3uaPSkkASAUKW+W+kKSaovB5fcrwTATvjFXKeIk9geR+2rgtEh4ZG+s 6qPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0FH6Qg/jduzi6PwcFvP6hRcgcF3jb6cJugtkH2wA03k=; b=PNQU9Fv50tmVUBOQq7C8+48yRub8k7zqOCf2X03RyQCAC+s1YOghvZpbqlZDVaFhhG fG0Ru6iKzJo/QGl7eJmvykJbQyglO8gQREjTVdjSno+54DawrBKZOqAdGtuU+sz5f13X LkHfpQqen7yeXAQjWezmn+LNIFfte177TaHwsQKST+EqV1V6M4JKFo0pe9B2H/87JM9L yH9lo2NVdTLLH9Qm94Pt59td3ZRL3dVi0WfuL05ObF6HgYiri/TAVMPLYU+6m5SJhBKL C9zoPOmTiQLV6VEHyxCEbuhrghiRC3WNBCfQPWsJYdp+6YGUPHt9RyTSx8RhfVCqxIIU 22pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZqbKSqt; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a5085c3000000b00462f4ea167esi5499063edh.315.2022.11.26.06.33.44; Sat, 26 Nov 2022 06:34:07 -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=@linaro.org header.s=google header.b=GZqbKSqt; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229616AbiKZOa0 (ORCPT + 85 others); Sat, 26 Nov 2022 09:30:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiKZOaY (ORCPT ); Sat, 26 Nov 2022 09:30:24 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C7EA1C417 for ; Sat, 26 Nov 2022 06:30:23 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id a29so10877714lfj.9 for ; Sat, 26 Nov 2022 06:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0FH6Qg/jduzi6PwcFvP6hRcgcF3jb6cJugtkH2wA03k=; b=GZqbKSqt+e1ftphMnBrAMi19b1u4IAdImBmNTWqJrX8rdn1oVuFBFKOAfvvO64bKdM NMKq6OpVDdPfw275d9Ldd19+I67ocoK8A0PLAKOoK3TKN78kVwSVYM1gfmZEORB3LoxU ZEM09KjqYmuGjq9NTAGC6y3w6aA+Mkh5LE5mDZs0eyiQDPTK1s2WtUlH6KqTScWXCaLX nzFPUN7+4E4TOPrRpcQE4eTJJowwJlA6OT71zDN8sbFl1ldqK3w/Ng4OFOi9OzYbeQkj hXkh21S4ZmZ99b+vdxzxyRqAclye5TvOgH8dw3cVsw9Dlhqg7W3uvYAe1tqrYpra9qxV +evQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0FH6Qg/jduzi6PwcFvP6hRcgcF3jb6cJugtkH2wA03k=; b=VwLpMKN35rX3UeCuAGfsnKtlRhoHvfb3yYKhh8PpW/Zej5TJvcYpvP2zdQ+mjZ7y+m a2l7xeqla2U5PFqHSbtBrhFkaGaTF4avJdhfgSvNkZl6v+OwocCv4GKASkAYg29uS83A 3WYZjOO5NXGb74s3FGRuV3hFD+YnPDlpAO4DFXlhcJu5BAVXkC6hvLBb3Yg2xFRXRgxp 48/AWGNerhTM/V7mTxPqYfm1srypFvpXV9jOZwMWxRgR8hcCWNglp79HUJQ8BFxtLPH+ EhA1Yyi2xBauL3ca+aVfOZAVguYqoqDr3SmuIHEy6M6M6mFsZaYQvA20PrLYYrfSxN8A L7ug== X-Gm-Message-State: ANoB5pmq6OyuSYrETqlhoNa22GDk1Sy+br2xrWCMQZqVSD63QKc6bXoi 9g+up78c31M20SEUjQVVJlH7ZroNbes25QwV X-Received: by 2002:ac2:5453:0:b0:4a2:2c23:a6d4 with SMTP id d19-20020ac25453000000b004a22c23a6d4mr13687688lfn.257.1669473021404; Sat, 26 Nov 2022 06:30:21 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id p11-20020ac24ecb000000b004b50ae0bfe8sm262741lfr.208.2022.11.26.06.30.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Nov 2022 06:30:21 -0800 (PST) Message-ID: <2b399e95-70c9-0213-90e6-95f377976e95@linaro.org> Date: Sat, 26 Nov 2022 15:30:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v7 1/5] dt-bindings: PCI: ti,j721e-pci-*: add checks for num-lanes Content-Language: en-US To: Matt Ranostay , rogerq@kernel.org, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com, vigneshr@ti.com, tjoseph@cadence.com, sergio.paracuellos@gmail.com, pthombar@cadence.com, linux-pci@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221124081221.1206167-1-mranostay@ti.com> <20221124081221.1206167-2-mranostay@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20221124081221.1206167-2-mranostay@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 24/11/2022 09:12, Matt Ranostay wrote: > Add num-lanes schema checks based on compatible string on available lanes > for that platform. > > Signed-off-by: Matt Ranostay > --- > .../bindings/pci/ti,j721e-pci-ep.yaml | 28 +++++++++++++++++-- > .../bindings/pci/ti,j721e-pci-host.yaml | 28 +++++++++++++++++-- > 2 files changed, 50 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml > index 10e6eabdff53..1aeea168d3d0 100644 > --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml > +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml > @@ -10,9 +10,6 @@ title: TI J721E PCI EP (PCIe Wrapper) > maintainers: > - Kishon Vijay Abraham I > > -allOf: > - - $ref: "cdns-pcie-ep.yaml#" > - > properties: > compatible: > oneOf: > @@ -65,6 +62,31 @@ properties: > items: > - const: link_state > > +allOf: > + - $ref: "cdns-pcie-ep.yaml#" While moving it, drop the quotes. > + - if: > + properties: > + compatible: > + enum: > + - ti,am64-pcie-ep > + then: > + properties: > + num-lanes: > + minimum: 1 > + maximum: 1 > + > + - if: > + properties: > + compatible: > + enum: > + - ti,j7200-pcie-ep > + - ti,j721e-pcie-ep > + then: > + properties: > + num-lanes: > + minimum: 1 > + maximum: 2 > + > required: > - compatible > - reg > diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml > index b0513b197d08..8eca0d08303f 100644 > --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml > +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml > @@ -10,9 +10,6 @@ title: TI J721E PCI Host (PCIe Wrapper) > maintainers: > - Kishon Vijay Abraham I > > -allOf: > - - $ref: "cdns-pcie-host.yaml#" > - > properties: > compatible: > oneOf: > @@ -98,6 +95,31 @@ properties: > interrupts: > maxItems: 1 > > +allOf: > + - $ref: "cdns-pcie-host.yaml#" Same here. > + - if: > + properties: > + compatible: > + enum: > + - ti,am64-pcie-host > + then: > + properties: > + num-lanes: const: 1 Best regards, Krzysztof