From patchwork Tue Feb 26 07:05:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 159199 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp2893302jad; Mon, 25 Feb 2019 23:04:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IbMkVL7X67CHEdT5llHsZGaXYhAPc4/A/lb30xOKOBcKuBZQ/X4Ul87H3xBO4S6MUCF2o7l X-Received: by 2002:a62:1c94:: with SMTP id c142mr9909094pfc.54.1551164695968; Mon, 25 Feb 2019 23:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551164695; cv=none; d=google.com; s=arc-20160816; b=oBhyQRKRjL3POO6iPrNOu0FdZW2xMiSMPmGbULlD8jGdTVLuJpkImcAiTtO6wCy6j/ mbNN4jVQcd9dPjtpABRXX1jv2UQQ1Er+mt4976GuEBjo7V8wqnBfDNyjN0yn7K1EHPsm jI92k81rB9jVtWl+UFGt1k1bWX95TfM4nbMaxI/SXSw48cyI6ifIB3/p2BVtLNIc8VFe vTSNGXUbauZpHRk997z9kvMYKE6xvTWcV3Jrduqf6DI8HRFz6ipco0hfmpz5bXUwr1RW ypQcS60WxsFa7c/PklS3uZZvEYv6SimsaE9QY1uzhryT8T6M2uFN1yaSWNOJnMF3CK6h gmyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=53MU+PrJEz/r+Dn9mTJrPuyEaFLQINLwi+DDlahI7lM=; b=svuwqEvxDSx+HwWbvdjw88CHy3hF8h8krKcSGtH55LYXEkL4hdrDuOotUXtTPqjBvp bP1HmYLsJbE4XvX+OUtjZYPNL7wlJaxpRgI+wMYdN72yf/HL/pJChv+t6ZQ6HJ1LsHVa gRLyXgbp2ek9OD/D0Kv0nL05mYiM/+h+w7anP45zv3XzV1sNaESA+aGa466GL/g9FWmL /LlLogMwzANkKhb/7kBIgW5Vu/TYI5JO9j7NziG8e6Aa4aGdjiAESJCBxQoG9MIOOJEz pFPsT+Zq8Y4Lb8UqC48t7jfQCOIXOs+wIsHrc+rhpWAEtJkvnmbDYk5BtNIb/80DYbhW yr1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OPXgBDzR; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si1935628plx.421.2019.02.25.23.04.55; Mon, 25 Feb 2019 23:04:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b=OPXgBDzR; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725901AbfBZHEz (ORCPT + 15 others); Tue, 26 Feb 2019 02:04:55 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43331 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfBZHEy (ORCPT ); Tue, 26 Feb 2019 02:04:54 -0500 Received: by mail-pl1-f196.google.com with SMTP id m10so5752739plt.10 for ; Mon, 25 Feb 2019 23:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=53MU+PrJEz/r+Dn9mTJrPuyEaFLQINLwi+DDlahI7lM=; b=OPXgBDzRp7QyoZv9Qyl/SKZFnjIiejB64kQd5JcYgOFdk2ij76aN4Ia+RkA3R2/t7n eflixowpiXrU0CTXcioWGD1lnbZWnGboP5rDWJQIZek08aGlKhHxoZ0iaQ5rQsMfEGCi kfLz9t8+JG//QvFKm+KTg2eVwTygVzi/FxlDP0+9iWqXo++Ml3XAsTBiWdUlkWdjwVhq TzX4eWx0TbGHb8nQlYmijxdwUKn+xtarKZ/BIEBZ+3RkRAwD6LEiU1iwkLids6hMMKco UHe7V5NTxONmVKdosPgr6zsAo9JZV44OzVELVkLMKLLk5rSy2siS5eMvN8NpXta465Lr fFNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=53MU+PrJEz/r+Dn9mTJrPuyEaFLQINLwi+DDlahI7lM=; b=lIa+bLBxYPu+mqaIe/nEFoyXl07mN+6lch+a7dBRaKyaR4O9WgiHXtyJhd8s6hz13M slhC8RR5ErkaDy3vUsRfa3J+g992u/E7PmTvHkJQeVNE2JmcIvxZL/5jBUn1zApkU/GE l8pyTZB2mp9sIru2fsVb4VP16FeIMNgRKGglfMQ1BnAgXUl3zxj7EcvS+pP6Ii4TFkZS qduYoT40MlCaCjf7F+QXO4pQpsxEBuvIP6jtTgrmOGqm4ER86RZwWP5a6Q9XCdQ679gS aWMjPIk0+Zb8ULhS8HB2bgV/0JyUsrkmxjAxwDpLrgXQ1zhiHcmt4Wt56r5MFIcuw5Zq SR1A== X-Gm-Message-State: AHQUAuZYVv8mTJMWPvGPfLnYCvxXUG60I+ohQKuwXRPj09MAMqVLcKZf C91tPvAKJPk6MkvWwURRd6F2HcdbEEQ= X-Received: by 2002:a17:902:8217:: with SMTP id x23mr5549463pln.332.1551164694064; Mon, 25 Feb 2019 23:04:54 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id c127sm24074059pfg.133.2019.02.25.23.04.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 23:04:53 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sdm845: Add GEN2 PCIe controller and PHY Date: Mon, 25 Feb 2019 23:05:25 -0800 Message-Id: <20190226070525.22453-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SDM845 sports two PCIe controller/phy pairs; one GEN2 and one GEN3. Add the nodes for the GEN2 pair. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 103 +++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5308f1671824..43848653babd 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1024,6 +1024,109 @@ }; }; + pcie0: pci@1c00000 { + compatible = "qcom,pcie-sdm845", "snps,dw-pcie"; + ret = <0 0x01c00000 0 0x2000>, + <0 0x60000000 0 0xf1d>, + <0 0x60000f20 0 0xa8>, + <0 0x60100000 0 0x100000>; + reg-names = "parf", "dbi", "elbi", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>, + <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0xd00000>; + + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_PCIE_0_PIPE_CLK>, + <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, + <&gcc GCC_PCIE_0_SLV_AXI_CLK>, + <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>; + clock-names = "pipe", + "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "tbu"; + + iommu-map = <0x0 &apps_smmu 0x1c10 0x1>, + <0x100 &apps_smmu 0x1c11 0x1>, + <0x200 &apps_smmu 0x1c12 0x1>, + <0x300 &apps_smmu 0x1c13 0x1>, + <0x400 &apps_smmu 0x1c14 0x1>, + <0x500 &apps_smmu 0x1c15 0x1>, + <0x600 &apps_smmu 0x1c16 0x1>, + <0x700 &apps_smmu 0x1c17 0x1>, + <0x800 &apps_smmu 0x1c18 0x1>, + <0x900 &apps_smmu 0x1c19 0x1>, + <0xa00 &apps_smmu 0x1c1a 0x1>, + <0xb00 &apps_smmu 0x1c1b 0x1>, + <0xc00 &apps_smmu 0x1c1c 0x1>, + <0xd00 &apps_smmu 0x1c1d 0x1>, + <0xe00 &apps_smmu 0x1c1e 0x1>, + <0xf00 &apps_smmu 0x1c1f 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc PCIE_0_GDSC>; + + phys = <&pcie0_lane>; + phy-names = "pciephy"; + + status = "disabled"; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sdm845-qmp-pcie-phy"; + reg = <0 0x01c06000 0 0x18c>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&gcc GCC_PCIE_0_CLKREF_CLK>, + <&gcc GCC_PCIE_PHY_REFGEN_CLK>; + clock-names = "aux", "cfg_ahb", "ref", "refgen"; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + assigned-clocks = <&gcc GCC_PCIE_PHY_REFGEN_CLK>; + assigned-clock-rates = <100000000>; + + status = "disabled"; + + pcie0_lane: lanes@1c06200 { + reg = <0 0x01c06200 0 0x128>, + <0 0x01c06400 0 0x1fc>, + <0 0x01c06800 0 0x218>, + <0 0x01c06600 0 0x70>; + clocks = <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "pipe0"; + + #phy-cells = <0>; + clock-output-names = "pcie_0_pipe_clk"; + }; + }; + ufs_mem_hc: ufshc@1d84000 { compatible = "qcom,sdm845-ufshc", "qcom,ufshc", "jedec,ufs-2.0";