Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp246309ybx; Wed, 6 Nov 2019 16:25:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxsqPUdamBCCnKd5CWjRtQdWpzJTxKt2ZBF1CB57e7Uef+OBYRzGXmQO9LoMK14myYfbSmJ X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr623049edv.62.1573086328525; Wed, 06 Nov 2019 16:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573086328; cv=none; d=google.com; s=arc-20160816; b=c60ib51vPq/q8flJ1ji31VhuYRYxFQSA1/7gCDzFxgZnvVhlRNR+o0fMdKW6Vdkpmw z0T4D6zJG1wp7R0ZIGHt9G4bAyLioIg8kDkx2XtMiFxUsKHC7JYU/DnLy94qXoigT2ib l8tcrmoUeXM9b7YnHVw7ol/QAEJTYqN/nhp9Qp4o1gt4uKC3ozRlUJ5MUKI0zjGbiD0F jKyQBT9vJ4xPThDOJxmIhNV92BGmVB4ZEgzjQHGS+WZktslKrejoXKhyBXAn+ji8nO46 tbVHrWIqfA3Aw9aa+y0KE8ysR52hgGF6LhJCWXnuc/jchhsDil0WJJU9iYeGJfvMYO1I 1kFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kMqJN5UHTLl3Z21ZhJB4FAKOptyfVu99KuKppBjss1E=; b=WPeCUfvoAczDPDq9G3kpYL9c9MdxkfD7psJVUV7/Pt3q+DxexxHGiCeuLA3DaZ7Sd9 WSRLYXdMwv0wsPL+5YnPK0XXDIdQzNxR4OZg9P60kaAPDpJTJjfCVLiugShjn3MGDTHd frv8nW1OsDdGD58/zGcsRgoy1cHr3hotzQNB5H+Q2t43wnpgDo2Ici/sy97vxZR+fDjb xcETV5eMAzXsptrF7Z3pxGVKv7nuGls0wwCia0TT2uTXMMaXtVCyrAIcs4Li5TC89F+/ Sl6jMFhhMuGDg6UW9PUWkIgRoDENyx9BDjeoem07/ILZmBluE6tEL8X9+at4uKX+Oalk H4IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=osHHklz9; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si332977ejc.17.2019.11.06.16.25.04; Wed, 06 Nov 2019 16:25:28 -0800 (PST) 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=@linaro.org header.s=google header.b=osHHklz9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732230AbfKGAXA (ORCPT + 99 others); Wed, 6 Nov 2019 19:23:00 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46684 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732382AbfKGAWz (ORCPT ); Wed, 6 Nov 2019 19:22:55 -0500 Received: by mail-pg1-f193.google.com with SMTP id r18so375274pgu.13 for ; Wed, 06 Nov 2019 16:22: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=kMqJN5UHTLl3Z21ZhJB4FAKOptyfVu99KuKppBjss1E=; b=osHHklz9cEKZNTMsegzUSVTedGqOvzz/bNh2WL0fy1JkDnHD5h1G54ehM1X+njoNiU 1igG9FylRa7UuvHdDGSOrU/7KRxw+1ZjFqkdvciczp09K6FoHmtjSRTzYkOulALbSGCZ m9HEa/TD3u2jjmCuRAMCRIpVjhH2co7Jdxv7c7DbY0mG2K+P8HESj9tIqA2YUCRwwkrp jPv6tluCXn5NcpioLsO3CvtGkkRNqiqsqigphfZ4/iX3/ADx2XIEB6WvsOkV4F+N6vJO HPly2FiBBVBj6edx80gxf9/DOK0Dm/ZwVbpOyOdntoqSWzIekyPt/etXlkByKvgYLCjv iOlA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kMqJN5UHTLl3Z21ZhJB4FAKOptyfVu99KuKppBjss1E=; b=c7FHRSLAMjlkd5a7sFxxb8Sfxsy9mA2j243eBf64FBVkYbhSdb8jT3nvUd+CU+rGv9 eZM8pL8GH1UiTpXXX4m2cZojo81Xf/88nMDe4PrtGaZ8n6jQ7NliorIwyu6hoRiv1B3x rnu6vy/17pOuA8cc/8CVpbPnr9ZE7UrrE8F9ZK+LpZjk+PX9m3KJlbxb0ytAKaGE0uZq gOebmQRvSN1dp9MxejVnpasNsvpo6KqJi9ExTYoFgUZSTJqDGMr5fSfZJyTgb8WURXXS Qqf+9jAIO+qYI9ArWYqKiPk0PNRJQQCisvon4tFDGWE7P5fRcTFPKwFiWbuZnlIY459W U2Cw== X-Gm-Message-State: APjAAAWLvpfS9Fcfq0hw7joz83IT6Eyv7IQz/Fww6n6Jr4EZAUnRdVf8 Nz8RVdmJZZyNE2Yp09seRC9ogjinn0M= X-Received: by 2002:a17:90a:a002:: with SMTP id q2mr946206pjp.124.1573086173771; Wed, 06 Nov 2019 16:22:53 -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 i13sm155272pfo.39.2019.11.06.16.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 16:22:53 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH v2 2/3] arm64: dts: qcom: sdm845: Add second PCIe PHY and controller Date: Wed, 6 Nov 2019 16:22:46 -0800 Message-Id: <20191107002247.1127689-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191107002247.1127689-1-bjorn.andersson@linaro.org> References: <20191107002247.1127689-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the second PCIe controller and the associated QHP PHY found on SDM845. Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v1: - Picked up Vinod's R-b - Dropped interconnect property, for now arch/arm64/boot/dts/qcom/sdm845.dtsi | 108 +++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b93537b7a59f..f091670f1bdc 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1468,6 +1468,114 @@ }; }; + pcie1: pci@1c08000 { + compatible = "qcom,pcie-sdm845", "snps,dw-pcie"; + reg = <0 0x01c08000 0 0x2000>, + <0 0x40000000 0 0xf1d>, + <0 0x40000f20 0 0xa8>, + <0 0x40100000 0 0x100000>; + reg-names = "parf", "dbi", "elbi", "config"; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, + <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; + + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 438 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 439 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_PCIE_1_PIPE_CLK>, + <&gcc GCC_PCIE_1_AUX_CLK>, + <&gcc GCC_PCIE_1_CFG_AHB_CLK>, + <&gcc GCC_PCIE_1_MSTR_AXI_CLK>, + <&gcc GCC_PCIE_1_SLV_AXI_CLK>, + <&gcc GCC_PCIE_1_SLV_Q2A_AXI_CLK>, + <&gcc GCC_PCIE_1_CLKREF_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>; + clock-names = "pipe", + "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ref", + "tbu"; + + assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; + assigned-clock-rates = <19200000>; + + iommus = <&apps_smmu 0x1c00 0xf>; + iommu-map = <0x0 &apps_smmu 0x1c00 0x1>, + <0x100 &apps_smmu 0x1c01 0x1>, + <0x200 &apps_smmu 0x1c02 0x1>, + <0x300 &apps_smmu 0x1c03 0x1>, + <0x400 &apps_smmu 0x1c04 0x1>, + <0x500 &apps_smmu 0x1c05 0x1>, + <0x600 &apps_smmu 0x1c06 0x1>, + <0x700 &apps_smmu 0x1c07 0x1>, + <0x800 &apps_smmu 0x1c08 0x1>, + <0x900 &apps_smmu 0x1c09 0x1>, + <0xa00 &apps_smmu 0x1c0a 0x1>, + <0xb00 &apps_smmu 0x1c0b 0x1>, + <0xc00 &apps_smmu 0x1c0c 0x1>, + <0xd00 &apps_smmu 0x1c0d 0x1>, + <0xe00 &apps_smmu 0x1c0e 0x1>, + <0xf00 &apps_smmu 0x1c0f 0x1>; + + resets = <&gcc GCC_PCIE_1_BCR>; + reset-names = "pci"; + + power-domains = <&gcc PCIE_1_GDSC>; + + phys = <&pcie1_lane>; + phy-names = "pciephy"; + + status = "disabled"; + }; + + pcie1_phy: phy@1c0a000 { + compatible = "qcom,sdm845-qhp-pcie-phy"; + reg = <0 0x01c0a000 0 0x800>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>, + <&gcc GCC_PCIE_1_CFG_AHB_CLK>, + <&gcc GCC_PCIE_1_CLKREF_CLK>, + <&gcc GCC_PCIE_PHY_REFGEN_CLK>; + clock-names = "aux", "cfg_ahb", "ref", "refgen"; + + resets = <&gcc GCC_PCIE_1_PHY_BCR>; + reset-names = "phy"; + + assigned-clocks = <&gcc GCC_PCIE_PHY_REFGEN_CLK>; + assigned-clock-rates = <100000000>; + + status = "disabled"; + + pcie1_lane: lanes@1c06200 { + reg = <0 0x01c0a800 0 0x800>, + <0 0x01c0a800 0 0x800>, + <0 0x01c0b800 0 0x400>; + clocks = <&gcc GCC_PCIE_1_PIPE_CLK>; + clock-names = "pipe0"; + + #phy-cells = <0>; + clock-output-names = "pcie_1_pipe_clk"; + }; + }; + ufs_mem_hc: ufshc@1d84000 { compatible = "qcom,sdm845-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; -- 2.23.0