Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4560330pxj; Wed, 12 May 2021 08:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ7De2WB+CahJdN6au2nnr0pdNTz1MvuBE0J5MfQjhshZZlXc+GS+0LDc5FvF/jhDr5NBc X-Received: by 2002:a05:6830:18f3:: with SMTP id d19mr18057242otf.369.1620832357793; Wed, 12 May 2021 08:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620832357; cv=none; d=google.com; s=arc-20160816; b=J2ozbkSNMmJvUz7Az9DH/XOP4afyqX0sLlh3dx4aFpZdYDkWkw2BULZ0JrxGQkFeyT sPshW3f1GUZl5zGpu2VGV0Yo+NuCxY/k9kjFRiCk6AsHkNAeG9C0WEAirkxgXJLTTEjG WFQgVwXth3NQlpEuLUEFiq4kAWZdbxD5JXZi3C2Mpo6s+rNfQHrdsIvdbpStliiRqLPJ HzYWzgMqyrqBVPxZWRFPHH1PISra6KupPqd6C0r6o0PbMuB5ARbo+b4YA9nWDfBSGVLn 9fNOLStm0SI9D3eN5d3/uCLk96i+9JLNDfB6kjVHrnMeAPDc59TUrGkUrM8rpL0hhzrE fMtg== 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=Ps9WD6JyeTZxfA3Ol9ZaQRBlCX51sSBKBNSIql3lqwA=; b=lWckevskYYOF1fYyc+sY+CQw0TBhclEA74wyyJDLkPYMIzjKpNIcpDFxX0R9ZUybuQ dy5Dt1e8E342h25ce03EJwjiwY4SijjOIAqGioWSe3c30AfC5+jHuCpuGyVVvpxFuvst a8Lh0LNmVvefvj1rHaaqPbGEdPZlbxt34D7bVcJeT+ZaMQdPmBw4fF6mGCVUTbvYJvMc 4I/F5VXtk2C6Rlb8vmZtf36QwfUmTDn+HfYPEK8zAFstsK0vumwp2sY3I07VbJu1JqLX G+62OPN4WzIVE1UYj0s88G+F38pKnWNfnmgSj0ltBbeERqyGlzTcCV8ND35Yhde7QT+g WXgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wgNrIK6Y; 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 f25si172777otc.187.2021.05.12.08.12.22; Wed, 12 May 2021 08:12:37 -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=wgNrIK6Y; 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 S232755AbhELPLX (ORCPT + 99 others); Wed, 12 May 2021 11:11:23 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45562 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232979AbhELPCr (ORCPT ); Wed, 12 May 2021 11:02:47 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14CF1awa125511; Wed, 12 May 2021 10:01:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620831696; bh=Ps9WD6JyeTZxfA3Ol9ZaQRBlCX51sSBKBNSIql3lqwA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wgNrIK6YhlyEhRdbVbU1PVwxTGkeuuCllkGbGXFuCQRa5BbhWZKTytgIPzIk1ecpH 2/hbIfH+MDYw6uWKZ/QVYtuj0lnYLBNPqWOkeSpmsSEE2YoiptxvJ+AR1InjgRPSXB MsZlI4HBHzPR4eNzO/HMQv5uTI5xzNPGnXpQcLoU= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14CF1akG123582 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 May 2021 10:01:36 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE102.ent.ti.com (157.170.170.32) 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:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) 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:36 -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 14CF19FA119262; Wed, 12 May 2021 10:01:30 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH 3/5] arm64: dts: ti: k3-am642-evm: Enable PCIe and SERDES Date: Wed, 12 May 2021 20:31:05 +0530 Message-ID: <20210512150107.26793-4-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 AM642 EVM has a x4 lane PCIe connector. Enable PCIe in RC mode here. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index dad0efa961ed..8c27f563a390 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include +#include #include #include #include @@ -466,3 +468,31 @@ &mailbox0_cluster7 { status = "disabled"; }; + +&serdes_ln_ctrl { + idle-states = ; +}; + +&serdes0 { + serdes0_pcie_link: phy@0 { + reg = <0>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>; + }; +}; + +&pcie0_rc { + reset-gpios = <&exp1 5 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; +}; + +&pcie0_ep { + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <1>; + status = "disabled"; +}; -- 2.17.1