From patchwork Thu Jul 23 12:26:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 247063 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1149113ecp; Thu, 23 Jul 2020 05:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV7mtHc33csjIjVEQnro3rwJC4+gxIxYkQ9CPcC/MlkiTnvrRX1lWR4bK5rnKLk4MfvEU7 X-Received: by 2002:a05:6402:1346:: with SMTP id y6mr4039163edw.192.1595507230237; Thu, 23 Jul 2020 05:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507230; cv=none; d=google.com; s=arc-20160816; b=oyKpXT0Hc7eVMO9Bflm25mtYDoi7dNsuiehMDQpCZEhVI31PBaoLEn8RdTePfXgHwe TvsbtIOyENUlnmARpsy/NIzWU6d8mEAephUGkwiJWPQrPy+9N/pZ+f0LN60X73bwjxt4 aLrQFaXsHhICJUEMnMBLXjjfT/fiffgl9rETflRPiCEVK4pR7jKXdBnvUSCVJivAdsVb eS2Z9B4SN7BFIt9cvdfpBnRaW2ETsyuBvQ0QiN6gi39j8dhlBBXH0eBEKoUZpUQeiR+y LpvjepZ7I6w8k5eUqp0/I0nsAQ3S206ax3vh7pDmnpiQodBIgjcI7G5zMeQ7+pkHCwoA MRzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=k4XT/ag3y89G2xERAKuPRDve/n7of+kXftcTCTVuRQM=; b=sEGV/Vxk3UgxqEKJLnbz2BdNV3ncOC2cnN9hgmHtdUjqUgoB0AjGzbfWRhbMAbxV0G lazpJGsQbEgs883yZtCFtWzWd3ZCaTX523wbtqRvBNcVsuzQN6q3KMd97wP3Yw5Ue/X/ olqUGHmzW54N+yOZOV/DiJvR6uUX4XGhcZxhPvF7ZeOmwz04HyG18rMtewB7BoivFvC0 2qB2oxuh3QWZ9sx+A3BcHIjEaKXLgeJkrv0Dl58x4/cZu+uks6rIRuG6YsQdlXY0fLNq i0R+inXsuq5WzC1uMcB2fkD4GPAYPNM3CLZzJtiJHIJ7w4azDlc9EwOQBsa7kHHmw1Qi qjUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xDOBOrtN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 w23si1961550eds.47.2020.07.23.05.27.09; Thu, 23 Jul 2020 05:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=xDOBOrtN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1729313AbgGWM1C (ORCPT + 6 others); Thu, 23 Jul 2020 08:27:02 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:36636 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729324AbgGWM1B (ORCPT ); Thu, 23 Jul 2020 08:27:01 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06NCQwB6077169; Thu, 23 Jul 2020 07:26:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595507218; bh=k4XT/ag3y89G2xERAKuPRDve/n7of+kXftcTCTVuRQM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xDOBOrtNyxiwy/MAhZU60wMm5daqZEoGrGoZ5F6zh7rrLRaXJBZC6Q1qOczQlR39V 3iA6WKnxPn6GS6tSy9wmZEZzBXOxlvw5h8azGbGexA6fx9QpqLQZqfd+Sv9iHrines h0z2wL3NH5CERlWjaTVeUWo7GrFudGyG/11uV/f4= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06NCQwmN126597; Thu, 23 Jul 2020 07:26:58 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 23 Jul 2020 07:26:57 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 23 Jul 2020 07:26:57 -0500 Received: from a0393678ub.india.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 06NCQooX024814; Thu, 23 Jul 2020 07:26:55 -0500 From: Kishon Vijay Abraham I To: Tero Kristo , Nishanth Menon , Rob Herring CC: , , Subject: [PATCH 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances Date: Thu, 23 Jul 2020 17:56:49 +0530 Message-ID: <20200723122649.24676-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200723122649.24676-1-kishon@ti.com> References: <20200723122649.24676-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 8bc1e6ecc50e..29be88811132 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -651,3 +651,83 @@ status = "okay"; }; + +&serdes0 { + serdes0_pcie_link: link@0 { + reg = <0>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>; + }; +}; + +&serdes1 { + serdes1_pcie_link: link@0 { + reg = <0>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>; + }; +}; + +&serdes2 { + serdes2_pcie_link: link@0 { + reg = <0>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>; + }; +}; + +&pcie0_rc { + reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; +}; + +&pcie1_rc { + reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>; + phys = <&serdes1_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <2>; +}; + +&pcie2_rc { + reset-gpios = <&exp2 20 GPIO_ACTIVE_HIGH>; + phys = <&serdes2_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <2>; +}; + +&pcie0_ep { + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; + status = "disabled"; +}; + +&pcie1_ep { + phys = <&serdes1_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <2>; + status = "disabled"; +}; + +&pcie2_ep { + phys = <&serdes2_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <2>; + status = "disabled"; +}; + +&pcie3_rc { + status = "disabled"; +}; + +&pcie3_ep { + status = "disabled"; +};