Received: by 10.213.65.68 with SMTP id h4csp323789imn; Fri, 16 Mar 2018 04:23:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELtlpHurb8VPwSoID8GxOiVBbiwguRX0YABXEp2Uj9uh3S1m3g8KQqVCfAk6Z2uTEwXYSibF X-Received: by 2002:a17:902:8d92:: with SMTP id v18-v6mr1728468plo.21.1521199405055; Fri, 16 Mar 2018 04:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521199405; cv=none; d=google.com; s=arc-20160816; b=hLiymWFFqTBu1mCvK3oTOvJAj4kj0BjAxNfiEHHl2tjf3b2H0N5X87wywKP4knQMYO 2rZRI/Hisk0ANktUPny1VGMOP22mUfou+/HLMOqwjmwmNcFsN2l4uYWNt9CTdRfIRiTD oJQ/jjsrmgfO+g6iMmiPLVwrYKs4Fb+fZk9Asog4bsWnFBipJroO9QcQzS5D76SHKTwK cLpaObnp6lVcTZXiP6/57NqZk62AAseydszdPCCDQKzApXtaeZPX4c5cnGryJjg7sMrS yASCNc9iMStfsi+sbEijmzL9Ev8cAzgH5Hsc4UdvjhQP0YBiwMv7ptsjYVlNSL2jh0vE B7Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=T3xJhjR5aIbwhsaoVZKesQ0FxFPrRIZNFwEWbUBQetA=; b=o1ZXwjXp2sHoVnyDToBSzPtOWW0mQjnKKVFTEueK9M1ZRDJrN5beqM+akAOxkripzL am0C/OBOrzqjdxmqJud+IyVKfz+piSf4rKfPwRCgMMQaQgQ7sMgCvznA2/uNwrtat/Ui GxYjswk0QCtfexs16ui4RiHLay4FQD6DoX72tXBgyau7ILVQ0vioRjBkGApX0reUdTs3 y28ARXA2Js+wcS/9f4GcizF8TAIiZXWIxxAOe+Sre2jjskQ6qv01KCvNy7RncIsLJjha q6Ig3/yu3AGvCIrmZQ48Rwd0oWGiEhv0+l02TficcnLa1cn4+mj5Zgusj6fj01Nr3+43 mRFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=RvgWROaV; dkim=pass header.i=@codeaurora.org header.s=default header.b=DMcJ/TJx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15-v6si3593783pll.633.2018.03.16.04.23.09; Fri, 16 Mar 2018 04:23:25 -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=@codeaurora.org header.s=default header.b=RvgWROaV; dkim=pass header.i=@codeaurora.org header.s=default header.b=DMcJ/TJx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753790AbeCPLVB (ORCPT + 99 others); Fri, 16 Mar 2018 07:21:01 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57164 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753536AbeCPLU7 (ORCPT ); Fri, 16 Mar 2018 07:20:59 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 061B560C5F; Fri, 16 Mar 2018 11:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521199259; bh=DwRbE+dmjF1NIQY5hqVyFdK/2bfzjwKUJzCpGMQIoLw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RvgWROaV7YW6GVWATTMyYuQlrGZAEB0e2DMep5X1hx7nQdJWdb/c1jo5mLJkSt2jF 5c7NT0jxT74y/FrXbyVtiSfaQLzuuK6xMOJnUQ4JMDsfncOHZPcrKRQUeoKdcyhbeI vQTMDRe+/li285O+9/yyQO6ROXabwvVIlEyW76u8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 7731C60590; Fri, 16 Mar 2018 11:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521199257; bh=DwRbE+dmjF1NIQY5hqVyFdK/2bfzjwKUJzCpGMQIoLw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DMcJ/TJxqHwX1D0mBDgpUDMLhGDS6SqxvxMFlhQvGCkrIsqeu1J+DgBZ9ZFWWVMuX LgpPOBnAGCD8sQLv9CeOC1fuwsB95z+WHPOvURAx3asTZYjFKAn/p/pJe5MdQkzzv+ 7lQwRuEPRVOLGdnUbvzwKlejpDIWXYTK6DgZumMM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Mar 2018 16:50:57 +0530 From: Abhishek Sahu To: Sricharan R Cc: robh+dt@kernel.org, robh@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, sboyd@codeaurora.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Subject: Re: [PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes In-Reply-To: <1521193101-4586-13-git-send-email-sricharan@codeaurora.org> References: <1521193101-4586-1-git-send-email-sricharan@codeaurora.org> <1521193101-4586-13-git-send-email-sricharan@codeaurora.org> Message-ID: <69ff9b14b9b2fe4d90a02ca629059af2@codeaurora.org> X-Sender: absahu@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-16 15:08, Sricharan R wrote: > The driver/phy support for ipq8074 is available now. > So enabling the nodes in DT. > > Signed-off-by: Sricharan R > --- > arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 > +++++++++++++++++++++++++++++++++- > 1 file changed, 156 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi > b/arch/arm64/boot/dts/qcom/ipq8074.dtsi > index 806fc56..7562650 100644 > --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi > @@ -24,7 +24,7 @@ > ranges = <0 0 0 0xffffffff>; > compatible = "simple-bus"; > > - pinctrl@1000000 { > + tlmm: pinctrl@1000000 { > compatible = "qcom,ipq8074-pinctrl"; > reg = <0x1000000 0x300000>; > interrupts = ; > @@ -229,6 +229,161 @@ > dma-names = "tx", "rx", "cmd"; > status = "disabled"; > }; > + > + pcie_phy0: phy@86000 { > + compatible = "qcom,ipq8074-qmp-pcie-phy"; > + reg = <0x86000 0x1000>; > + #phy-cells = <0>; > + clocks = <&gcc GCC_PCIE0_PIPE_CLK>; > + clock-names = "pipe_clk"; > + clock-output-names = "pcie20_phy0_pipe_clk"; > + > + resets = <&gcc GCC_PCIE0_PHY_BCR>, > + <&gcc GCC_PCIE0PHY_PHY_BCR>; > + reset-names = "phy", > + "common"; > + status = "disabled"; > + }; > + > + pcie0: pci@20000000 { > + compatible = "qcom,pcie-ipq8074"; > + reg = <0x20000000 0xf1d > + 0x20000F20 0xa8 s/0x20000F20/0x20000f20 > + 0x80000 0x2000 > + 0x20100000 0x1000>; > + reg-names = "dbi", "elbi", "parf", "config"; > + device_type = "pci"; > + linux,pci-domain = <0>; > + bus-range = <0x00 0xff>; > + num-lanes = <1>; > + #address-cells = <3>; > + #size-cells = <2>; > + > + phys = <&pcie_phy0>; > + phy-names = "pciephy"; > + > + ranges = <0x81000000 0 0x20200000 0x20200000 > + 0 0x00100000 /* downstream I/O */ we can remove trailing zeros from address. s/0x00100000/0x100000 > + 0x82000000 0 0x20300000 0x20300000 > + 0 0x00d00000>; /* non-prefetchable memory */ s/0x00d00000/0xd00000 Same changes are for PCIE1 also. With that. Reviewed-by: Abhishek Sahu > + > + interrupts = ; > + interrupt-names = "msi"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &intc 0 75 > + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ > + <0 0 0 2 &intc 0 78 > + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ > + <0 0 0 3 &intc 0 79 > + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ > + <0 0 0 4 &intc 0 83 > + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ > + > + clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>, > + <&gcc GCC_PCIE0_AXI_M_CLK>, > + <&gcc GCC_PCIE0_AXI_S_CLK>, > + <&gcc GCC_PCIE0_AHB_CLK>, > + <&gcc GCC_PCIE0_AUX_CLK>; > + > + clock-names = "iface", > + "axi_m", > + "axi_s", > + "ahb", > + "aux"; > + resets = <&gcc GCC_PCIE0_PIPE_ARES>, > + <&gcc GCC_PCIE0_SLEEP_ARES>, > + <&gcc GCC_PCIE0_CORE_STICKY_ARES>, > + <&gcc GCC_PCIE0_AXI_MASTER_ARES>, > + <&gcc GCC_PCIE0_AXI_SLAVE_ARES>, > + <&gcc GCC_PCIE0_AHB_ARES>, > + <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>; > + reset-names = "pipe", > + "sleep", > + "sticky", > + "axi_m", > + "axi_s", > + "ahb", > + "axi_m_sticky"; > + status = "disabled"; > + }; > + > + pcie_phy1: phy@8e000 { > + compatible = "qcom,ipq8074-qmp-pcie-phy"; > + reg = <0x8e000 0x1000>; > + #phy-cells = <0>; > + clocks = <&gcc GCC_PCIE1_PIPE_CLK>; > + clock-names = "pipe_clk"; > + clock-output-names = "pcie20_phy1_pipe_clk"; > + > + resets = <&gcc GCC_PCIE1_PHY_BCR>, > + <&gcc GCC_PCIE1PHY_PHY_BCR>; > + reset-names = "phy", > + "common"; > + status = "disabled"; > + }; > + > + pcie1: pci@10000000 { > + compatible = "qcom,pcie-ipq8074"; > + reg = <0x10000000 0xf1d > + 0x10000F20 0xa8 > + 0x88000 0x2000 > + 0x10100000 0x1000>; > + reg-names = "dbi", "elbi", "parf", "config"; > + device_type = "pci"; > + linux,pci-domain = <1>; > + bus-range = <0x00 0xff>; > + num-lanes = <1>; > + #address-cells = <3>; > + #size-cells = <2>; > + > + phys = <&pcie_phy1>; > + phy-names = "pciephy"; > + > + ranges = <0x81000000 0 0x10200000 0x10200000 > + 0 0x00100000 /* downstream I/O */ > + 0x82000000 0 0x10300000 0x10300000 > + 0 0x00d00000>; /* non-prefetchable memory */ > + > + interrupts = ; > + interrupt-names = "msi"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &intc 0 142 > + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ > + <0 0 0 2 &intc 0 143 > + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ > + <0 0 0 3 &intc 0 144 > + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ > + <0 0 0 4 &intc 0 145 > + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ > + > + clocks = <&gcc GCC_SYS_NOC_PCIE1_AXI_CLK>, > + <&gcc GCC_PCIE1_AXI_M_CLK>, > + <&gcc GCC_PCIE1_AXI_S_CLK>, > + <&gcc GCC_PCIE1_AHB_CLK>, > + <&gcc GCC_PCIE1_AUX_CLK>; > + clock-names = "iface", > + "axi_m", > + "axi_s", > + "ahb", > + "aux"; > + resets = <&gcc GCC_PCIE1_PIPE_ARES>, > + <&gcc GCC_PCIE1_SLEEP_ARES>, > + <&gcc GCC_PCIE1_CORE_STICKY_ARES>, > + <&gcc GCC_PCIE1_AXI_MASTER_ARES>, > + <&gcc GCC_PCIE1_AXI_SLAVE_ARES>, > + <&gcc GCC_PCIE1_AHB_ARES>, > + <&gcc GCC_PCIE1_AXI_MASTER_STICKY_ARES>; > + reset-names = "pipe", > + "sleep", > + "sticky", > + "axi_m", > + "axi_s", > + "ahb", > + "axi_m_sticky"; > + status = "disabled"; > + }; > }; > > cpus {