Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1135631ybx; Fri, 1 Nov 2019 17:33:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+gu9r8XHSYLl9aiQRtv07ZJH6Uas1PFqWEEckvQgIiWlvTc5c/A7y7Y6mTHu9/oEEtlIc X-Received: by 2002:a50:8859:: with SMTP id c25mr15749630edc.253.1572654809214; Fri, 01 Nov 2019 17:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572654809; cv=none; d=google.com; s=arc-20160816; b=e77Bv3JTGBt7/ux/rko6obwDGXL44MhUnqy4OilfuXPydKc4HDVkSIlA37vrT5lTdB 26ST5OM2nDUaZESXxbW09GtOrnC3zPsq18L0tD7Fnj2zFP9l+ZeSnxaC6AcCzUQNlEyQ qv1v/VPN+caWHPu0zS+8iu0Oob3Inhdb9cWq1k6gXoYJHVJAvuFIc8pmgCUhFFPTx7+D qJQ8fVRh+j+FVFtnAYKkIlBSzAyG4Qs4S72/DNveRkK6sTSuyMt/yoA+xknLsL5rbVNT 2i3lArQOI8iqH2TWet2WN7l29OZeuhbxM7TgCesvO5tEr5Ljon0fIxsri3t3injpIWQh JDvA== 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=IbjMZBbD4GQshbgOA/j1WtjWR4BumKUbToyFkiiySU8=; b=OW9ykpPciuE/KE4AcKwsIK0Vp6BtDoSOHYTj9KV9C8qF+ogyZpKLJ6DiTxVIPAN1EA nbAcML8Vt+yJWVgbI3xt3vYiNJe39267sm4rGA4Ha1fGSwHyCVxUj7f/mHM8980NcG/v h0es3BpYu1DCwxPavT6p+MQCDBrMdvmA7UQ8nWygZCaMtfpJbdxQnSsLguornz6cCRjZ 2jOKIv4jyq/hnwZDJfaj7Mv5o4u3N+j9od6dTejcH7020p38SvufM6y1JdT/WAnw8DBK ZWoHWbpwLZlqZyag2e3Tp/cQhRkUIK5GpKbhGKEr5eMevEAr0S2AoIjglMcnnpYdKpp1 9e+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T9XC+IfB; 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 d21si1794616edb.180.2019.11.01.17.33.05; Fri, 01 Nov 2019 17:33:29 -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=@linaro.org header.s=google header.b=T9XC+IfB; 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 S1728413AbfKBAcD (ORCPT + 99 others); Fri, 1 Nov 2019 20:32:03 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39937 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbfKBAbz (ORCPT ); Fri, 1 Nov 2019 20:31:55 -0400 Received: by mail-pf1-f194.google.com with SMTP id r4so8107159pfl.7 for ; Fri, 01 Nov 2019 17:31:55 -0700 (PDT) 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=IbjMZBbD4GQshbgOA/j1WtjWR4BumKUbToyFkiiySU8=; b=T9XC+IfBATzm9wKty4EW2Ln/UMyD7d0DtU8Ly8A5RxfbMkmel1ZJioQ9wHTztfZgdw a6/7Qf5DoFN69JcAbWjfvcCrWemYMEdLVYbR0nCqqkbaqHi6JiUsd00RhCt/m5uNon0O rqVryeXOvTKXIhKLFhWUXSFvGjCH8JHddrMdFF80DQnFK2O2x5Ks5QXns+79WNFuJ56Z EjoSZMLwDlyziivyW/AL/cquMBhKGLcnMv+PYC5swPc7v8pTZ7AH2zhhLdqzCHcE3RXC KXhyMTCG8mpkBP9/lvi4T/0HlZVqIaS3rdfIiCJ27s3bjAxXO6eq0pkPYYOizxF9d6d9 Rh+g== 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=IbjMZBbD4GQshbgOA/j1WtjWR4BumKUbToyFkiiySU8=; b=PgMDVPwIsobQzz9o2F+8a72KqNNc/ofa3OR6Zhckq+ZVfojQJibX6lkhQge7Awvas+ JPd1mgnZ0g5MHHJb5zkIJFu+HUIPRq7pi4hgASjW5VeA33hd7h1jhEAx6/JTEgXlat9A zocj9ahItpl9+hTUqqrs/MG7SyveK8lt6tgpOtYLDHnNkMQOIB4zAazS5DgArs8BSoDu 3YR8pVuDuGoGbUsZt0xBfdKNzaJAPPFWYCYufrQCkEuMQGW9uQprmSSKG4nJsbeDjIao mS2KUyuvYSdD3HAeb5HWTvxzgzX+jcEoIGnpA4MPD52ttkcnrOyLbXBt7Dar+jn+m2vD TlKQ== X-Gm-Message-State: APjAAAVqGe3x+M0KmemT/qTxbGK2G9wNp4DNHyFJnvoUYUdEStdJi3QJ DdVNnhhppKdDxJbpB7cW5xtFW18NoEo= X-Received: by 2002:a17:90a:8a98:: with SMTP id x24mr19024493pjn.97.1572654714400; Fri, 01 Nov 2019 17:31:54 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v2sm7957522pfm.13.2019.11.01.17.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 17:31:53 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sdm845: Add second PCIe PHY and controller Date: Fri, 1 Nov 2019 17:31:47 -0700 Message-Id: <20191102003148.4091335-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191102003148.4091335-1-bjorn.andersson@linaro.org> References: <20191102003148.4091335-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. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 111 +++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b93537b7a59f..0cdcc8d6d223 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1468,6 +1468,117 @@ }; }; + 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>; + + interconnects = <&rsc_hlos MASTER_PCIE_0 &rsc_hlos SLAVE_EBI1>; + interconnect-names = "pcie-mem"; + + 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