Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5550906pxj; Wed, 26 May 2021 13:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtUpUd2Okx69TDhQARq8QJA5nHfDhRvY1KoF9bT2AjL212Y+sG1x0SazqrLebNZTE9xfx4 X-Received: by 2002:a92:dd89:: with SMTP id g9mr80396iln.209.1622060423720; Wed, 26 May 2021 13:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622060423; cv=none; d=google.com; s=arc-20160816; b=Wq09t8MWeDVXiNwbWtbv3oXg9eM/1JAObJK28rTZ2myuIlQIXmH9LPvW4NG2baaGDB x8aF4a6/EQuQOrSie86uuJWuSdeFmQ05XzR48iw2UQgUVSASuGOGFRYW0AZeGXKn714d +fWfAC1QJ5AK6MhH5vV9iTSU9mekEQ3vUlEqdRslSvVDtj/upCik0/ddhGez1orENG2m 3iEEsLiFm1oKlWMzt5xpDnLC6qIHwKwExRkwyGChQRAwAXflBm98CQptP5VEKHe6gHjG H4JeBE26f0w/Q2gtxVfQdOf4XmYIYaueU8SYWaMyoFcNymyovU0LMyy90umrn6hMCuqw GgoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BKwkIfBERwTZedUQYKugmdcf1E8hKbfekE2TBc1GF3I=; b=W9M1sKD03pcgqVrDl61VKPd181aHr/P4Xo61p42dJ/GFt7uet+PtLvHDwsYxx85tZh xHssolFUHTf6i1ThI0KlL8knzFqmim5jjO7ey59PBNXydWc8Mvv0ymOWakZbeq4aqXTN qGflcsQEALk2Z9Ikwl7tsXADChrkIZdgyfValFsIHtKUAv0SabLun1VG5HtJd/xgZ2P6 7mL+9FYQdj2UQbN2JTO8OskGJDw40Hdz/q84L9vSmhvTcfaa5rAoLHLBmMJqd2haSteW UhjezjO0n2kDrjza2OF+CEB+sgNpSYBzNPRmgg9Ya4R6q4iye7VtZ3cEGeGoUaYlkJ2G EZgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=swLeJDJ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si18482iou.15.2021.05.26.13.19.45; Wed, 26 May 2021 13:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=swLeJDJ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234694AbhEZSxJ (ORCPT + 99 others); Wed, 26 May 2021 14:53:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47574 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234611AbhEZSxI (ORCPT ); Wed, 26 May 2021 14:53:08 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14QIpXQr023283; Wed, 26 May 2021 13:51:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622055093; bh=BKwkIfBERwTZedUQYKugmdcf1E8hKbfekE2TBc1GF3I=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=swLeJDJ1yxuHYqIOz7Tmqd9cplo5eZGnfVP0OBDfEhQfZbLskVubqEX964v5/hjoi dQOYmmNCpqdgIaXPny9JIms7YxczG5YKFBg+/6nxWMdWgLdyMwkaw7R8FQAFH8xbPM 8BbXGhc4MQf81MEDH2hQzAtBR1Z1qpVRDNEQYd58= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14QIpXoN011162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 May 2021 13:51:33 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 26 May 2021 13:51:33 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 26 May 2021 13:51:33 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14QIpXbf064439; Wed, 26 May 2021 13:51:33 -0500 Date: Wed, 26 May 2021 13:51:33 -0500 From: Nishanth Menon To: Kishon Vijay Abraham I CC: Tero Kristo , Rob Herring , , , , Lokesh Vutla Subject: Re: [PATCH v3 2/5] arm64: dts: ti: k3-am64-main: Add PCIe DT node Message-ID: <20210526185133.sm2iqqpequz3mmvq@crafty> References: <20210526142921.12127-1-kishon@ti.com> <20210526142921.12127-3-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210526142921.12127-3-kishon@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19:59-20210526, Kishon Vijay Abraham I wrote: > AM64 has one PCIe instance which can be configured in either > host mode (RC) or device mode (EP). Add PCIe DT node for host > mode and device mode here. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 46 ++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > index a67f10406a8e..9c77f7da5d28 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > @@ -728,4 +728,50 @@ > #clock-cells = <1>; > }; > }; > + > + pcie0_rc: pcie@f102000 { > + compatible = "ti,am64-pcie-host", "ti,j721e-pcie-host"; > + reg = <0x00 0x0f102000 0x00 0x1000>, > + <0x00 0x0f100000 0x00 0x400>, > + <0x00 0x0d000000 0x00 0x00800000>, > + <0x00 0x68000000 0x00 0x00001000>; > + reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; [...] > + > + pcie0_ep: pcie-ep@f102000 { Hmm... Warning (unique_unit_address): /bus@f4000/pcie@f102000: duplicate unit-address (also used in node /bus@f4000/pcie-ep@f102000) we could pick reg for pcie-ep for node address, instead of intd_cfg address? OR, does that mess something else up? > + compatible = "ti,am64-pcie-ep", "ti,j721e-pcie-ep"; > + reg = <0x00 0x0f102000 0x00 0x1000>, > + <0x00 0x0f100000 0x00 0x400>, > + <0x00 0x0d000000 0x00 0x00800000>, > + <0x00 0x68000000 0x00 0x08000000>; [...] -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D