Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4558649pxj; Wed, 12 May 2021 08:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyQ3VLI8p7iJVojwv859OtjBAX5w9FJGd4JXlGVCCqAHxdu/yDJh3a2WA70L3a4asL5o7e X-Received: by 2002:a17:906:a51:: with SMTP id x17mr38242601ejf.25.1620832244281; Wed, 12 May 2021 08:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620832244; cv=none; d=google.com; s=arc-20160816; b=CXCROUqjSWEINgtljJWSy1OIYSFMi5LMI0N3XIYzpDe//4YB6XsuwaEqG3o3xWzDac URImjwp7DT3D5tzl1QYw3t63bxUwajJNX7TlQOG2hVv+USjCrdJVxuZ183qemSOrj3UI 0UoPK1O82YtAdDf0leNTkdhP9y52Z6z3bJyGDPF+2BvsLbDqnT5EiyVIvNZ9HRYU++HS QZbmMbzgcn7pF6FoPw0O0WAh4XojPLVZ6o/8eGNBL65wIMbvxurD78rgDj/SS2dlA1uX DtygQ2T0mlE0GWvsauF6uL+QKehEAFp6OhRvmn2cF/hv501H4hWlq5DEnJaPnlXJ9XR0 wuQw== 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=bTTkfR7WqohQhQnAbxZTi186mxoH5jF3kfx6jLv7jJY=; b=m360eM97qRMRvjme1tIA3m4D8I+ghI0UYIMAEshFBIpICJed8+KyCzBsLl/p16mQfJ M3hlQJWo3Y5PYP5VeTlx/uhVR0UPb0n4M5RulNBSozBmByta4hly8Xz+viIvX6IUuAwM ZMWBU1k/4Rzc8iF2TXybOV3Y7nslpgn2f8r2LblFaq0nbE8QZ9gdhegdmLeJdlflpXl8 ajho9H3DjbE1okPqSyfkfVlyjs9wH54zCX/jHnsPyCTOfqdEOTCUd3v6qeb3URcgUhGY rN/pBbC80VjWEhPB/ChkooeHSWKJl0dpzGtEwo/aSG0eKWdZRjiEHMa1MqOG5u7drYD4 Q/rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="PnR/6E8M"; 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 n4si234250ejy.71.2021.05.12.08.10.19; Wed, 12 May 2021 08:10:44 -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="PnR/6E8M"; 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 S233038AbhELPHI (ORCPT + 99 others); Wed, 12 May 2021 11:07:08 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45548 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbhELPCm (ORCPT ); Wed, 12 May 2021 11:02:42 -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 14CF1UU5125484; Wed, 12 May 2021 10:01:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620831690; bh=bTTkfR7WqohQhQnAbxZTi186mxoH5jF3kfx6jLv7jJY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PnR/6E8MyOpXf7hS9VKznVPCcBGe76Dpy5fenCUIfqfLByuazycjQmxlYxF+JnKk5 h0MVE92mZLZs8sTZca0uT3Dvxd3MSbAGcudCa6riadqAIgzmmekEol5refUAIQFopX /C05SNN3NVvT0RGfflKFMmfE94DPUkCnUtNod8Uc= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14CF1TZf082892 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 May 2021 10:01:30 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 12 May 2021 10:01:29 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Wed, 12 May 2021 10:01:29 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14CF19F9119262; Wed, 12 May 2021 10:01:24 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH 2/5] arm64: dts: ti: k3-am64-main: Add PCIe DT node Date: Wed, 12 May 2021 20:31:04 +0530 Message-ID: <20210512150107.26793-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512150107.26793-1-kishon@ti.com> References: <20210512150107.26793-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 4f15046eea82..c4447f430fbf 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