Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1163733ybl; Wed, 28 Aug 2019 10:32:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6noig5W0I4bpIEbVQj9nNUQlhr7Z/+Ux1ehQ5pMQo4C6CekoclPSqsZdvEL7GEwRsq+PL X-Received: by 2002:aa7:8edd:: with SMTP id b29mr6184489pfr.173.1567013546270; Wed, 28 Aug 2019 10:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567013546; cv=none; d=google.com; s=arc-20160816; b=KiNevxJEXcPOM3Y3r+iGMyGm3q/0nomQ3b+hRrHS2Ow467pDHJeurBwgMF0nmYsc4/ bDHkFqxz/lNJyhj1FkGWfV4v6i4KecFW/ZkpiPS0uvS9eDXVcWlbcZi6L0rlRkNYVNXT fqLxJA+KleuZkpAaZ5+SKgHoy1KwHPHslyVBhsusHoJwQQB6O2H24iwN3QqEPZ04Vwdb rfLIcoueY5/LVQSQUzgrxQ64NizfDEB8Govha1//crL+5Ej2RFpOPDEedN678/jbmi7V 1ScjPa96AJsigKVyIzNOzhHUicTeEWkBOwpwFtQAqg2SNx50WTPm3JyhFj7gMeg/9188 nCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=cgPEcWm2UCsXVSy3BuQ7qpUrMfhp8e82nRMOOsO67zY=; b=i0eq6df7rODHG/HNMi5xfF0csXwuwKRv7JR+kmaSE0Fmecz+3FlM44oE4qStQ6t3ex BwDOUEqMaJczIyZAvc3y6hovGZsw409fmqzl8Wh9eQAmmPKBhDn1kVPVmcRVylC6adK1 pbzDbVXXVHdB0hMsKOJ7wj49QF6yNFa+34hpT1eJSLcpw0ouK/Ndxs1Ih6Br9ohFosEq fRURcGCZxf58ta9eVNSavgPYFF1HMGYWuLYbD5hbpW9opdz38kw0Qit9/sxncpYyVIq7 BQA/6C+S97SeBGVHfUgkiZGVoG20A2JB2eQtfTjfapFBVBsYvkbGhVKFwfqB4lh+YLtX xC6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=eu7QVshE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cu10si2378476pjb.16.2019.08.28.10.32.09; Wed, 28 Aug 2019 10:32:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=eu7QVshE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbfH1R3c (ORCPT + 99 others); Wed, 28 Aug 2019 13:29:32 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:8317 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfH1R3a (ORCPT ); Wed, 28 Aug 2019 13:29:30 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 28 Aug 2019 10:29:30 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 28 Aug 2019 10:29:30 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 28 Aug 2019 10:29:30 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 28 Aug 2019 17:29:29 +0000 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 28 Aug 2019 17:29:29 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 28 Aug 2019 17:29:29 +0000 Received: from vidyas-desktop.nvidia.com (Not Verified[10.24.37.38]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 28 Aug 2019 10:29:29 -0700 From: Vidya Sagar To: , , , , , CC: , , , , , , , , , , , , Subject: [PATCH V3 5/6] arm64: tegra: Add configuration for PCIe C5 sideband signals Date: Wed, 28 Aug 2019 22:58:49 +0530 Message-ID: <20190828172850.19871-6-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828172850.19871-1-vidyas@nvidia.com> References: <20190828172850.19871-1-vidyas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1567013370; bh=cgPEcWm2UCsXVSy3BuQ7qpUrMfhp8e82nRMOOsO67zY=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=eu7QVshEjfFtyyU7CXfzDxmE+VnngwwGTvz1DwhjyT7RZRkObGaK3cM/gJcVULBLh gRjb7491NdDoLdYm6umoLLIDhC9S1TJbAR8SvRnjTeQaLl+PMFcxoo6MfekKytsjaT iBKl66eOeLaa2Uq8872MIukuhQgBAhtQEzbWoHnZXGCHn6744h8lPj7zo0VyZP/Ji0 JOzFeuEHFMK1AHpeHkHxb0Xo2zcU6X7QBc21Ew+4Yj8tRgF8In//A3Gf4lQ2NxGaI3 i7MLXCLQVvhnxsz6KTbXz/OyrM3cLB/ghwZreNqHAYVn/OBp2GyvL7Ijq9CCqovZvw ybGCbs7OPq2qQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support to configure PCIe C5's sideband signals PERST# and CLKREQ# as output and bi-directional signals respectively which unlike other PCIe controllers sideband signals are not configured by default. Signed-off-by: Vidya Sagar --- V3: * None V2: * None arch/arm64/boot/dts/nvidia/tegra194.dtsi | 38 +++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index adebbbf36bd0..3c0cf54f0aab 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -3,8 +3,9 @@ #include #include #include -#include +#include #include +#include #include / { @@ -130,6 +131,38 @@ }; }; + pinmux: pinmux@2430000 { + compatible = "nvidia,tegra194-pinmux"; + reg = <0x2430000 0x17000 + 0xc300000 0x4000>; + + status = "okay"; + + pex_rst_c5_out_state: pex_rst_c5_out { + pex_rst { + nvidia,pins = "pex_l5_rst_n_pgg1"; + nvidia,schmitt = ; + nvidia,lpdr = ; + nvidia,enable-input = ; + nvidia,io-high-voltage = ; + nvidia,tristate = ; + nvidia,pull = ; + }; + }; + + clkreq_c5_bi_dir_state: clkreq_c5_bi_dir { + clkreq { + nvidia,pins = "pex_l5_clkreq_n_pgg0"; + nvidia,schmitt = ; + nvidia,lpdr = ; + nvidia,enable-input = ; + nvidia,io-high-voltage = ; + nvidia,tristate = ; + nvidia,pull = ; + }; + }; + }; + uarta: serial@3100000 { compatible = "nvidia,tegra194-uart", "nvidia,tegra20-uart"; reg = <0x03100000 0x40>; @@ -1365,6 +1398,9 @@ num-viewport = <8>; linux,pci-domain = <5>; + pinctrl-names = "default"; + pinctrl-0 = <&pex_rst_c5_out_state>, <&clkreq_c5_bi_dir_state>; + clocks = <&bpmp TEGRA194_CLK_PEX1_CORE_5>, <&bpmp TEGRA194_CLK_PEX1_CORE_5M>; clock-names = "core", "core_m"; -- 2.17.1