From patchwork Fri Jan 13 16:44:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101137 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39C85C54EBD for ; Fri, 13 Jan 2023 16:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbjAMQr1 (ORCPT ); Fri, 13 Jan 2023 11:47:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbjAMQrF (ORCPT ); Fri, 13 Jan 2023 11:47:05 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C790589BC3; Fri, 13 Jan 2023 08:44:53 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id vm8so53606485ejc.2; Fri, 13 Jan 2023 08:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hSYE2T82iOkVo5VndGHZGfvNrTv8HNJ4m9Ysiu68KwI=; b=Wud4UUW4I0LXXwykMW38HKJzeiS+ewkGf9GCGBhdspHzc/IDzmQhpNmnyBCs6aOYdb AOFYSdUSeTUxz+Lk/LMrl0vrloshPMfcXeLAvRWMFsQK4JQfsAOdwLCRljl2pVvlMpCi x3CtDMaKPlfQ0T2TZnDo1ymZMQVPoH30CwwGJTIPC68iU7Ab8TqoorI4yO5xAUQYX4qQ GQJBjp46izovE6xhsm0Z/KmMHtcDBVazocFosVTkV6i9gmD8IUrRWH65/oWuhmEVbBJy CMb5l+YCMMYObueKXEVUksnHUrYQvRnl9FpQG7m38BUjuQktrWnBYFXBgGUDiL6BD+m/ Hnuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hSYE2T82iOkVo5VndGHZGfvNrTv8HNJ4m9Ysiu68KwI=; b=joRwul10fFjiQFOdFDPiYYbXgEmpArDQoMXzNJxXwyeSUxWMveUuOWIGSIcFgBWWHZ 8NAFe0M8fNAy3y/j73bdUbdZqHA/BXix1VApN4ZikJdmz199uMgeNedotvVYb8asexve d1uff0lwUSrl8LReVlkcK1Ivp+31K3Af8Rnc2xnvNcnexHMCqDfT8aOzJNv0109a0pHf rImKjnI+8vfzSkTP1GRe3mCR+XqaZvNOKYGHj2t3mR39u8avqdRBzDPQeccsr6luCsVO U+Smjn7lWbjakNuNI8TfvjsIb71F2RhVDdlZB+V9h6/cDmSrw8CpPvgYoqoH+S61zgoK 3y5w== X-Gm-Message-State: AFqh2kpK5yqd/u9ZUKr6m4Nt35RqYMXhbdZ9tg5lzHh4ivjODovjDRzR HTEFoBQxpayP3f60VoqFgQA= X-Google-Smtp-Source: AMrXdXvqoIZ2B8o5sGtzPTzKfxJ9Wfp6noZuF5fhPatuU42KuRg2fn6CbwBL6m8d/HLO/R+KZW0EYA== X-Received: by 2002:a17:906:3095:b0:809:c1f4:ea09 with SMTP id 21-20020a170906309500b00809c1f4ea09mr63716609ejv.69.1673628292202; Fri, 13 Jan 2023 08:44:52 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:51 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 1/9] arm64: dts: qcom: ipq8074: fix Gen2 PCIe QMP PHY Date: Fri, 13 Jan 2023 17:44:41 +0100 Message-Id: <20230113164449.906002-1-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Serdes register space sizes are incorrect, update them to match the actual sizes from downstream QCA 5.4 kernel. Fixes: 942bcd33ed45 ("arm64: dts: qcom: Fix IPQ8074 PCIe PHY nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 06e2f0157396..31ec24100213 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -277,9 +277,9 @@ pcie_qmp1: phy@8e000 { status = "disabled"; pcie_phy1: phy@8e200 { - reg = <0x8e200 0x16c>, + reg = <0x8e200 0x130>, <0x8e400 0x200>, - <0x8e800 0x4f4>; + <0x8e800 0x1f8>; #phy-cells = <0>; #clock-cells = <0>; clocks = <&gcc GCC_PCIE1_PIPE_CLK>; From patchwork Fri Jan 13 16:44:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101138 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1974CC678D7 for ; Fri, 13 Jan 2023 16:47:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbjAMQr1 (ORCPT ); Fri, 13 Jan 2023 11:47:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbjAMQrF (ORCPT ); Fri, 13 Jan 2023 11:47:05 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07EF665E1; Fri, 13 Jan 2023 08:44:55 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id ud5so53646599ejc.4; Fri, 13 Jan 2023 08:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JZtHSB0eCc8lOVuNfyokAmhYTSqa4Jdvmr66zlOUrvk=; b=ZrTOQtwAkJSneXkJZLjZKlc/0Nkl52jz7jsKdEpo5HfWRitKDqZKZWDXOMjmyQ5dLp 9sVVZSdDXRSw7BCWZvdEnoph1YAPOD4UUW3fIN2AM9EAlhDBqd6icKLcGuCarC3cL7qS 5p1xd7nSKKX1NvdgSksOP4mWvYx6K7RtHIk3Px4IBb7QybQbQ4KVyQLxndy7mKkhn5qC fCmuARsE3kttt/xK9Vh0ezsTZjiA6/Q1cN3orCieUyITDFMRxiGOu/M5dQNYZVUWrfXf 3VMTpWzukj3EVBeDAMYZRmgPKuU8I4PryehGP1OE2DivKkdTmhCVlLZmaNCL/oNU/DOj kerA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JZtHSB0eCc8lOVuNfyokAmhYTSqa4Jdvmr66zlOUrvk=; b=wHN4uvtylIA66nbOVhdRTI+vthE7StcVWt2G6qDHwDCkli+KowC5rQt7yOKM6JbUGu TT7JOfG264VVNEnvvMyZvxer8U9RFH9vyTLxBMbovAY4a79NZfeWRnJ7D/4rZyf1h9BQ dln4yREZuetvb2w76RKJJTM07L8yv0E99diFRUyM6zFuXk0ejlH26e1lEZa8v0y090aa nxCXvg0yjr1cCwO7jb9mdGDIsYxDn5OG31FJyPqonMrXnLFnMReicCFnPHE+MTBkf5Kz H9rhsbcZ5WxIM3W92HTU9lbRLnBPwFoK9rf6bPieRvcTwyGQ10I1Xsr5HqAWUolYf2mu t+gQ== X-Gm-Message-State: AFqh2krKG10tmSOa2E7fkhyFbvT0wnwQ4fg+YHfNFsdx4AcW8ywRqW40 U908Lsv6tPti4Z7KHthIaOI= X-Google-Smtp-Source: AMrXdXv9i5QiJy931McagquuWcZOzuNb//Nlso6EjfyMxHqIRj4RFhCBKMt9Z8Da2FFXnBLkJzBikQ== X-Received: by 2002:a17:906:99c7:b0:7ae:b637:633f with SMTP id s7-20020a17090699c700b007aeb637633fmr92461686ejn.4.1673628293556; Fri, 13 Jan 2023 08:44:53 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:53 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 2/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe QMP PHY Date: Fri, 13 Jan 2023 17:44:42 +0100 Message-Id: <20230113164449.906002-2-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org IPQ8074 comes in 2 silicon versions: * v1 with 2x Gen2 PCIe ports and QMP PHY-s * v2 with 1x Gen3 and 1x Gen2 PCIe ports and QMP PHY-s v2 is the final and production version that is actually supported by the kernel, however it looks like PCIe related nodes were added for the v1 SoC. Now that we have Gen3 QMP PHY support, we can start fixing the PCIe support by fixing the Gen3 QMP PHY node first. Change the compatible to the Gen3 QMP PHY, correct the register space start and size, add the missing misc PCS register space. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 31ec24100213..c93e3f39f33d 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -232,9 +232,9 @@ qusb_phy_0: phy@79000 { status = "disabled"; }; - pcie_qmp0: phy@86000 { - compatible = "qcom,ipq8074-qmp-pcie-phy"; - reg = <0x00086000 0x1c4>; + pcie_qmp0: phy@84000 { + compatible = "qcom,ipq8074-qmp-gen3-pcie-phy"; + reg = <0x00084000 0x1bc>; #address-cells = <1>; #size-cells = <1>; ranges; @@ -248,10 +248,11 @@ pcie_qmp0: phy@86000 { "common"; status = "disabled"; - pcie_phy0: phy@86200 { - reg = <0x86200 0x16c>, - <0x86400 0x200>, - <0x86800 0x4f4>; + pcie_phy0: phy@84200 { + reg = <0x84200 0x16c>, + <0x84400 0x200>, + <0x84800 0x1f0>, + <0x84c00 0xf4>; #phy-cells = <0>; #clock-cells = <0>; clocks = <&gcc GCC_PCIE0_PIPE_CLK>; From patchwork Fri Jan 13 16:44:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101139 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94EE5C61DB3 for ; Fri, 13 Jan 2023 16:47:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbjAMQr3 (ORCPT ); Fri, 13 Jan 2023 11:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjAMQrH (ORCPT ); Fri, 13 Jan 2023 11:47:07 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60987BDC5; Fri, 13 Jan 2023 08:44:56 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id ss4so46355397ejb.11; Fri, 13 Jan 2023 08:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EQcb/oB3xwlOm2s48lLOAq9nyVmzgn+8crtA0/+mZ6I=; b=EMGWF/60kpr/l/+9wKwakDK9XdOz38PcYFeA7MDzQldjdl4x03vknBOGOPhoFBMI+0 /HIBACCJ/OuWYQnHFrvKnN758S7TWNsHCC3eI4BWDVGM0zQH9Ct4nYPP/LHeuwbz3okI WS2yn5yiskrYPSVKUA7x9zsPskcxd0br5xZWRUcjlRQV/ck2kOsNNfuXj6H15n8WgWsl opshIvdMpsqLo9yVKpErnzIk/flj4HA9FP6+8PQN9rmoRcHUzuSZqxi1XxFRa9AxEZXp sFV3Aw4lslSF4UuHYd5ruzo4m9aTgmHXq6LWqgZv15rmhtQ0hIFRWJ4mDOdtIkb0tAaC GTCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EQcb/oB3xwlOm2s48lLOAq9nyVmzgn+8crtA0/+mZ6I=; b=78cIM6vzJ9zfcqZCQ4X5kAC4Uyt494l6GeCE1IizFs9fteKt62rZAgkPWGgotGufkh alVgm7r/tY3uon/OqAd7ViHx8Tc7QtYTFUDNLLz+J5xspfhGTi9DhaMPK0Du1DNQn+v8 ktXV074ScLNiNHRCUR6NerGsziwtxOsQANmhI/z0qfi1c0H8SPtBQkxg3cQLi9H+oedB Cr4d+NbgZmq5Kt75XjD7x1A98WCANhpWcRkBbVzyPecDyyfRqM4YG4Er8Kc9ANoZ5LTL nsKh8k3UzmSFYB4qeGJhTMwpZsqRYXY/5nT/YHREIp40DmNfRK4FwUnQjLT+esf+dyn8 +Pyw== X-Gm-Message-State: AFqh2kqUJLXepsZLCsA6ptsJHvOJQ7EoesP7pSh6hOGiXezwwna71JrQ o6aULrEL27WLErWGaxRjNoo= X-Google-Smtp-Source: AMrXdXtq9iCGPs4Wpz7bJkFbhICFBu+rxsGSDjAFwBCgsNBgrK6z/7GUEyYpBoNZDufRG1jNqKEtYQ== X-Received: by 2002:a17:906:6693:b0:7c1:8ba7:3182 with SMTP id z19-20020a170906669300b007c18ba73182mr77501370ejo.69.1673628294893; Fri, 13 Jan 2023 08:44:54 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:54 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 3/9] arm64: dts: qcom: ipq8074: correct Gen2 PCIe ranges Date: Fri, 13 Jan 2023 17:44:43 +0100 Message-Id: <20230113164449.906002-3-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Current ranges property set in Gen2 PCIe node is incorrect, replace it with the downstream 5.4 QCA kernel value. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index c93e3f39f33d..06e1da176334 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -808,9 +808,9 @@ pcie1: pci@10000000 { phy-names = "pciephy"; ranges = <0x81000000 0 0x10200000 0x10200000 - 0 0x100000 /* downstream I/O */ - 0x82000000 0 0x10300000 0x10300000 - 0 0xd00000>; /* non-prefetchable memory */ + 0 0x10000>, /* downstream I/O */ + <0x82000000 0 0x10220000 0x10220000 + 0 0xfde0000>; /* non-prefetchable memory */ interrupts = ; interrupt-names = "msi"; From patchwork Fri Jan 13 16:44:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101140 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C8D3C54EBE for ; Fri, 13 Jan 2023 16:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjAMQrc (ORCPT ); Fri, 13 Jan 2023 11:47:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbjAMQrI (ORCPT ); Fri, 13 Jan 2023 11:47:08 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C374D4AB; Fri, 13 Jan 2023 08:44:57 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id ud5so53646862ejc.4; Fri, 13 Jan 2023 08:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Myq7mHdqsUE+VFev1hT0NgPEUBx3bz87gHy9ti3y5O0=; b=CSvoS7chzkXNLmc/XORHl9BROENcpS3fJZq2ie/HnCE1o88cqobm9BFVk1wSqQStRI RKXHfAySsNC9u2SCfUg1B6Oy9d3034AQ8e1nD5A8h6/kF7DVgibMchQgh5+w3WDkPzhu Nb9POAtxPwPqzqIXaaRw9SBUaQlCz5n/LZclFK3YfZocECFYkFnJxZ9sb+OP1YTOUFnC T/c14TJeU8YVznPhy2+Fps9Iq/CvPD2MuLwC+rp6MgtNAAL4znLx8qb58Ht3y7lMoWGG Ej+TwprS85rbDpSYAV4Q5KjYtlQVJjjjEKPzMUT9g7/4b70wtpFLE0sLPxY3xT/MbCk8 9wDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Myq7mHdqsUE+VFev1hT0NgPEUBx3bz87gHy9ti3y5O0=; b=w2U8QVIjtDHAoPR0qjTjr14BZuyBTkRnnZ2gcfr6o7uhTIRcMZ0Hjsv3fHnJlln1vB kL5OkwYC2f71RdhAB2WWNKC0aCBeeOElHUeakIUhDBn3xRFDwsGj0eyDJxqPjMzj9Ym0 ry2Z/O1erADjjUJpRke61C+JWe1W+9jGW2pQgU2YoQn33q+SZ7OfYwaLTjW5Tty+lYYt LFS7BCQ4arjpaVTb7vXRgmJn/jk8JYBmhFMcnCmaK+DLeXtVl9HCMlXTN4n0l8w2glnt TZw2DoEkF7c0gCvcRHS4nU3rsAH7Z/0KAIKATui7RL0e0mqXDinHz+8PIIx0WFY5v3T8 vGLg== X-Gm-Message-State: AFqh2kql6KciP18kkiOTepWR3xGmjB0YnkvjpKYjikOVo4b2kUXhI+lX 1oukEtWGM7hze8WmE/hQF8E= X-Google-Smtp-Source: AMrXdXsX/QFL1vjuOlzwdBt9QbrHSmDOuc2kBWTMwdrq6QZ5HvDsgWHK8Utz7kGARCRQ/37C1lUXoQ== X-Received: by 2002:a17:906:370a:b0:7c0:a350:9d29 with SMTP id d10-20020a170906370a00b007c0a3509d29mr66478731ejc.18.1673628296317; Fri, 13 Jan 2023 08:44:56 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:55 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 4/9] arm64: dts: qcom: ipq8074: set Gen2 PCIe pcie max-link-speed Date: Fri, 13 Jan 2023 17:44:44 +0100 Message-Id: <20230113164449.906002-4-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Add the generic 'max-link-speed' property to describe the Gen2 PCIe link generation limit. This allows the generic DWC code to configure the link speed correctly. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 06e1da176334..5ef4383ab18b 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -801,6 +801,7 @@ pcie1: pci@10000000 { linux,pci-domain = <1>; bus-range = <0x00 0xff>; num-lanes = <1>; + max-link-speed = <2>; #address-cells = <3>; #size-cells = <2>; From patchwork Fri Jan 13 16:44:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101141 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C90CC54EBD for ; Fri, 13 Jan 2023 16:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbjAMQru (ORCPT ); Fri, 13 Jan 2023 11:47:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230012AbjAMQrK (ORCPT ); Fri, 13 Jan 2023 11:47:10 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360BB78A6B; Fri, 13 Jan 2023 08:44:59 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id v6so10606510ejg.6; Fri, 13 Jan 2023 08:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=97SxF/mOuJXLVnQXR3aT6mXxy12CiY85FHycSGN5Oi8=; b=LrRbpIk9cBXGhme0Gl5YjV5U6TFOgD6XR7SMEkM7OaNrAmMDbke6kBdVhPbOfyMLjP dke4nrIR8GQ76qoFJar7pgFZUHlaNpAc4Y5q3kLnBl8z0RYc1Md8jka34WRjgWlRLAdI f2XdxL6A7AfNystl0GVu/lLo1ykmAggOpCcoh1mUyctV5gPD/CjdOUjFo8v7u4y6nP/Z si/KRYXpcSkoQ6KAUsCz7GEqb6HbhxToRsFtJAkpHg2IGMP0ZZXNblw5GmaMPC/K8hfb QFT4Ye1odE32Bi3u5hb+CZW2HFSvsBxx67PJgVkszzb0iQ8b3ueogd2nx8W6+/x57nXv zy3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=97SxF/mOuJXLVnQXR3aT6mXxy12CiY85FHycSGN5Oi8=; b=ufgaPbY2JSiZig+yzF+S0O5JfcDxVMqWjichNkp60A/XVt9ub+WmyWgckPQEidxDDp 1YY/qd112fwJh/QCIkEp2pR5KKZ2pZHvUnixnObKciwKoWA9XyxqY9ZM3bE5iSSWGyfC LI97bGh69HeEpvgdO7nOGwWen3KevIkviTQ8q4PpCIY/sK6CJWsQiN+XL7jKoF2cFdfC JVtMe+y2ZEmbhHl5S7iOSa/emvAL+2IIsuROwPw/GBTMD4d5MALvUmCHR322mg8IGysR mUGY2pM7HW4Wnub++DHl8IwakRuI9rWAA1UcgKRZa9++uwO7VKBtQcthwbXcdcDkSevz k3gg== X-Gm-Message-State: AFqh2kpHN3UgT5TU3FGQ94u6xzZqshUy8Ol3RmdtOFfgrXnHECe0mFJ1 j3WmH9LM8CMVW0B5ULf3c86KQ/oUhoBaxg== X-Google-Smtp-Source: AMrXdXtpXosjr6RtpX3eDD8bM9d/ghpUdScwg1OtRW67fQgh0ukScTJ0LvN5dFlX3Mlh3Mwk7VKIcw== X-Received: by 2002:a17:906:2886:b0:7c0:fd1a:79f0 with SMTP id o6-20020a170906288600b007c0fd1a79f0mr3178305ejd.21.1673628297691; Fri, 13 Jan 2023 08:44:57 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:57 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 5/9] dt-bindings: PCI: qcom: alphabetically sort compatibles Date: Fri, 13 Jan 2023 17:44:45 +0100 Message-Id: <20230113164449.906002-5-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Sort the compatibles list alphabetically for maintenance. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 8da8ece1d4d7..19580350db11 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -17,13 +17,14 @@ description: | properties: compatible: enum: - - qcom,pcie-ipq8064 - - qcom,pcie-ipq8064-v2 - qcom,pcie-apq8064 - qcom,pcie-apq8084 - - qcom,pcie-msm8996 - qcom,pcie-ipq4019 + - qcom,pcie-ipq6018 + - qcom,pcie-ipq8064 + - qcom,pcie-ipq8064-v2 - qcom,pcie-ipq8074 + - qcom,pcie-msm8996 - qcom,pcie-qcs404 - qcom,pcie-sa8540p - qcom,pcie-sc7280 @@ -35,7 +36,6 @@ properties: - qcom,pcie-sm8350 - qcom,pcie-sm8450-pcie0 - qcom,pcie-sm8450-pcie1 - - qcom,pcie-ipq6018 reg: minItems: 4 From patchwork Fri Jan 13 16:44:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101142 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEB77C678D4 for ; Fri, 13 Jan 2023 16:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbjAMQrz (ORCPT ); Fri, 13 Jan 2023 11:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjAMQrN (ORCPT ); Fri, 13 Jan 2023 11:47:13 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F4364D72F; Fri, 13 Jan 2023 08:45:00 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id hw16so41767972ejc.10; Fri, 13 Jan 2023 08:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8RXpc+qR14+HHZGpeltUoGyeqhas9NSG4qLAjy0buBE=; b=LFU15355PqIgpndYz2zO+dJjiMLCOYI/Bh87jnvHGBTYG1F0WRKj2up5rZ4FCUu9uS leojmQIOzUl58kE49ZTgFGmokLWB68a31Mhh/0kl7/qgXnBDxGkWgfosXo6IHnihiXU/ FvM2o4ttMQ94ZoWC5zdlrx11M1shpTXDmUgxkeqYLY4kbCYtPRYy+FD+FeL+lt/qy6wt xGqNkxosTkUvSDong4q4pddRpbx9JCqs1ztyRXlsnk1SAHT1Ie/GmMNBmo+/9az77c/7 k2/dEZg2Pvc5zRuBDLYEtKn/CnavYLoL+I4xnyL0V++bRZEuQXTH4K2tiRryytnMcGcT rhNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8RXpc+qR14+HHZGpeltUoGyeqhas9NSG4qLAjy0buBE=; b=JnriOPnmDFYjUa42Fe30rODpiXfrpNze1tN7UvjGi0eFsltYv+eiAxwfqFLp7rzsx9 20gMFyJkVrRg94Eu6cBnHlTShq6Kzml2DPhW1cICFfV1s412140uLJnxh06vdemuSg77 SvfOmmDrZCOLHXXxO6XxG+gPot0l0Efot7C6sjHly6gpFOBp37FZqRgSS8GFbL5c8dbF 2ZrEJ169xO4krv/SFGYKYa5LfcXf06di63smJiXnXKkfaaWlN1RXrN76Fp7CHhW+wbbs Il9oxDO3sNrfSfxGsHhR9k23IdJ8CQdbq22jgjWmS58xTAbeSpGmoXLKrhKs5aQik9ai VlmQ== X-Gm-Message-State: AFqh2kqGIPd6cUrk5liLygTRlKbeiREOogBxKSwpxmKiMeV4JFojj8U7 uQG+6RQwCfZGsCM+ntIYoKU= X-Google-Smtp-Source: AMrXdXutMuO6pW1i7X03FZZXzNxKvY5bHBnsJx9AxrMrz3iwT946EqLjMMnIXQJjLv+Qj+z667yMdg== X-Received: by 2002:a17:906:b053:b0:7ad:ca80:5669 with SMTP id bj19-20020a170906b05300b007adca805669mr83559889ejb.64.1673628299120; Fri, 13 Jan 2023 08:44:59 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:44:58 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 6/9] dt-bindings: PCI: qcom: document IPQ8074 Gen3 port Date: Fri, 13 Jan 2023 17:44:46 +0100 Message-Id: <20230113164449.906002-6-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org IPQ8074 has one Gen2 and one Gen3 PCIe port, with Gen2 already supported. Document Gen3 port which uses the same controller as IPQ6018. Signed-off-by: Robert Marko Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 19580350db11..0f258aa1bfaf 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -24,6 +24,7 @@ properties: - qcom,pcie-ipq8064 - qcom,pcie-ipq8064-v2 - qcom,pcie-ipq8074 + - qcom,pcie-ipq8074-gen3 - qcom,pcie-msm8996 - qcom,pcie-qcs404 - qcom,pcie-sa8540p @@ -154,6 +155,7 @@ allOf: contains: enum: - qcom,pcie-ipq6018 + - qcom,pcie-ipq8074-gen3 then: properties: reg: @@ -375,6 +377,7 @@ allOf: contains: enum: - qcom,pcie-ipq6018 + - qcom,pcie-ipq8074-gen3 then: properties: clocks: @@ -695,6 +698,7 @@ allOf: - qcom,pcie-ipq8064 - qcom,pcie-ipq8064v2 - qcom,pcie-ipq8074 + - qcom,pcie-ipq8074-gen3 - qcom,pcie-qcs404 then: required: @@ -778,6 +782,7 @@ allOf: - qcom,pcie-ipq8064 - qcom,pcie-ipq8064-v2 - qcom,pcie-ipq8074 + - qcom,pcie-ipq8074-gen3 - qcom,pcie-qcs404 - qcom,pcie-sa8540p then: From patchwork Fri Jan 13 16:44:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101143 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96ED4C61DB3 for ; Fri, 13 Jan 2023 16:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjAMQr6 (ORCPT ); Fri, 13 Jan 2023 11:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjAMQrP (ORCPT ); Fri, 13 Jan 2023 11:47:15 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBE4155841; Fri, 13 Jan 2023 08:45:01 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id tz12so53628598ejc.9; Fri, 13 Jan 2023 08:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LC/kSTJgwG4TkbkacIZ8rFmg4tsFLgqDy6gtWI/V4yY=; b=Wrl8oHmkr5sSArBIjiUthAfhuCoz2L5r4tKmWUGMldj/7uMp4vsuU6eK/UlmGpBK/Y BenKnhQQv8wlOkasyhEFWlmUXAvQzF0+4SbrnCnUwoU3h/YQd8rxDspeXn0wUQr4BGQW 6W4Bys+GD/+g0fz0uYG8wLsUBFQKutcUrnlA9G6RVddEnn5OIXgsUBS+Io8VsPLmHvd4 9ofUY61QFsHsel1iuz4JP643uXjA/QwQT/0RZJRVzVaxoNcdML2+WUJNr+xflqaYoVhI N/IQ2d66zIu/abrprU4ao3woqFaGfnw6iJLjdKjmxBHnBy01tUZG05tb6pbhNjBRLUM1 jrsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LC/kSTJgwG4TkbkacIZ8rFmg4tsFLgqDy6gtWI/V4yY=; b=yvUR7GaT7hP11Aw7LhlUxiP7HLyokPQBVFcK28DkWdNGfAZNfdDoB/GEPq6MSRzmnc t6n9r1KMv2w0mCodDk7VKKXy3gRWq5m0GcMk6leYoMUi+qjhDG0zz03joe0z49oXmapj pW2sDmCHVhWnj7UbTR1x1VcKnXRrkC9AmZ5XUn2GGDe/fNz8sMFVICijfOaoDgoMrBAp NQ0NZ5cQBal+XCxypmUByQvLqNL6RHaqRhtPqOd9rpJs8/Mp1HQ/dEEiGH8suf3Xlk7S LruvytY1Q/25gtz/dbagoUKVq3PYWrT6Yhu5LNOO1Rz1lIKXpHY25iBXOt9JQDEkq25P PAFQ== X-Gm-Message-State: AFqh2kpbl285oCUaQ+YIIdjzs6rcy68T7qmZDsA1A39ryTQ9G0eh/ODv YNP10SoLe65vHshhCgP5e5g= X-Google-Smtp-Source: AMrXdXuQSpZkZl9bzHb0x7edoK9XQNmZoFFromch8yZWsWCQugSyhu/PAS+85LaZTJzXiZYIiN0cQg== X-Received: by 2002:a17:907:6f09:b0:7c1:37:6d5e with SMTP id sy9-20020a1709076f0900b007c100376d5emr50441585ejc.2.1673628300521; Fri, 13 Jan 2023 08:45:00 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:45:00 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 7/9] PCI: qcom: Add support for IPQ8074 Gen3 port Date: Fri, 13 Jan 2023 17:44:47 +0100 Message-Id: <20230113164449.906002-7-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org IPQ8074 has one Gen2 and one Gen3 port, with Gen2 port already supported. Add compatible for Gen3 port which uses the same controller as IPQ6018. Signed-off-by: Robert Marko --- Changes in v2: * Capitalize subject to match previous history --- drivers/pci/controller/dwc/pcie-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index b9350d93b4ba..b69a406a2660 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1817,6 +1817,7 @@ static const struct of_device_id qcom_pcie_match[] = { { .compatible = "qcom,pcie-ipq8064", .data = &cfg_2_1_0 }, { .compatible = "qcom,pcie-ipq8064-v2", .data = &cfg_2_1_0 }, { .compatible = "qcom,pcie-ipq8074", .data = &cfg_2_3_3 }, + { .compatible = "qcom,pcie-ipq8074-gen3", .data = &cfg_2_9_0 }, { .compatible = "qcom,pcie-msm8996", .data = &cfg_2_3_2 }, { .compatible = "qcom,pcie-qcs404", .data = &cfg_2_4_0 }, { .compatible = "qcom,pcie-sa8540p", .data = &cfg_1_9_0 }, From patchwork Fri Jan 13 16:44:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101144 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1058DC67871 for ; Fri, 13 Jan 2023 16:48:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjAMQsI (ORCPT ); Fri, 13 Jan 2023 11:48:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjAMQrR (ORCPT ); Fri, 13 Jan 2023 11:47:17 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6637F58D12; Fri, 13 Jan 2023 08:45:03 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id l22so23904329eja.12; Fri, 13 Jan 2023 08:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wGVN3rLMqJQGbw0wWLclIhoV7qmP5/8gcNfX7fkrepc=; b=gJ8+B0Wi77XymiL/mpPDCUfVYHG0jWaZZhwS+lctfzbnfDK4etJHm7PctM2Fqsi6AU wPF7w4kJlbBfNrrBSf/gj1ixHYlLKhAqVbqZ1RoOulmJ9sqSMsLV8ZDzfSuwlEoZWUpv N3++2HOnLeaBsIKH5/E59POv5Z8XoYanAt8U5UU32NHR6ZlHX3j4GORTfQ0Km2Ai886W F59dxMePI/m/GZHSPhuaMzAKGpSAqoo5Ra+WHrqjcI5/pZIDFiBK4BiglnZiZfZwLZdC 58a7HiMaj9fm1BvKCFR2/qlaSkb0up/+Pte4KAaq1QOYQyi7j38DwztZQtYCAQ/3ZwTc a7Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wGVN3rLMqJQGbw0wWLclIhoV7qmP5/8gcNfX7fkrepc=; b=spSXWbcKYrV2uPgDfMYFfkHF/iAhceejxTUstNMDQLxgdSJzF65mi5zhENMK4k1CQa zuvkLG1ItT9O7oAdjOUaD7ETlCLvX6nrp061o3oBBltDpJ2NTFu2xZzX7b9LlnlrFE4B VT3FF3B3c5s653p4IJPbN36EJNqKxrDjJFOxQcjttUjB4icG5VOpu4LJVsiw+qfmOlBx XLsafAHO1BtPrWaqXqbtF1C7/0tPaO5V4aoNZqTHa7mRjkGy1pXHT/KjWKc/MzohpRTD jT588jx1zgut83tK7LSDbFgMMG3kW1UhNTsn6AnME+b+Ue5EDtmtwXTXXcBT0hpzV23D LHRQ== X-Gm-Message-State: AFqh2kquO4vQEO70IPRWqPWkEmHh9xv47+qmJZmZQvI8QWCZwT9ZFAld UbVrkGi/IE88KTlv+so0CPI= X-Google-Smtp-Source: AMrXdXv/TZzs4qGoekuus1X3gQapC74nHEU7+ObqEH43hfzMqlRplFO8iZRR3i+I3baT3olfTmayPA== X-Received: by 2002:a17:907:9814:b0:857:1e36:3b7b with SMTP id ji20-20020a170907981400b008571e363b7bmr16733593ejc.11.1673628301934; Fri, 13 Jan 2023 08:45:01 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:45:01 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 8/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe node Date: Fri, 13 Jan 2023 17:44:48 +0100 Message-Id: <20230113164449.906002-8-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org IPQ8074 comes in 2 silicon versions: * v1 with 2x Gen2 PCIe ports and QMP PHY-s * v2 with 1x Gen3 and 1x Gen2 PCIe ports and QMP PHY-s v2 is the final and production version that is actually supported by the kernel, however it looks like PCIe related nodes were added for the v1 SoC. Finish the PCIe fixup by using the correct compatible, adding missing ATU register space, declaring max-link-speed, use correct ranges, add missing clocks and resets. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 30 +++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 5ef4383ab18b..74eecca4f9e3 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -854,16 +854,18 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ }; pcie0: pci@20000000 { - compatible = "qcom,pcie-ipq8074"; + compatible = "qcom,pcie-ipq8074-gen3"; reg = <0x20000000 0xf1d>, <0x20000f20 0xa8>, - <0x00080000 0x2000>, + <0x20001000 0x1000>, + <0x00080000 0x4000>, <0x20100000 0x1000>; - reg-names = "dbi", "elbi", "parf", "config"; + reg-names = "dbi", "elbi", "atu", "parf", "config"; device_type = "pci"; linux,pci-domain = <0>; bus-range = <0x00 0xff>; num-lanes = <1>; + max-link-speed = <3>; #address-cells = <3>; #size-cells = <2>; @@ -871,9 +873,9 @@ pcie0: pci@20000000 { phy-names = "pciephy"; ranges = <0x81000000 0 0x20200000 0x20200000 - 0 0x100000 /* downstream I/O */ - 0x82000000 0 0x20300000 0x20300000 - 0 0xd00000>; /* non-prefetchable memory */ + 0 0x10000>, /* downstream I/O */ + <0x82000000 0 0x20220000 0x20220000 + 0 0xfde0000>; /* non-prefetchable memory */ interrupts = ; interrupt-names = "msi"; @@ -891,28 +893,30 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ 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>; - + <&gcc GCC_PCIE0_AXI_S_BRIDGE_CLK>, + <&gcc GCC_PCIE0_RCHNG_CLK>; clock-names = "iface", "axi_m", "axi_s", - "ahb", - "aux"; + "axi_bridge", + "rchng"; + 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>; + <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>, + <&gcc GCC_PCIE0_AXI_SLAVE_STICKY_ARES>; reset-names = "pipe", "sleep", "sticky", "axi_m", "axi_s", "ahb", - "axi_m_sticky"; + "axi_m_sticky", + "axi_s_sticky"; status = "disabled"; }; }; From patchwork Fri Jan 13 16:44:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13101145 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F63BC54EBD for ; Fri, 13 Jan 2023 16:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjAMQsL (ORCPT ); Fri, 13 Jan 2023 11:48:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjAMQrT (ORCPT ); Fri, 13 Jan 2023 11:47:19 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B715C7BCC6; Fri, 13 Jan 2023 08:45:03 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id hw16so41768452ejc.10; Fri, 13 Jan 2023 08:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZSzg8ro4VicBsd4Z6YxYop5coys1WHe/3Ul2C/JMj58=; b=iL3CqfCmDWIfqj8iaZc9rPyCV2YPsBuDEozU94ki+7XD4R0RT+Kh5o8qmygei5yHdF eLJA4LegAfQsvVHVrTFTSI8DfNaFwJT3nTx6RyBpAl4DuGeFJQN9KEC1s5fYvFu7ubRu QwLwMLNZpNJLghiKsV6J30uZD2lg0pW8rf0MXarJoMm6/gGkzwg0kZDU66cKzMVA1t87 15hsoepyRlZSRAKxNezL4LOx4CTzU3BafwZ6ZxtMva8cNjoV3FKrWMNeaaqMuF6HvfCq +iT0ToavwrrgLj8tVZs+MUuPj1GUIY3bLmB+Wm67+coFFGWubGl29mKPG4WM312D8uds Gm6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZSzg8ro4VicBsd4Z6YxYop5coys1WHe/3Ul2C/JMj58=; b=pL9sgTbblHvYxfgAdh27xinVODkhnKS2EqnmUgc651e/PwaOHR8g/B7kxYmGDwW/ba KZTwn5soin/zieMuJFCzKbWAW5kgGGgYkw3eveCi/KMxqup3H+HNBazMLwggw1vRX5HE 7BsThZ1hVFX5iFkeeoHyDCx4s4T/KhjJrT/oYpfH2nq6ns0Mco5QjalgxMgHe+mDud4q hwMdk7S1Z8Kqo2ghC2ISxrv845USKK3Jn9Emv2mHjxD6Yy3O6gZ+MqVQBiOBEMiNGX3r 7LGLpK7TdLIigI8UGiW6mbd9l77GjLiZ3h9lycZm8ij7pTqea+GJyA4noBT0p272aodl O7Cw== X-Gm-Message-State: AFqh2kpCfTyUHtaarvvCqfgyWtKb9NmrIzyuED0OXeN4gm7ZB3KI05Wo z74g94qlCjSr7jfMLz8vThmifWeKeCqlCw== X-Google-Smtp-Source: AMrXdXsKNJd2j8ldjOFQzjdF0s0MkRvf9VWdq5hj7FDnJ97o4yTcaNfmrBKrsU+GlumFI5iEsecz4w== X-Received: by 2002:a17:906:5dad:b0:7c0:dfba:54d3 with SMTP id n13-20020a1709065dad00b007c0dfba54d3mr11846198ejv.20.1673628303265; Fri, 13 Jan 2023 08:45:03 -0800 (PST) Received: from fedora.. (dh207-97-147.xnet.hr. [88.207.97.147]) by smtp.googlemail.com with ESMTPSA id sb25-20020a1709076d9900b007b2a58e31dasm8777831ejc.145.2023.01.13.08.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:45:02 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 9/9] arm64: dts: qcom: ipq8074: correct PCIe QMP PHY output clock names Date: Fri, 13 Jan 2023 17:44:49 +0100 Message-Id: <20230113164449.906002-9-robimarko@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113164449.906002-1-robimarko@gmail.com> References: <20230113164449.906002-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Current PCIe QMP PHY output name were changed in ("arm64: dts: qcom: Fix IPQ8074 PCIe PHY nodes") however it did not account for the fact that GCC driver is relying on the old names to match them as they are being used as the parent for the gcc_pcie0_pipe_clk and gcc_pcie1_pipe_clk. This broke parenting as GCC could not find the parent clock, so fix it by changing to the names that driver is expecting. Fixes: 942bcd33ed45 ("arm64: dts: qcom: Fix IPQ8074 PCIe PHY nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 74eecca4f9e3..c6cbeb66c0e7 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -257,7 +257,7 @@ pcie_phy0: phy@84200 { #clock-cells = <0>; clocks = <&gcc GCC_PCIE0_PIPE_CLK>; clock-names = "pipe0"; - clock-output-names = "pcie_0_pipe_clk"; + clock-output-names = "pcie20_phy0_pipe_clk"; }; }; @@ -285,7 +285,7 @@ pcie_phy1: phy@8e200 { #clock-cells = <0>; clocks = <&gcc GCC_PCIE1_PIPE_CLK>; clock-names = "pipe0"; - clock-output-names = "pcie_1_pipe_clk"; + clock-output-names = "pcie20_phy1_pipe_clk"; }; };