Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp613713ybx; Wed, 6 Nov 2019 05:55:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxRktpTjv/3NQFAtNCeaNJOeCvF+387WGDhPkbJEMqRuagchSGmwjCGhYLTl6gfta2MwkpD X-Received: by 2002:a17:906:e297:: with SMTP id gg23mr1379245ejb.41.1573048518602; Wed, 06 Nov 2019 05:55:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573048518; cv=none; d=google.com; s=arc-20160816; b=Gm2MXsRMqd4TfCcmtkY9zlSHNAUILT9aIU6cw39Dri0xuNndRLkriFid6Pb3vsYltA mQJz+hwfiVk1AjFeQqP08DkwBpVIGB8HfLoEJIw76Hle8G7DwtdZrN0EhehPwedVpoOo DqX+bhnIa4D3XYRPw/QblS5YyNL35NhtLll9HgBzRSNXP0+cvC2oz9yrdY89hEag9z3e QCC5ci4gTHRJF84HvxCC8KFu/wSrU6nAWLN9yxylqG08Woc/kkmc+yp5nkdTNw2zh7os uDpt9YFT+jfA7IMtzJpJQ/yvF/rt4y3DSCBrBXXT1sa6p4Ee1lbjAL6w1JSuDbSb4gwN iSwg== 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 :content-language:in-reply-to:mime-version:date:message-id:openpgp :from:references:cc:to:subject:dkim-signature; bh=f/07mDa7U3BeT4TUXv97i2fvuP+QZqH0SLBfnWPxR0U=; b=VCwkxepUFq9XR8UnRIz4Udn6k5FyjhXOAFkw3GVd4gDD9eHnRsZjoIz7syAz3S1SlD QUO4q0rYKyyyGni5eHuHcwc0gA2A8Or1b1A8VKr+i+0LscX5wsUspt0PP6qYfwMEg4cC i8G6HtKfmpbvaE+yVnfjAKBgvnJZGsnlcuoOl/Upc9PHjL1DtASPJMGKTXZ83Ik0HGH3 1N7gHqOgghXomo/OMONBUt80ZyOLz624zCi/KOC3jlG3xd5mAaUijdEUSJ0RSwjASPX/ wHoUFy96GSA+htaXl22QNuEvXVXRR9sjNEqHhxANzYwMzfRO1dT9PrN5F3CXjcRezJ6Z dk9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e/qHUHQv"; 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 p92si13000369edd.407.2019.11.06.05.54.54; Wed, 06 Nov 2019 05:55:18 -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="e/qHUHQv"; 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 S1731807AbfKFNxX (ORCPT + 99 others); Wed, 6 Nov 2019 08:53:23 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42150 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731760AbfKFNxW (ORCPT ); Wed, 6 Nov 2019 08:53:22 -0500 Received: by mail-ed1-f66.google.com with SMTP id m13so13071564edv.9 for ; Wed, 06 Nov 2019 05:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=f/07mDa7U3BeT4TUXv97i2fvuP+QZqH0SLBfnWPxR0U=; b=e/qHUHQvOfyQWuy3eA3qaDE8QLdLHxOxgBx/u8WrUcPLw2FI90PTvJFxyxqsUNLPcK o48+3FUDK3eRMzzx+D7+KEiZPRV/jFqRLoHsVyi/5NguB6gBPvM/LIaXj+splYGGG5kR ZXvinxHU5+Lahgxs2ggeu1zUqtVOqRhUIdEqTbEOQxvYYMi+LarsvZ30hxcvMjRnEqog KGrrSYluKhd2IUsGFqQxHRH1MblzTFCIw11rsXgj02UVzpf41mqQUp/H+C9mQjupJ8g+ pL5c1zvuCtZbWAgfe336LUIpRyY6H99nA9ssqIa8KHZsVdAFTzosjeZaaqBWPdjWlDxj S6Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f/07mDa7U3BeT4TUXv97i2fvuP+QZqH0SLBfnWPxR0U=; b=YCeaANquC56KBX7xmb/pl9azAQRoKibRfgchXcJrmqCcdn99+I+6jGuG31tAXzkmbq H8KFzHLkKQFCBzvHp4HMJsn5Id0uVkikQkaVhaPTDMx0MZRHhqMQmIgm3BL/36Fz4td2 RyvaLVuYSvz2HX0Lt2DtLbj3kBkLspcE5EhPQUJkyBvfdlijbwzw/4KqBdTFyOnGU9/3 wayhGOu5GNZ/KiC5iO6yaYpxSTHl5MCAKApvHd20tYqvNWEMyHRbf+hcDbTB+TS2EIGL XbQnr4x9VaaV10iTav2g8d2nChV0kaRjStjljcpTjS2etyLkfkpWKhNdw3El2jxxJZkl rnVw== X-Gm-Message-State: APjAAAXrCV4qMKIuxBhGJNBlen4+68+ie66piqQIu7qTaayVpyuRiOxd ld9ChTSbTWP6KGvNBQCPZArbz/Fh/Fo= X-Received: by 2002:a50:fd03:: with SMTP id i3mr2831317eds.70.1573048400117; Wed, 06 Nov 2019 05:53:20 -0800 (PST) Received: from [192.168.27.135] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id c93sm1172968edf.92.2019.11.06.05.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 05:53:19 -0800 (PST) Subject: Re: [PATCH 2/3] arm64: dts: qcom: sdm845: Add second PCIe PHY and controller To: Bjorn Andersson Cc: Andy Gross , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191102003148.4091335-1-bjorn.andersson@linaro.org> <20191102003148.4091335-3-bjorn.andersson@linaro.org> From: Georgi Djakov Openpgp: preference=signencrypt Message-ID: Date: Wed, 6 Nov 2019 15:53:18 +0200 MIME-Version: 1.0 In-Reply-To: <20191102003148.4091335-3-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 2.11.19 г. 2:31 ч., Bjorn Andersson wrote: > 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"; Maybe leave this hunk out (although it looks good), until we conclude on these refactoring patches [1]. Thanks, Georgi [1] http://lore.kernel.org/r/1571278852-8023-1-git-send-email-daidavid1@codeaurora.org