Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2581187pxj; Mon, 17 May 2021 05:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxATrNiXZqvT/y1Te6Esm50E257o9vmgWm7J1scavfsT2YLop9HYg2naCEBzR5BDkqpmWh8 X-Received: by 2002:a05:6638:1242:: with SMTP id o2mr56292759jas.10.1621253441273; Mon, 17 May 2021 05:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621253441; cv=none; d=google.com; s=arc-20160816; b=VU0haYmn0SsUTTO1X9mnb/uQHDk8wFCYGJW8x6T/yAGg3UVxZg4695jIakjPDXfdlu 1OagwUmQAAoOoJbNCLx0P2e0kAUbmNohvS20leQmRWQgEq2m02j6fP9YM4w8d7MtBRPp 61qLT7avAPMiTxdBNIzCoIA7fl7FOWAFjqXk+ks1RKm6G504KfMelMsrAEkVHRDjo7zJ U29DsZjT75IOx4SqALpmkIbk55tYi/GdMY4n2fwB01E775peIjrmR7rVzHagUUNbFLtS F9Z6I0qaHSSrKSeHOV2J9DbmnbDZT/VjtvYQ1eEr/A1pngN/wx1WLpDiDPm94WoPaJf7 Ltow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OJetcwDGbQX4ue/VlKx+DIF0UQkBwHYH6uHoefzoJOY=; b=wJMmKorpYNUdFhYEllsmrZ+Wm6Y8Y/RF5ewQfFUwZIEJBWFaFlbDP6VbJClP5MoBcg ff6vPRcUrvJ5d5b9J6q61cilbh4hruI/pWULT1nFsEGTsPkcAUxCRmJvx8NwgRorCagm 3BC85+cENBRIIW3ZFHJQNYLGiomFL5cZ2EOYs/5YvQ+B+nNeYWiXukEOv3PfP4eaCG6M 8q5PMUskYP2RmkhdZCuLaP0+9cKp2/om3DUKBbyrWoeg4U1DrMeyHjGaJAu7880ah6oy mdBmkJUifjka1qjNU6AllxJ/P2kndhmO2qTfxPT4bulG3yJpDQJyEF0ePY4sTI0G2Jxi UQ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IE5ep8V1; 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 y3si636883jat.97.2021.05.17.05.10.28; Mon, 17 May 2021 05:10:41 -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=IE5ep8V1; 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 S234924AbhEQGTs (ORCPT + 99 others); Mon, 17 May 2021 02:19:48 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:55352 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234939AbhEQGTp (ORCPT ); Mon, 17 May 2021 02:19:45 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14H6IPTb040896; Mon, 17 May 2021 01:18:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1621232305; bh=OJetcwDGbQX4ue/VlKx+DIF0UQkBwHYH6uHoefzoJOY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=IE5ep8V1lOaWeYZz487oQpm8sdZkvjtoDeuHVy4DuqN3ETM85fo+GSkfb+wS0XLzB EcAX1LAPt4OoUhSXjiHhKVi97lBSFBw4+0zkWQo57apWtFAbkI9UB28HND7zrJHXA3 moQ94b7IYW/NP22vZxmQPE8Kg/VM8qcHcqDY6bGI= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14H6IPui021165 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 May 2021 01:18:25 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 17 May 2021 01:18:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE110.ent.ti.com (157.170.170.21) 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; Mon, 17 May 2021 01:18:24 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14H6Hpl3003911; Mon, 17 May 2021 01:18:15 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH v2 3/6] arm64: dts: ti: k3-am64-main: Add PCIe DT node Date: Mon, 17 May 2021 11:47:36 +0530 Message-ID: <20210517061739.5762-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210517061739.5762-1-kishon@ti.com> References: <20210517061739.5762-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 d4b0ddcc22ed..74fa6f918ec5 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"; + interrupt-names = "link_state"; + interrupts = ; + device_type = "pci"; + ti,syscon-pcie-ctrl = <&main_conf 0x4070>; + max-link-speed = <2>; + num-lanes = <1>; + power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 114 0>, <&serdes0 CDNS_TORRENT_REFCLK_DRIVER>; + clock-names = "fck", "pcie_refclk"; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x0 0xff>; + cdns,no-bar-match-nbits = <64>; + vendor-id = <0x104c>; + device-id = <0xb010>; + msi-map = <0x0 &gic_its 0x0 0x10000>; + ranges = <0x01000000 0x00 0x68001000 0x00 0x68001000 0x00 0x0010000>, + <0x02000000 0x00 0x68011000 0x00 0x68011000 0x00 0x7fef000>; + dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x00000010 0x0>; + }; + + pcie0_ep: pcie-ep@f102000 { + 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>; + reg-names = "intd_cfg", "user_cfg", "reg", "mem"; + interrupt-names = "link_state"; + interrupts = ; + ti,syscon-pcie-ctrl = <&main_conf 0x4070>; + max-link-speed = <2>; + num-lanes = <1>; + power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 114 0>; + clock-names = "fck"; + max-functions = /bits/ 8 <1>; + }; }; -- 2.17.1