Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp433977qtj; Thu, 19 Jan 2023 08:05:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXt84KrVLsOZwLbrt/nRu2Onq+wwbkt6PE+f7SoQhF4FX2Tc8JI4Ibmhb5H7mEBOCSyhqT2b X-Received: by 2002:a17:903:230e:b0:194:d78a:fc80 with SMTP id d14-20020a170903230e00b00194d78afc80mr1762619plh.61.1674144334477; Thu, 19 Jan 2023 08:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674144334; cv=none; d=google.com; s=arc-20160816; b=0fl+dsnP9GuSBG6Zjesw3CcOOJWDx7G22NQhZtyETEHrN64xqOfQ2ADCk5vOV7aBi2 dHkMu0afsPloeGSSGMR4+zXeO/6OE2Gxd1yDuLbUmxVDBge2d68W4VnomwsZyHnmzyF6 +flpLC6UnTwxrjguoKCzauKQqF+EXPMz1XiPGccPx/xx6dj6idCoJTrvkyYONac1yWtb yN60dFno0c374x0ILVNUGd/fgjNBF1cMQX2/XilQHvhRFlUYlJlQRSGtPfdcE7ecrxaH akQNAFtOwm3wnPds6d1hgN5O8TS4P+2WMnoem8FGWwe1PUXmDMm+3xzsMYCQF6Vc9dic 0Wpg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9OtQKUy3O/wxA8BJ9fjP5SexIZ7HSW4yV7WQUNilHvg=; b=1Jt18roarbuoF3BBagio9xQ/Ei9aZm2PQYzvHeqVDNbHfD1RUTXw8OIjUcslmzn0Hs ZI7DGV60EIG8Dcd9NiDjo8Kep7WMnM+6Hgd6rIXb/jEeMVodNXgrN4w8GNfdLw+NAPW3 8Os6cAdXmc1Mq2kNZfgNSPCsJIykvXxt40dHxvJNfSNxivIFpBuyjuRkdTpgzZJbG+Mw U+prYjLzK8/zsGZEWy9XMcAvVmAzBXGsmRwL7pOw0vFHe4w9xYz7F5Th3dRrh3uT2A/i vg5BRZx39fsmd6bvl504yLIlYjNA9eqt10pJBVf1dVeZpIGU6YrW0SkpMrg66//fubCY zTZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qDUwzHhP; 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 q20-20020a170902b11400b00187073496b4si37344928plr.136.2023.01.19.08.05.26; Thu, 19 Jan 2023 08:05:34 -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=qDUwzHhP; 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 S231239AbjASPiS (ORCPT + 47 others); Thu, 19 Jan 2023 10:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbjASPiO (ORCPT ); Thu, 19 Jan 2023 10:38:14 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A01282D7C for ; Thu, 19 Jan 2023 07:38:08 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id q10so2273665wrs.2 for ; Thu, 19 Jan 2023 07:38:08 -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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9OtQKUy3O/wxA8BJ9fjP5SexIZ7HSW4yV7WQUNilHvg=; b=qDUwzHhP9WiwfxC3rlJQQt3rmBKzAJQWEgZSjeuvbrGSHyfBIW/UX9axTeJ6b72khJ nuKAXboBweC0hJWpbxz8lKKA/LnMWK6FVlKVnTbRWCjSPEo64nNMp2KlZ34+2sRJOzIG w5Pkh1vzqJ+4Oh0VMMRTZdEF8LNYlPreCV4X3ezWjMhVWaV0vb4PR7FTNwmjuxDFFyH8 j0gaTvYTvn02jK0UrXzu3iNyLVoRgyDu8v/Ga5OBWjGnHIsPe+YocS/3c9uyxbp8qwlq ntBWEClNF60A8WwLce1bSXWX4CdZHPYKzLpv0liw3XO2N4Ql2wVqCYtrPqZn8eEW9VYe enAA== 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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9OtQKUy3O/wxA8BJ9fjP5SexIZ7HSW4yV7WQUNilHvg=; b=0SGEUDk1zawjxVU6eLgGq0JYgt2VOGFK9Qtt82dRMZWnxDSwVUMccajzp1Gtz7OBNN QUleU2nkRi97OAeWDT/y6+aJaTI+0/aYde+Ldot8HLcK6sIg4TmEMTdDXtb6HViyfDwY 49/Mwty8dHlxQQ2EOlh7i6ciBRzepOPXbKuWRmO7xE1uKt7rBdbXMc/ssKGTMquo9J8Q nOucaES9U8yt1AAMjL55+u9LUcI7Kt5BWCs7AmGaEKltCAQIfD8TsOU8tF3G/gzWjGZP kuiPxEqCu4M53c4OF8nFrNkCOeiaxw1YhFxkoqaExxrmoSesJK7tdCc8CXA4WbAoGaJT MttQ== X-Gm-Message-State: AFqh2kojuYa4U4xBqBnjLlNYNfOuXXaaw/fVUjTuYuNlNEPpryblb+rI KatHxCxKpz1JiN774/Z4+P+NrQ== X-Received: by 2002:adf:f501:0:b0:2ba:dce5:ee28 with SMTP id q1-20020adff501000000b002badce5ee28mr9249903wro.18.1674142686828; Thu, 19 Jan 2023 07:38:06 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id c18-20020adffb52000000b0025e86026866sm40281182wrs.0.2023.01.19.07.38.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 07:38:06 -0800 (PST) Message-ID: <7b6603d6-3ca9-ff74-0a3e-c76ba555e554@linaro.org> Date: Thu, 19 Jan 2023 16:38:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH v8 1/5] dt-bindings: PCI: ti,j721e-pci-*: add checks for num-lanes To: Achal Verma , mranostay@ti.com, 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: <20230118125936.3456716-1-a-verma1@ti.com> <20230118125936.3456716-2-a-verma1@ti.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230118125936.3456716-2-a-verma1@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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=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 18/01/2023 13:59, Achal Verma wrote: > From: Matt Ranostay > > Add num-lanes schema checks based on compatible string on available lanes > for that platform. > > Signed-off-by: Matt Ranostay > Signed-off-by: Achal Verma > --- > .../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..403cd3ef1177 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# > + - 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..7bd78cfca845 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# > + - if: > + properties: > + compatible: > + enum: > + - ti,am64-pcie-host > + then: > + properties: > + num-lanes: > + minimum: 1 > + maximum: 1 Why not what I asked for? Best regards, Krzysztof