Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10442440rwb; Fri, 25 Nov 2022 04:48:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf55SemdWwLPE7NSgb8/wfpi/s7v9+bH7dymrStBKyfXR7SjtnaLGMTJMWWMor8WBKsYAw7n X-Received: by 2002:aa7:d94a:0:b0:463:6b8f:f203 with SMTP id l10-20020aa7d94a000000b004636b8ff203mr34630985eds.236.1669380501198; Fri, 25 Nov 2022 04:48:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669380501; cv=none; d=google.com; s=arc-20160816; b=wHi3ug6qs4SXDeALMdbkzYAW2YcZugavavRFtCprS+ZJ/zKsTZ/fURlYOW8b1mWDrr x9Pk1l7S/xEOvW+XCutIXJo3dtt2CI4zVoCmQGX9BgAieEuE+fOxxMzq8gnIci5yMRzQ 5P+7wg5Z0X18lvCP5qkvbDAJxjIQIDhFavxl9TjVQ8GWM5CxGoM0kPK/mEHVuC+Rz+YG AEokQMO/s/nXDskSyxgkHY6tKcLOPuQstzpXy68DhFV8TQLo8snoKusaSJgD3BCyOjlH DXlY/Xb1YzAY/cYs96t1eCZpUEvGmyfAKMvg6ZTEoiu4/nHupnmRfcBGZ2AWRAwGwN15 A4rg== 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=eSyJyin3DcAhN20TY3IqKYOWPvagzvgc5IbgHn45DZ4=; b=W7iOMMiyrm6nLJm2xQ9sx9/g8RXV3NsMfszBwo05w+idEvKgm6knV69SFuq1A/T+3Q syo0AzoI3MTOIAbh/CeOqZBbyaqTI7Du2feV1uOhjdvmC6cPrbPpnC5Q0SWsv1XgwryE CYLvIBFLvAxo/J9w7U5A/86gyh0p1hfBuDHqgent0smgKo+7d2rS3klNpDJGkcfSPmsx i2V7rmruJeQRPfEW/mjL0k95MTBoMyFMf1MDUv8Rw6BVRIKN3SLHc94P465qV5zMq7Yg ZEP8rpS4J+DbbnyerJhkWZtcAN2rutZOe2LCVrmkuo/9byfI52edEiEAr2DmyY0LzyAq e65A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qdi5lDv2; 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 gs12-20020a1709072d0c00b0078d78fbb88dsi615156ejc.967.2022.11.25.04.47.59; Fri, 25 Nov 2022 04:48:21 -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=qdi5lDv2; 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 S229852AbiKYMc6 (ORCPT + 86 others); Fri, 25 Nov 2022 07:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiKYMc5 (ORCPT ); Fri, 25 Nov 2022 07:32:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A0F6186FE; Fri, 25 Nov 2022 04:32:56 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C39E7623B1; Fri, 25 Nov 2022 12:32:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1A3DC433D6; Fri, 25 Nov 2022 12:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669379575; bh=p7ss/fqibxOK0PX8EdO8U+TTo07V8zCu5SpOcHojgAA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qdi5lDv2Jtp8LCdCcgMfP5C4RRZxR57BJfgLSOyiEnHVpRDME342qmcYoL6eAF7G7 b4WKDJVKVgPaib2FJSPdZx2FRe+sDMG6W7JxggOXaP2UtZwMn7ZOjmGrMji5O2UrAu +EKQJ+ywNrW7vCo9rJE9J0RRIbAGEJVDDOCTwJreYZXUAF5rVl3EGb72QWqQ4cQ52X Xjjc0hH+1knU92nBAC0hPVMzAYNK7Cl9+ciX+yMRnJ1AU8wRBxtjxe3/bX2myovB4a Xcohx33ZtmFbxAgnAPKlAqKy2gcphnH0tLvDDJVtjLwzHBbDJh9NEy0JAfILoNYPIS 9A6Gty8kU70GA== Message-ID: Date: Fri, 25 Nov 2022 14:32:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v7 5/5] PCI: j721e: add j784s4 PCIe configuration Content-Language: en-US To: Matt Ranostay , lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com, krzysztof.kozlowski@linaro.org, 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, Achal Verma References: <20221124081221.1206167-1-mranostay@ti.com> <20221124081221.1206167-6-mranostay@ti.com> From: Roger Quadros In-Reply-To: <20221124081221.1206167-6-mranostay@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 24/11/2022 10:12, Matt Ranostay wrote: > Add PCIe configuration for j784s4 platform which has 4x lane support. > > Tested-by: Achal Verma > Signed-off-by: Matt Ranostay Reviewed-by: Roger Quadros > --- > drivers/pci/controller/cadence/pci-j721e.c | 23 ++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c > index dab3db9be6d8..c484d658c18a 100644 > --- a/drivers/pci/controller/cadence/pci-j721e.c > +++ b/drivers/pci/controller/cadence/pci-j721e.c > @@ -330,6 +330,21 @@ static const struct j721e_pcie_data am64_pcie_ep_data = { > .max_lanes = 1, > }; > > +static const struct j721e_pcie_data j784s4_pcie_rc_data = { > + .mode = PCI_MODE_RC, > + .quirk_retrain_flag = true, > + .is_intc_v1 = true, > + .byte_access_allowed = false, > + .linkdown_irq_regfield = LINK_DOWN, > + .max_lanes = 4, > +}; > + > +static const struct j721e_pcie_data j784s4_pcie_ep_data = { > + .mode = PCI_MODE_EP, > + .linkdown_irq_regfield = LINK_DOWN, > + .max_lanes = 4, > +}; > + > static const struct of_device_id of_j721e_pcie_match[] = { > { > .compatible = "ti,j721e-pcie-host", > @@ -355,6 +370,14 @@ static const struct of_device_id of_j721e_pcie_match[] = { > .compatible = "ti,am64-pcie-ep", > .data = &am64_pcie_ep_data, > }, > + { > + .compatible = "ti,j784s4-pcie-host", > + .data = &j784s4_pcie_rc_data, > + }, > + { > + .compatible = "ti,j784s4-pcie-ep", > + .data = &j784s4_pcie_ep_data, > + }, > {}, > }; > -- cheers, -roger