From patchwork Wed Nov 16 21:48:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045882 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 CCD69C4332F for ; Wed, 16 Nov 2022 21:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232851AbiKPVtk (ORCPT ); Wed, 16 Nov 2022 16:49:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238577AbiKPVtV (ORCPT ); Wed, 16 Nov 2022 16:49:21 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AE1B623B3; Wed, 16 Nov 2022 13:48:46 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id f27so450871eje.1; Wed, 16 Nov 2022 13:48:45 -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=4IVGXMtPYSMA+UPtByWaNjM4ICyi94eVWXqaBEQoY40=; b=QUQHMkopSuXeB2TzlkJM9ohIeMlxgnTox/jLzWwWhgsxVzj4Wz7gXr3r3uqFbj2HwU cZLAxzpF4VQK6ABEdtyQGJDsNCmoRTnDFk++cWa7dtprGufW2d27O18CjzQWaryNsFut R0xVsc8Q34X29Rv8QEilFa7VBgzWffAsjRpvNCgmYKGvd9FqIrwNe8efHS0aDRgXWaq0 hq1ISQhVigLh1y3i0C5LIIKtzvwfwoV6khOeHyey/e1phgT57IhhBFN5JLRVIqB7zIzm sHHMMq+1ZDY1wIRkXttT3Jm23Ib7ZzcPgQOlJlCxrGLEjOVY0M5SWi2V5IVwYf4n9HcK oHFg== 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=4IVGXMtPYSMA+UPtByWaNjM4ICyi94eVWXqaBEQoY40=; b=xb1Wtcx4qkB+g+WrSxXIleqgJ+SmK0WMpyYJYw0vAcO5II/YkrZPDxZHX4eGj/Xixe cv2BUnYKpZSYWUPRdBeIe2SomlCY+t0P/iZvw9hrJUCKFtz8wkezqtNrrxtXMFfs3nq6 TMXgHBgeoiR84ATE+oLaPWNw0UkHofFWic6iDA3F2MK54xbps6Ir+0t00E/W1LFfiRmB rldlExddD/urHOQ+IXmf97w0ymKfV2lAdut0StuwNNwX2xnuf/BW2rWH4tK0fZDP5Dyk 06UyZKJtp/BAx18hY1ddBBJ9TBAuIDikirr0F0FX6F6HUrEyPcSgYQ6rhuVKsNPa+/p0 1wEQ== X-Gm-Message-State: ANoB5pnRAyZUrld9h0mjiNycy1KdoO7AsMp/LEresfFTCNLnN0T2Y4qD wYAK6GQd3J2/gEvQuJdfu5A= X-Google-Smtp-Source: AA0mqf4gmyDBFFr9+aiyhdhMvqgDms3n+9Y48UvNXNTuI4hNYWAln/gD0HZjt6jh2xsE5DAvH5XgAA== X-Received: by 2002:a17:906:7f92:b0:78d:4e5b:ffaa with SMTP id f18-20020a1709067f9200b0078d4e5bffaamr18365714ejr.455.1668635324556; Wed, 16 Nov 2022 13:48:44 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:44 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 1/9] arm64: dts: qcom: ipq8074: fix Gen2 PCIe QMP PHY Date: Wed, 16 Nov 2022 22:48:33 +0100 Message-Id: <20221116214841.1116735-1-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 4b4cd3eaf6c8..6649a758d8df 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 Wed Nov 16 21:48:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045883 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 B7CEBC4321E for ; Wed, 16 Nov 2022 21:49:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236617AbiKPVtm (ORCPT ); Wed, 16 Nov 2022 16:49:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233188AbiKPVtW (ORCPT ); Wed, 16 Nov 2022 16:49:22 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3401BB4BF; Wed, 16 Nov 2022 13:48:47 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id ft34so292518ejc.12; Wed, 16 Nov 2022 13:48:47 -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=EAzlL7OKuIzPWhKNqIVY4e+Q/KWJKsIpn67snRSlq5k=; b=S1L7JT3kfhFzJvexPzawhRGIzZtK8vbX5F/Cl9BdBKHXUzQbK0tzFvPPrSnh+K65/v 1VurS457YlnJKZPdcawp0ulfCMeBykRH8+NOEcuVJVvHrZNs+91NEfHOWhTI4EoZrphq IpXW5pzbI7MRWlTbjhwyfvN+oRsvbB3RvERwu/AviXyuXPnFKAAdPSXkIDPTTjV+9ohM F8YDZKHI2OogYYH3ST9gFx3bfaIpigJhRUwJeKFY1ZEYie36DlIykp5p1TcNIGEkfy/E n1j7cVuNYir010zsLryvHaM2l4tmhCivBgyUzI/J9OJ+hYvu5T/KLoyDzStIvySIFoj8 PiIA== 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=EAzlL7OKuIzPWhKNqIVY4e+Q/KWJKsIpn67snRSlq5k=; b=PhbHipbZcsmWjyYycTCMD39B/hdKZZnI67rOup689qfHqJK1vZp2vt2vXl/2NU6CXV Msjk75W49Yee7oe6TT1c20E5DerfANr4gZQMw/dXj0UPWuMrf6VcfRxSo6JrRtX/zr/Z m7FUpfgW0IicS1PxHoQGFK8O3MMw0y2MN5nZk4SqKBhbW7Aw+2L62FHdsU9x9rTf1rZw XXCXSJomY5Th4FoOxfWwKMUQCkqBwUqDH5bLqXHXpZC0E69Q1Tnums0iki2f8oEDdB0c BNqw03ALaNRTCtmxOI30a89caad4Vt5xAgElT5Samg3e8N4EuGPV1kZhsD3hnc9mBqfp U/gA== X-Gm-Message-State: ANoB5pmqi6jaxoyOUsn95Z5lCNNkj26gWV1TtBH8XMeCJf+5isBpB/zt a3U6ag5mZ/fMB5SDjtaHkmkvdf97R1eecw== X-Google-Smtp-Source: AA0mqf6Pt48yxhIbrJIJfuPFQFyd5qu4eX39eJK6eGgqvgL2UrEIRYsyi5ylweoi/T0VKC9uFSx2IQ== X-Received: by 2002:a17:906:c1ca:b0:7b2:7b45:2cd2 with SMTP id bw10-20020a170906c1ca00b007b27b452cd2mr6156357ejb.615.1668635325808; Wed, 16 Nov 2022 13:48:45 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:45 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 2/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe QMP PHY Date: Wed, 16 Nov 2022 22:48:34 +0100 Message-Id: <20221116214841.1116735-2-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 6649a758d8df..9503dfb25d50 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 Wed Nov 16 21:48:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045884 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 90EB5C433FE for ; Wed, 16 Nov 2022 21:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237359AbiKPVto (ORCPT ); Wed, 16 Nov 2022 16:49:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231342AbiKPVtW (ORCPT ); Wed, 16 Nov 2022 16:49:22 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A83A61BB4; Wed, 16 Nov 2022 13:48:48 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id k2so435890ejr.2; Wed, 16 Nov 2022 13:48:48 -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=zruJLlJ8a35SxUsYi/AnlLXhcK2EHytmRl4aws2VY94=; b=kyOPa3lUh60eEhkr7o+pUaMMxRLpUAQ66gaxw/uWejMMCBj8tDKY8zuIDzxcgDunA8 c0UwTpD2B1qVIssHrAzEFQghHwFQk6RS6HJe8Jcc2GUXrAYDSmOBFv7XPF+kvbT1/Hkr pXjR28HbBEz2EqrH6hrhEljm+pUYcaMF8Hj/Snks7Ic0R80fs3PFaRBIR7zmvrBkf/0w vao5nlgmEUsbzfxGzfNCwuCIpjS3HWRaSrpadF6jqOAFegsmniw875kFDjTbz4XWV7eG +QIc32uVacO9U2ggGz1D4i1B5k6b0DOBz/YbftVyNZCVmksdgnkYT+ZqCAcsnXROIGau Y9VA== 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=zruJLlJ8a35SxUsYi/AnlLXhcK2EHytmRl4aws2VY94=; b=mgX70CH1fkyANQm+PnSmJq/6cwvowl5FmbVNQqD3R8GVNVWWvMRBs5mdFyZWBCnikE zIfYodOiCBSQAqbwVCRBghAt7zxRlgQe10Kg7+ndBu5N2mq7vKaUiIXBaW6vJD8sU+To mzeVq/huL40F+Av/aZKo63Inh33v5/+svjjdOu35SU7i34e+9oe0oAk+qLpvG4H+mxG+ RmhZfTwemJl2KF4rcWTjnxhJRSuFUqkk3x6X0oqza/hY/YOpYxyljygEak83JCr4/7Oc jA+JAFBuopGMDIxF6WZqU89yA10wy/1DqQqIekdXKdG+DM+uFrkijNDTLuMod87D4528 X+aA== X-Gm-Message-State: ANoB5pn7fr2co46fUJccwH/flshV1U/BG1yc0Ci0d2aveGio643eIbTY tkzyHmstUh2DLN0oN2Uu4XM= X-Google-Smtp-Source: AA0mqf71o5kWi/Zk9aWkbFyHvNX37a6arAehFk3futij85Uf2EAp50i3ceddljJPLJEF38UCRkCpyw== X-Received: by 2002:a17:906:ccd0:b0:7a3:28c7:5835 with SMTP id ot16-20020a170906ccd000b007a328c75835mr19881415ejb.32.1668635327065; Wed, 16 Nov 2022 13:48:47 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:46 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 3/9] arm64: dts: qcom: ipq8074: correct Gen2 PCIe ranges Date: Wed, 16 Nov 2022 22:48:35 +0100 Message-Id: <20221116214841.1116735-3-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 9503dfb25d50..b1decedbd080 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 Wed Nov 16 21:48:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045886 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 7ACD1C433FE for ; Wed, 16 Nov 2022 21:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238592AbiKPVts (ORCPT ); Wed, 16 Nov 2022 16:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232506AbiKPVtW (ORCPT ); Wed, 16 Nov 2022 16:49:22 -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 CECFC5985A; Wed, 16 Nov 2022 13:48:49 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id f18so394128ejz.5; Wed, 16 Nov 2022 13:48:49 -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=loIeYsbIfqk2P074OtBAWf7HGIfr867twQZf+5G/rew=; b=aPwVJ/UR6Vnv1p3AHkmaOpKOfKdqgLvC9LfsqTKgWaMIkZ+QNqK2KBxgGm1z/pJsaZ rAlxfgPSpk9MbN0DNg1hphCCUYuSISDN9PsuF3W3J3mpKzSBW8xGhyQvcCnpVb0C36cl zOKEDC8aQrmuxO2m9fdDj7GZsPUaoZVbgdgudCsSIdaZYOAXkCs6EQKv25mitRFa/bHc YMpTxzmbWRzTC+IGhDZzZCKDsVT7n4txBGFSe+pWRWMp+mEk5juxJLLUGI9YPZTiiBLH msD0waPDZjyjRGkPnJc4mQR3hnPPrd/cfEKGmypxd4NPezjsm5/a3LQ77t5YhB03uxOU WRPQ== 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=loIeYsbIfqk2P074OtBAWf7HGIfr867twQZf+5G/rew=; b=YE8dJ0DPKn1sueoX0xFXdGmb2HEKZLYmsJuZ+Th3yCzf8qdfjcG3p+5l6qTQy3W+vH f/Zl7evJah/EZGf3WxTeVaNX6S9RJVdJpleqjk6+SgHIp9+LKU2V9Ou6In4IPrWRiZMq yPRX0ddU6rRbDahWRNDfp61Xtuxx5dWEFdGY4VrVFexojq8ipgyDX/5yPWlqrdxDJFEP zX5cg3WxGiV7Dd5jw6rlICv4UoerX/5ICwTBBTzGCTZ5nYNw0uykugZsMYKwbtY9UN1G GXZUPZmmwUz6Ijw8HmSvVxoCsuE9O1nfrsG3Dqgk4Ip39MhAYWcPn90LeOjSAxety6GC EuWQ== X-Gm-Message-State: ANoB5pmXPjGOr+h9RXc0VvnThgZtdjyPz7QghhAWi1pzHyJMdJjyDvze tdUZVwK+LfMpSs2u48CJ2qk= X-Google-Smtp-Source: AA0mqf7yO//UJKXGudN4u0MPQe8SLmp39YTSF9gtSAzsDRwB/WN65OyI7e+EzGo6XowVfnaNtKOCew== X-Received: by 2002:a17:906:1c85:b0:7ae:ca2f:171d with SMTP id g5-20020a1709061c8500b007aeca2f171dmr18160540ejh.353.1668635328326; Wed, 16 Nov 2022 13:48:48 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:47 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 4/9] arm64: dts: qcom: ipq8074: set Gen2 PCIe pcie max-link-speed Date: Wed, 16 Nov 2022 22:48:36 +0100 Message-Id: <20221116214841.1116735-4-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 b1decedbd080..585e5f0a139d 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 Wed Nov 16 21:48:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045885 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 9881DC4167B for ; Wed, 16 Nov 2022 21:49:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238402AbiKPVtq (ORCPT ); Wed, 16 Nov 2022 16:49:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233394AbiKPVtW (ORCPT ); Wed, 16 Nov 2022 16:49:22 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D84F606BE; Wed, 16 Nov 2022 13:48:51 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id kt23so366077ejc.7; Wed, 16 Nov 2022 13:48:50 -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=1EGkalAXlOl0NBxY3u6qgvGXD8V2PCW1rraeENgVJy4=; b=aKUwugI5mskqa5YPH3g1gI19s3UWD8lZaR5dSzti/olgcPy0DImSlcg3pxj7jBKtxx NjIY1Hj247RiMHtGQPY6sL1OeelROOI+W8uKZoURysEZSf2sharXsZinAO+eLcugC+dU jyVVXguDhCHzgmRqxf5FTfojf9apGYO8OuUF7dzyka6WEKs+LGaEchvccypDteG52OZF 37qq49sqK0Nn016eZrEZWWdg+6M4xyuyUIVnzPlj8YHdXBJRsUC3lFWnTFW8ZltRO8Tj hw1XotPnfqvXmNAg+l4wVOXNweWqD0vhzrEoNF6T8ZDx/Nnu5HRBWa6a0FBfm0EJZGue EWrQ== 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=1EGkalAXlOl0NBxY3u6qgvGXD8V2PCW1rraeENgVJy4=; b=c5J+G67sdsdPZZTllBUT3iD9/cauSOR4oyxTUQbADTs+7dmWU/5KYatOCfeLfFw5pe R/pQtGnuA6EQzRiIh5/mfxqhcTjUA2XqoKFLGONAgKGvKjORfApiF7fw+PctgZUmbJ4l DAaPZduEwZpT2x2bdoAkitBqQFf62iMTUHqeFEzDI92GZzwuPRDJwKV6IqWIA3KqqQZB 1QzZl+oaaOvVxr/zsQEFPmjoCVrOqe8FEo/AnrRl9ZtF06SuLJZubEKwpQBA1ARKO5az dsXrsJD+Em8L5ugs/TyLR3JglM1yxyCE1tmwYiIGcDjlw62lr63b+qwqaoR2YXv9aMvf wnZg== X-Gm-Message-State: ANoB5pkRFsud8fkkhFWluvWF16b0qJE0C0LFAGxllLgT+B9esljJUQjX 9DrYxqQZEJDY442QV/1OqNY= X-Google-Smtp-Source: AA0mqf6ktQzbxViWEiE+WI9awnLuzAJHFsWq5qxOdtYEsmckhTvf8kQWh1F8U6adB2rtKwlS487qTA== X-Received: by 2002:a17:906:c013:b0:78d:ff14:63f9 with SMTP id e19-20020a170906c01300b0078dff1463f9mr18717505ejz.516.1668635329595; Wed, 16 Nov 2022 13:48:49 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:49 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 5/9] dt-bindings: PCI: qcom: alphabetically sort compatibles Date: Wed, 16 Nov 2022 22:48:37 +0100 Message-Id: <20221116214841.1116735-5-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Sort the compatibles list alphabetically for maintenance. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski Reviewed-by: Manivannan Sadhasivam --- 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 2f851c804bb0..1e94c210429a 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 @@ -34,7 +35,6 @@ properties: - qcom,pcie-sm8250 - qcom,pcie-sm8450-pcie0 - qcom,pcie-sm8450-pcie1 - - qcom,pcie-ipq6018 reg: minItems: 4 From patchwork Wed Nov 16 21:48:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045889 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 EC814C4167B for ; Wed, 16 Nov 2022 21:49:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238735AbiKPVtw (ORCPT ); Wed, 16 Nov 2022 16:49:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234230AbiKPVtZ (ORCPT ); Wed, 16 Nov 2022 16:49:25 -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 81042627E1; Wed, 16 Nov 2022 13:48:52 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id i10so381558ejg.6; Wed, 16 Nov 2022 13:48:52 -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=2YHxYmic2BMW4CGYYVCcf0TtkyGIao9/HDkKDNLiz8s=; b=pZBB47yGuOielmLjy0irT5NM0KlG0FFviLYcGd/nm7+CmIWBicP3esYqyXOZa1i1Cg gfoU3ckEK8iG8kbFS4sDJQ2mSQRjVMNV/jF50y7Nd7ucOnjbIO9DbQeJ4LF/yKuQiaK1 WPKDQjsnlOommYeOfiCjpQIHYW+6JY2E6YAFRceQ5/CzbpCMS+EvU1CNm6GAvnbd2sa0 iFiDuE4umXqm2nEQkuTMM7vAB5xW5Wsg7ZEPor9DhtsxK/ZHXYtrT0CrIOH1VwdtxMG5 QuRMGyvg4aXluxTMuAPi/bOzMg/tewwKrUXQ/0ntJ8YwGHNXppjK+vN6QA+KaUBqFTHd r0cw== 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=2YHxYmic2BMW4CGYYVCcf0TtkyGIao9/HDkKDNLiz8s=; b=m7OlPMrY9SYMSG54fWgRbdB7HTPKMSvpdoi/pbKMTO/f8GkCDXvxXXbQDbIhJak7gn sPUnMACWSuGEGheKcd/HKauqqeWPIXv+qoaSq+Ti4wxucLvB5AE2Lgt9G/RRS9ihs+Bj dCza9jXs7sa2nEA3KAcOPsbIzBZNf01/4fVOn4/6wMh0NQ572qzMnxaEDTHFGl6vTLDC WRpJXXC1k5MM8IYsx5CS0GN+fWfqoM+zmQUIRHrURRtdB5sP9+Rf0staoAYTeRYwwnpg E7S3cBNS/BMnpcMIkHcTj3sHWUx+yatdzByOlGqgU1ZQw38gDLpOZZvNglDTr6wkmeIf H7kg== X-Gm-Message-State: ANoB5pn6X+IK1dwmwFcYqqMh8hTYABidYXayRO4VzZbh2jIawmIkCGJo j3MglpB/9W5q8GYees80B24= X-Google-Smtp-Source: AA0mqf62EV/dQqavBEDsTPUc3RhrMd4c+BbjV467l/afyROWQLUIiSxvSt+Rx+LLAdx62dqPT5zs3Q== X-Received: by 2002:a17:906:4acb:b0:781:d0c1:4434 with SMTP id u11-20020a1709064acb00b00781d0c14434mr19229361ejt.756.1668635331142; Wed, 16 Nov 2022 13:48:51 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:50 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 6/9] dt-bindings: PCI: qcom: document IPQ8074 Gen3 port Date: Wed, 16 Nov 2022 22:48:38 +0100 Message-Id: <20221116214841.1116735-6-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 Reviewed-by: Manivannan Sadhasivam --- 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 1e94c210429a..59f4c9990f85 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 @@ -151,6 +152,7 @@ allOf: contains: enum: - qcom,pcie-ipq6018 + - qcom,pcie-ipq8074-gen3 then: properties: reg: @@ -371,6 +373,7 @@ allOf: contains: enum: - qcom,pcie-ipq6018 + - qcom,pcie-ipq8074-gen3 then: properties: clocks: @@ -662,6 +665,7 @@ allOf: - qcom,pcie-ipq8064 - qcom,pcie-ipq8064v2 - qcom,pcie-ipq8074 + - qcom,pcie-ipq8074-gen3 - qcom,pcie-qcs404 then: required: @@ -744,6 +748,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 Wed Nov 16 21:48:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045887 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 A7622C07E9D for ; Wed, 16 Nov 2022 21:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231871AbiKPVtt (ORCPT ); Wed, 16 Nov 2022 16:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237493AbiKPVtZ (ORCPT ); Wed, 16 Nov 2022 16:49:25 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A7464A0B; Wed, 16 Nov 2022 13:48:52 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id ft34so293373ejc.12; Wed, 16 Nov 2022 13:48:52 -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=XhziJCTfYAX8UUJF9yrOBjkYfO4Z58hl4/PJ9cRFK4w=; b=UUMk7NQBXC5/9LZf7ADWWbk9osjPr8vfYJv38i/fOPerGi9Zoymk2VDn1LhA+rnyaC kA/xL3ISUlvrmWQD5kFI0jvHJSAT5rY/uKabJ9sCmePt4MtilwKARl2ts/a79WKL/Xbo /SG9UUK18iNE8aczwGzWtwMOVzBkoOIBArcR1FpMe9eoCpBiZSabkLu1s+wCHfPvCEoc bZ1EhOYsQTi0MCN6GQHzEXnap+oWDoyUdTCjXQA2IUSpuW9GmCGNpDZPP5fZiOVURRK0 qFqUc//R4HSFHS+y41NrAqcs4LHMy0Pc5bszP1bjY4Wwyv4SiMqdf5pwnuXIzQF+T5D7 yNZA== 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=XhziJCTfYAX8UUJF9yrOBjkYfO4Z58hl4/PJ9cRFK4w=; b=FD3S3GZq4DnwYiCFvNPrgOGcrh/KEXpcflVhkjPYXCnHx3vICDfEKNd9mpomKtWIw6 6rmCHkxSZgQOmm9GmeklkhU/5r1cjCk2F7PaotvJ0+kjF8KrsqZA1C2I1GExuiRbCTfH n7AIoXOL/vKjC4/Mn39l79Bpng3u/nz0x6OWAtHs2+rvT8731LK1w4ivZgKf8hxNdvTK s6ubbJSTJC5UL7obVfCBVBLM/LbzeAbFnTYi82TsnKLBd32RwdzohnQ7uSROj0S1Huea 8PamERemJyPzRxucphVEUUOP481SEgAfaKY/Q0A4k9orKkE7HUTIKY50bXupHlnw2Ric GAUg== X-Gm-Message-State: ANoB5pnfsqtwjczl3ghT7Il4N9DJJZNuXiJOFVxz9LuP24BIVmrwMno6 ThCbZWjLWvQ646JRqsxF33E= X-Google-Smtp-Source: AA0mqf6lf+eRn0xeqmUf15BFfitqsO2LECPSj5DIqQv/ZTymECngkzjTdQU5zcJMIo6ykre2bwOiIA== X-Received: by 2002:a17:906:b755:b0:78d:b8b3:f027 with SMTP id fx21-20020a170906b75500b0078db8b3f027mr18775352ejb.439.1668635332428; Wed, 16 Nov 2022 13:48:52 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:52 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 7/9] PCI: qcom: add support for IPQ8074 Gen3 port Date: Wed, 16 Nov 2022 22:48:39 +0100 Message-Id: <20221116214841.1116735-7-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 Reviewed-by: Manivannan Sadhasivam --- 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 77e5dc7b88ad..97e8510c53fb 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 Wed Nov 16 21:48:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045888 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 D1359C46467 for ; Wed, 16 Nov 2022 21:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233981AbiKPVtu (ORCPT ); Wed, 16 Nov 2022 16:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbiKPVt0 (ORCPT ); Wed, 16 Nov 2022 16:49:26 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831FA654D8; Wed, 16 Nov 2022 13:48:54 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id f27so451992eje.1; Wed, 16 Nov 2022 13:48: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=oqP3TbX6KVo39b2lQABBBQ0jY7NpQinCFYzDvvPTOAQ=; b=mdrUYfp7OS+HCloH6RN4Nr7RqUwamklaQqaWCmtGE22adN4F/lJv/EHcrJTF8F6NaX nGxL1Oa+zTfV8Zk2shVdd1LtChW89F/xX35q0u54Ij5GYa+eI1QQUvpgRYy2q988aRh8 7PxTB9nzFDt7oOMNJN4R6xftLQ+wb7cqxjpwta2d3UOuayXxuDiM9GHFzXi2/W07ktGR 0kZDWJ65XwR0Bo2jkGKLkqnzN0eCSnyim+xRoGU3YxyIiYCBuVG86P1fBn4DItbN7zgE /q6MXH9ALNY93P/2TAaw6+8FgSAiiYdw+uueF8hwxzb4GEnmozYurzswMjQwAIjHk+A9 QjFQ== 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=oqP3TbX6KVo39b2lQABBBQ0jY7NpQinCFYzDvvPTOAQ=; b=TRN3OdqMyZ8zU/LwZcUJdPqDn/DAmudep4/yOpYlEry0vKwPcBoOR9CwX79EPvjQUp UMSIDxQexTv2xiKumkT6iK0MxRqsIZliyW/y4ayeUbFxXGgiyTqh5qla/qb6CYCH+4fT 0CN/LT5mcC5C8IwyFIWNF7koCOiZnQ4+P+uzZhrIFZ7gbvQb1iW+uLd0PvcHfLd56JBB b4jxHd3yC7Mrkx/t33j2cbcIld+Ji+6gnANZv+/ms2ill8QSL4wB4biqlrd7jzevviOJ NtlEO5teFTWi9zQmLnbg9kStuas25S2pU9Ro0pfYqDO03phzmOGdRaPAXDdxu6++jfVx aCKQ== X-Gm-Message-State: ANoB5pnpakeJnPWF0Qj44+PhF8RM14BcOOpH03X+LoFK+Ar7fGtD0ac+ gXtsFWfXFKrOByVgX4xgj+w= X-Google-Smtp-Source: AA0mqf6ZJKmmavc2VY51bOHBnkFJpUPL0hNSI4ljVpbCqDOU3gLiXiYMfHmggsSupfscrevkG7kHtg== X-Received: by 2002:a17:906:5fcd:b0:78d:4cb3:f65d with SMTP id k13-20020a1709065fcd00b0078d4cb3f65dmr19785456ejv.79.1668635333734; Wed, 16 Nov 2022 13:48:53 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:53 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 8/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe node Date: Wed, 16 Nov 2022 22:48:40 +0100 Message-Id: <20221116214841.1116735-8-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 585e5f0a139d..c76c6ee9acb6 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 Wed Nov 16 21:48:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13045890 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 BF423C41535 for ; Wed, 16 Nov 2022 21:49:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238806AbiKPVtx (ORCPT ); Wed, 16 Nov 2022 16:49:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234329AbiKPVt1 (ORCPT ); Wed, 16 Nov 2022 16:49:27 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2395E3DA; Wed, 16 Nov 2022 13:48:55 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id k2so436933ejr.2; Wed, 16 Nov 2022 13:48:55 -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=ZHuhgPHSj8IDOBxbmjfqfqORtE7/J1Jlb4tgqi6UVDE=; b=Sr6BfiXrEdlf7+JlYNVLh2dfmHB/RI6a+Yz2hRXI8rI9bdAhQjfLn4PPpP9TZwdb6/ lGhEs4XanagWTgXPE+QyXuRvatIMhah6dAMl/UyTWoTERpPhSiiITRLCwtQEc5iYguaY 6WhH70/9d91wmUgkzJ+jbBCXGRch5o2RGxaOFx9bWPxqAuj/9rg2Yms3/TfTCEYc9SGF qk/xDP40z8sajB+ZBPJWOJX/BDlNnA8Cli/sQSyQnJ63yAehR5OzRP3oJND2iGcnxFKa tPU6o2E3JiIENGLDoLis2Bk7eU+flaemaFzpiTFjCXgc47UZoQf42+0KW9nQYpGs0Shd kcnw== 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=ZHuhgPHSj8IDOBxbmjfqfqORtE7/J1Jlb4tgqi6UVDE=; b=Yxrq7kOHckRtxKFkc2NgzYsOcLZTWNUlLIOr3VyMH9CSq1a/L0xW27g5//DtHt3Wud 353Z5ykPBmMHdNILbVMl8eIjWfztJata+7JTLziotnW4//LSzPotv9OEBNnHEVFdqGM/ MhHO+67Q9ADD9EUgCED1H2QsOnb+YQTaHU4qDwcNTdtu39qImj0OhchDlFGp3keo2WMU GQ+6xkJOwe9VvcHAczxM0mTAb0iZJP48/JArsFHHEMnrf+BpuAGyZn3DAbihdq4bMb7/ N/57x5XVPW1Zm5z8no9IaeVQutf3s2nGlQh7xaapuUs1+ae7xPOpFe71VovUjOOJLbAI oSVw== X-Gm-Message-State: ANoB5pki6RBLeBsR567/puEm1A22RMPQzGg75Z+jzT+H4yBAPETwrATp bLxMjzRkTmIrCjXiPX1mYlA57ufPxMm0SA== X-Google-Smtp-Source: AA0mqf5DeJNpPuMAbvD4YJAjKWmy9T2UQkGZYDB2OKfoDWvaKREc/H7yJj5zFEtSP7tBuB1ez6S6Bw== X-Received: by 2002:a17:907:2123:b0:7a2:335e:90e2 with SMTP id qo3-20020a170907212300b007a2335e90e2mr18917059ejb.712.1668635335000; Wed, 16 Nov 2022 13:48:55 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:54 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 9/9] arm64: dts: qcom: ipq8074: correct PCIe QMP PHY output clock names Date: Wed, 16 Nov 2022 22:48:41 +0100 Message-Id: <20221116214841.1116735-9-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 c76c6ee9acb6..6f5d447c9ee7 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"; }; };