From patchwork Thu Sep 28 21:15:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13403541 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 C3426E743C5 for ; Thu, 28 Sep 2023 21:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232361AbjI1VQ2 (ORCPT ); Thu, 28 Sep 2023 17:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbjI1VQ1 (ORCPT ); Thu, 28 Sep 2023 17:16:27 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA98F3; Thu, 28 Sep 2023 14:16:24 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5333fb34be3so16471367a12.1; Thu, 28 Sep 2023 14:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695935783; x=1696540583; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HRfD2frfJCrCV8FZTJoVzCkfiyFyj4/PvBoUWy9PR30=; b=E3Vc1spApcwEliAcMjTfYwHAnq+iXGeEmfFJQzSfoMZ+y4Q3ItZwdLqpR4FLNt32RC jPJFI0R1PX7O8c2SC6gyCw/rhUo0h73FEnnATRRflbcQTUQ0TvyCdnJE5GOfspZMzLTO aUU14jhbToaSNE1svtDK0mHCENT6o5NxAHYbhk9CKLjvc2OPMNZ8CJ+4jx7iObUpK19L 72BGo9+JQ5y3EhiNRzvcYPAOs4NQe2bG3DvedEFvAKHpL38ogmczyBaT6B8ozbLVQIDi b47mqurJKy2CkYa3WBkY5WO67y/mLAgBbFhYuabAbsVDp0s8aBSkendy1BFUb6VykhXQ 39VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695935783; x=1696540583; 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=HRfD2frfJCrCV8FZTJoVzCkfiyFyj4/PvBoUWy9PR30=; b=ArzCQsPVv5ZyHz0OGpmS5CbumJV4eBiWivm4UW1jKl8EHTbst4vZ1yg7PzH8vKGCs8 38CfiMfBfEDUJ4mAnn4+6ibGyfi51oT3/SnJdXCrL7qLKmLhs9q7ljqBTGc8yS05NoaC uvEORj6HBnT/6n4gzEkCwDSPI/6trHCS8aKTDcO7BiTKAHS/kbDhK/7llKZhTef7n7of b/JysXgikRn5S3bLgvNfQ8DdK8wGLXbg6TZegZ9d4u3oc1tNm9afvudpgdkEXcJrm5pe KFn1RinfQGZLrBqc3bdAX74x3Af/OwXh2NDiEHk6L3QXYbMY0gaMhKURzyXjl9rNF/x3 GKsQ== X-Gm-Message-State: AOJu0Yxj2kDS0m6sPd5rbs5gR5IS5ENL+JmtlJLbNpHEHkD6T83snvoe M6Tv3M8oj+DSvNb+ggXWNe/iXcBKKx/eog== X-Google-Smtp-Source: AGHT+IE56xr0mbWbKfq9BwwKUgmkOlU0UH3fRy8LBaQr2sErquhJ8Ityq6TAFHZSCI+QfGq0lNYRXw== X-Received: by 2002:a05:6402:3c1:b0:533:2449:7a59 with SMTP id t1-20020a05640203c100b0053324497a59mr2458774edw.11.1695935782949; Thu, 28 Sep 2023 14:16:22 -0700 (PDT) Received: from fedora.. (dh207-99-57.xnet.hr. [88.207.99.57]) by smtp.googlemail.com with ESMTPSA id o5-20020a50c905000000b0053448f23b33sm2933324edh.93.2023.09.28.14.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 14:16:22 -0700 (PDT) From: Robert Marko To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_tdas@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH 1/2] dt-bindings: clocks: qcom,gcc-ipq8074: allow QMP PCI PHY PIPE clocks Date: Thu, 28 Sep 2023 23:15:20 +0200 Message-ID: <20230928211620.1278054-1-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Allow passing QMP PCI PHY PIPE clocks to the IPQ8074 GCC to avoid having to do a global matching by name. Signed-off-by: Robert Marko --- Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml index 52e7831a8d6d..2d44ddc45aab 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml @@ -27,11 +27,15 @@ properties: items: - description: board XO clock - description: sleep clock + - description: Gen3 QMP PCIe PHY PIPE clock + - description: Gen2 QMP PCIe PHY PIPE clock clock-names: items: - const: xo - const: sleep_clk + - const: pcie0_pipe + - const: pcie1_pipe required: - compatible From patchwork Thu Sep 28 21:15:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13403540 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 6155AE743C4 for ; Thu, 28 Sep 2023 21:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbjI1VQ2 (ORCPT ); Thu, 28 Sep 2023 17:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjI1VQ1 (ORCPT ); Thu, 28 Sep 2023 17:16:27 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D309119D; Thu, 28 Sep 2023 14:16:25 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-52fe27898e9so17255907a12.0; Thu, 28 Sep 2023 14:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695935784; x=1696540584; darn=vger.kernel.org; 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=5XZTix1Mf7XTs+tXTEEd3SF8eZQ4E+jmYLihpcH3rUo=; b=GUdDkMllYJoTDklbC1QYJdVh/6BgtagQxPO+yFJbikVRioVr+R1IC8tpvTd9WZwxRY +7AM8XlaDHD6U6K955823CAVDGLJA807NVCHJ+Z2cdLg7TjvLqUBblo+X7LyQJeJhMnp 87Ha2ygJfe4uyzoJG1FAhfFDeqSm5YYz1fvxF88EG89u6x4EQXC8V7z1qZmhaj1CD77n /fROLarCrL6EBvBlSrQuigk3zU32BucXWhaaV5CejzJRsRY/lrEoCkzY2Y305mlL9Vr3 KsufM0j7AzcR19q5IDASkTGsAAf63ixiLsS5cIOUtlnX6EFYy41U1lQaLkO8Su9DIjNm BbWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695935784; x=1696540584; 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=5XZTix1Mf7XTs+tXTEEd3SF8eZQ4E+jmYLihpcH3rUo=; b=sOeAmHVqP/tHHowdfby2/L6KpRy63bzUFBTECwO2gkOAVOzEFCsknE3VGHJd/+yEDC oXPfDMf/1uHxM4Glz8O7yRprCap8GzheHOYKs6eJk9cIS+wx/ocV5LVb0h/JuQ+06AuN n1pBdxVvMO1QmpRP1WS1l6NUYDp7/FmoudCf5X+fgTBEgnsGK73iOpVVckDSh49mi8YH kaorAveKkQ+nX5pzBqOTouD29e/LswJBfyzTe6IeumzqQEZnZL5ccrUybvNuK2j7Vwhh Prw+bky3gFMzU72zVcbHgbMt4vmypGqpUwn03BWRkuTfOuO4CbS2fsZ71yxUeQNu7QYU B/Yw== X-Gm-Message-State: AOJu0YwaJlMiae/LUYkjcLTQsE56YUtobXYogsqFzqu64v3QvyZjO+uZ neTD7nO6s/136/gZGWnZzdk= X-Google-Smtp-Source: AGHT+IHbcaLWh47udGrDwolMOI1W/KhIeoJkTFxGfN/IKUTWR7QQARltc40jxhj+sDi2oFSAWY1UQg== X-Received: by 2002:a05:6402:1810:b0:52f:c073:9c37 with SMTP id g16-20020a056402181000b0052fc0739c37mr2135424edy.3.1695935784190; Thu, 28 Sep 2023 14:16:24 -0700 (PDT) Received: from fedora.. (dh207-99-57.xnet.hr. [88.207.99.57]) by smtp.googlemail.com with ESMTPSA id o5-20020a50c905000000b0053448f23b33sm2933324edh.93.2023.09.28.14.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 14:16:23 -0700 (PDT) From: Robert Marko To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_tdas@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH 2/2] arm64: dts: qcom: ipq8074: pass QMP PCI PHY PIPE clocks to GCC Date: Thu, 28 Sep 2023 23:15:21 +0200 Message-ID: <20230928211620.1278054-2-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928211620.1278054-1-robimarko@gmail.com> References: <20230928211620.1278054-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Pass QMP PCI PHY PIPE clocks to the GCC controller so it does not have to find them by matching globaly by name. If not passed directly, driver maintains backwards compatibility by then falling back to global lookup. 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 643b586c0dec..1f108ee2e8ba 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -407,8 +407,8 @@ qpic_pins: qpic-state { gcc: gcc@1800000 { compatible = "qcom,gcc-ipq8074"; reg = <0x01800000 0x80000>; - clocks = <&xo>, <&sleep_clk>; - clock-names = "xo", "sleep_clk"; + clocks = <&xo>, <&sleep_clk>, <&pcie_qmp0>, <&pcie_qmp1>; + clock-names = "xo", "sleep_clk", "pcie0_pipe", "pcie1_pipe"; #clock-cells = <1>; #power-domain-cells = <1>; #reset-cells = <1>;