From patchwork Wed May 4 16:38:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12838184 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 5024CC43217 for ; Wed, 4 May 2022 16:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353536AbiEDQmT (ORCPT ); Wed, 4 May 2022 12:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353538AbiEDQmQ (ORCPT ); Wed, 4 May 2022 12:42:16 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0781446B03 for ; Wed, 4 May 2022 09:38:40 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id d5so2784174wrb.6 for ; Wed, 04 May 2022 09:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QsArDsBFqUycL0OUq1BkvVO8KcvVKPwCI/znAJ555vE=; b=b1K+gvu29EvZ5OjuDgM0ZBxY3gbITvpzYjXL0dE7CYg4ETne4M5U++YzxdxiovYKMQ FsWn/by2DYvnT7Ty+RmSFGfJPWYteM+8zvIYDJPlroW0H3L4SXtV7wrDKxwZomnzlafx OLsdbzHqJPWODie45J2MyyH5rpiUSPKGPADmv3Knq+8LBrRUaoVX5eX+CTVs/LK7Htpq 16+Agjg3fY/FJaWGMmfSlPzdqNSMnmuOIh9/xkXttA5wUptN4nwqwenHYRQkwOkJ06DX krmWe/tWhaxM39y3bAw0/MhsY5SNDRWvDcE78I8SCMiK8Or/oJPoYkN1vJp4/oxFbtV8 GQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QsArDsBFqUycL0OUq1BkvVO8KcvVKPwCI/znAJ555vE=; b=AuxWUY4ffBVycO/HtIOKxWXIgYVfnmstQDoPcVOzIvlAW6RJxv4BeOxS/AlgkVpoP7 cSPVUvsaipWZVsp5jqAJdujrSO45oSuKXi6JEhR94NBK4MTsuv0w10lqZqSFxxp1clWa ehT4GfrgqQB29GM8mvXX3Q55BRgH1g/bJdlVMcgF/SvHadYq+zAPEth413OuX8PC1hj1 0aJ9k6gNWgoVejvrE2icRgsujVNeQQUE1i8SVYLRf313OImpG7bNjpNmHFbO8HOt/TtQ 2NuSfjgLckDAQ7nv8t6Z2qP3IeHBilwY9M8cO3Ca5UJZunxlFCaJw6SzPIuESjWKDcLg eAdQ== X-Gm-Message-State: AOAM531y+FkyV0Q1GZwS3mKztBHpjM26R4R+RoS7IFGcrXOyFbXvbWdn 9lTxyL4KnonKVhUeqrGU9x5hig== X-Google-Smtp-Source: ABdhPJxr7GTfB4YHvkUzYYC3fblzQ0zsPjdB56qzjA4MwiwHXRrYaOEpjYNVx+JS5Bb36j9w2H5YqQ== X-Received: by 2002:adf:f2cb:0:b0:20a:e801:d13f with SMTP id d11-20020adff2cb000000b0020ae801d13fmr17154819wrp.309.1651682318598; Wed, 04 May 2022 09:38:38 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r20-20020adfa154000000b0020c5253d8c7sm11671706wrr.19.2022.05.04.09.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 09:38:38 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Cc: bryan.odonoghue@linaro.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: [PATCH 1/4] clk: qcom: Add missing SYSTEM_MM_NOC_BFDCD_CLK_SRC Date: Wed, 4 May 2022 17:38:32 +0100 Message-Id: <20220504163835.40130-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504163835.40130-1-bryan.odonoghue@linaro.org> References: <20220504163835.40130-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org When adding in the indexes for this clock-controller we missed SYSTEM_MM_NOC_BFDCD_CLK_SRC. Add it in now. Fixes: 4c71d6abc4fc ("clk: qcom: Add DT bindings for MSM8939 GCC") Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org Signed-off-by: Bryan O'Donoghue Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/qcom,gcc-msm8939.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/qcom,gcc-msm8939.h b/include/dt-bindings/clock/qcom,gcc-msm8939.h index 0634467c4ce5..2d545ed0d35a 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8939.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8939.h @@ -192,6 +192,7 @@ #define GCC_VENUS0_CORE0_VCODEC0_CLK 183 #define GCC_VENUS0_CORE1_VCODEC0_CLK 184 #define GCC_OXILI_TIMER_CLK 185 +#define SYSTEM_MM_NOC_BFDCD_CLK_SRC 186 /* Indexes for GDSCs */ #define BIMC_GDSC 0 From patchwork Wed May 4 16:38:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12838185 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 79E96C43219 for ; Wed, 4 May 2022 16:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353540AbiEDQmT (ORCPT ); Wed, 4 May 2022 12:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353543AbiEDQmS (ORCPT ); Wed, 4 May 2022 12:42:18 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BDEF2DA85 for ; Wed, 4 May 2022 09:38:41 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id k2so2786728wrd.5 for ; Wed, 04 May 2022 09:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OL4OygVzSjP0XpPxh6rx/xZO5NOzCq2mv5XgMowVSTY=; b=oYyGqRl+RkNxCmu3AtrgJ1epuLShDEh2zKmthdd2zyyjh0ny1iy04eQbZsZ9HsO6Yy 1sOnO4Ey/7rwulblZuqmRNNxaWoFOlsGjv0aFfGS0JOHwMegU264vYleEePMLm0UtTOG y/1rPixgniVaVvQLXB+8XPn1mHuPziFoJU31mIIvF9FhhUcNyrvxzXrkAMx39vJJXBsp HlcgVBs9HyUqZkdhmagWsJqghrLpchIW4aBTynCDA8/PN3X1tEgvYv145QwcurJxn1+9 dX9oSyTLTM617a4RdLfkjYlxFGrN7Vx2JovteDVSj+TSE0UppPjy79DGgOb4OcQo3gEm TwMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OL4OygVzSjP0XpPxh6rx/xZO5NOzCq2mv5XgMowVSTY=; b=h2b8fbF0Ld9j0oUcDdhsPN6lXk3eHbJ6UmjkqZzbBR/sHRRuwvrSWP6lfZy6enWD0g FRcg7UNxREgdsrrlplX92dIgBkWXVHyYCt2qc94knjgw9ou90WIbX8YB+XUZDRLkYS/C /l8ZAkCMGe67K5jYfp7rmXzTyajbZqiLLqIVWhXL3sQACiLQMW4CtAqZlKgUMfut+hIB MPoKHrYRgHvxcoMI7vaMGP5mz5d3LRsrTH7UDcHLSG2bVKrjwJ5xiZn5TYKrd5fvjaCr lR/bno2E9MEnXUzFvY06WSDdiJJFN/4M1rVJzpOTuBrmHGWDmV3ft1jq0fzlCnbLqn2R valg== X-Gm-Message-State: AOAM533a/1KdX072HlTalvNLwAVG0Gen4QSp78lgIMOYmkMJ3WAA1UZi RhR1hkC27Z3YqK+PXxM2emNknQ== X-Google-Smtp-Source: ABdhPJwQdjfgZsZ7V7FETHh2ZyzPmf5rJmM/DrOREnvSlLwPjMdu5PdVgQeoKPRuTaeQgZhKp8bFeA== X-Received: by 2002:adf:ed03:0:b0:20c:4c8b:8e07 with SMTP id a3-20020adfed03000000b0020c4c8b8e07mr16843933wro.423.1651682319843; Wed, 04 May 2022 09:38:39 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r20-20020adfa154000000b0020c5253d8c7sm11671706wrr.19.2022.05.04.09.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 09:38:39 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH 2/4] clk: qcom: add gcc-msm8939: Fix bimc_ddr_clk_src rcgr base address Date: Wed, 4 May 2022 17:38:33 +0100 Message-Id: <20220504163835.40130-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504163835.40130-1-bryan.odonoghue@linaro.org> References: <20220504163835.40130-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Reviewing qcom docs for the 8939 we can see the command rcgr is pointing to the wrong address. bimc_ddr_clk_src_rcgr is @ 0x01832024 not 0x01832004. Fixes: 1664014e4679 ("clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller") Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/gcc-msm8939.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 40c20745a024..49e4bb87c46a 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -634,7 +634,7 @@ static struct clk_rcg2 system_noc_bfdcd_clk_src = { }; static struct clk_rcg2 bimc_ddr_clk_src = { - .cmd_rcgr = 0x32004, + .cmd_rcgr = 0x32024, .hid_width = 5, .parent_map = gcc_xo_gpll0_bimc_map, .clkr.hw.init = &(struct clk_init_data){ From patchwork Wed May 4 16:38:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12838186 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 80370C4321E for ; Wed, 4 May 2022 16:38:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236727AbiEDQmT (ORCPT ); Wed, 4 May 2022 12:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243438AbiEDQmT (ORCPT ); Wed, 4 May 2022 12:42:19 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918BA37BFA for ; Wed, 4 May 2022 09:38:42 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id a14-20020a7bc1ce000000b00393fb52a386so3575561wmj.1 for ; Wed, 04 May 2022 09:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=38ClWEkxwOkXXNm+XYK/eFquNVqFN0ERCueF4DUI9W0=; b=rXhYjCmjf9bhnUdJNozUrqQTYnR4R2fQno55E4cZ+53s1nH0nJaIKPb3zYa44gijnq QriH4xru9Y652IlHoMXQ5qO52z0mvsq9CL9zCpzZS8l6NXtRFyQbFgQ4OZ1HrRSm6HCz fLZxf/bBJjF6KD3TNXtCNYhX/3ywc5QQwHzKywJ4riHEpEPtoI/OMWfkpG/GykFS9WXn 7n+n0+cYaB1O3VEgeOUIwIQb0jgnSAFPqBhFl+20PT99+ir//AZ9QxFOynW5JA9/Qn1f aSqvjWwMz7Pbdma9+rv292sTpfI6CmkMGNrXdBKucNdjVQeq82Bwz7Bz37RvuW75bo34 Bpcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=38ClWEkxwOkXXNm+XYK/eFquNVqFN0ERCueF4DUI9W0=; b=BM19rOl7JEpfcqcqe2MpeYcXBbKqezRMHxVfWoff6J5+/70RteS2mzLYbQazJAQote H9bOl59fNl4nPV8W7skaY4KFyyL6XWNiyNE+yGj1SaYu/bR777/1qzLP9gaRI+S71qXT eQiUC1+NTrdDFSkyGGairK0Zpanku/Z/fT7lPQgfjpY0vzEbYhlRAMTw27v5z8qLWfWQ Y/Puh6NVK0CCAd9b7rvkJJtnIgHz3ANdI7PX7T0TfRcmqsdXPgOqsFFHwDoWVIThd6UA o2HiqaEA6+2YklIbUTvYH6WmBxUG1cTkoi1o+yD7EWWhF00UTJ7vmpdJRbwl7QIHf1rG uwsQ== X-Gm-Message-State: AOAM533Q3fTJu0rrpHfM80eQgUeWAstGWDniFCi0hbI7RrJ1hrEIXOfG mAE1rwoql9cFcVIcXEW3JfNxQw== X-Google-Smtp-Source: ABdhPJzsT6sR1T0E6s0s01EryMt2r91p3wfvrzVRSwtjSqrHfVkFznXo4sK66I+uTUGhOokWM1eJEQ== X-Received: by 2002:a05:600c:3ca3:b0:392:990b:af11 with SMTP id bg35-20020a05600c3ca300b00392990baf11mr204832wmb.173.1651682321181; Wed, 04 May 2022 09:38:41 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r20-20020adfa154000000b0020c5253d8c7sm11671706wrr.19.2022.05.04.09.38.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 09:38:40 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH 3/4] clk: qcom: add gcc-msm8939: Add missing system_mm_noc_bfdcd_clk_src Date: Wed, 4 May 2022 17:38:34 +0100 Message-Id: <20220504163835.40130-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504163835.40130-1-bryan.odonoghue@linaro.org> References: <20220504163835.40130-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The msm8939 has an additional higher operating point for the multi-media peripherals. The higher throughput MM componets operate off of the system-mm noc not the system noc. system_mm_noc_bfdcd_clk_src is the source clock for the higher frequency capable system noc mm. Maximum frequency for the MM SNOC is 400 MHz. Fixes: 1664014e4679 ("clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller") Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/gcc-msm8939.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 49e4bb87c46a..f27e19035c4f 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -646,6 +646,18 @@ static struct clk_rcg2 bimc_ddr_clk_src = { }, }; +static struct clk_rcg2 system_mm_noc_bfdcd_clk_src = { + .cmd_rcgr = 0x2600c, + .hid_width = 5, + .parent_map = gcc_xo_gpll0_gpll6a_map, + .clkr.hw.init = &(struct clk_init_data){ + .name = "system_mm_noc_bfdcd_clk_src", + .parent_data = gcc_xo_gpll0_gpll6a_parent_data, + .num_parents = 3, + .ops = &clk_rcg2_ops, + }, +}; + static const struct freq_tbl ftbl_gcc_camss_ahb_clk[] = { F(40000000, P_GPLL0, 10, 1, 2), F(80000000, P_GPLL0, 10, 0, 0), @@ -3625,6 +3637,7 @@ static struct clk_regmap *gcc_msm8939_clocks[] = { [GPLL2_VOTE] = &gpll2_vote, [PCNOC_BFDCD_CLK_SRC] = &pcnoc_bfdcd_clk_src.clkr, [SYSTEM_NOC_BFDCD_CLK_SRC] = &system_noc_bfdcd_clk_src.clkr, + [SYSTEM_MM_NOC_BFDCD_CLK_SRC] = &system_mm_noc_bfdcd_clk_src.clkr, [CAMSS_AHB_CLK_SRC] = &camss_ahb_clk_src.clkr, [APSS_AHB_CLK_SRC] = &apss_ahb_clk_src.clkr, [CSI0_CLK_SRC] = &csi0_clk_src.clkr, From patchwork Wed May 4 16:38:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12838187 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 2A653C433FE for ; Wed, 4 May 2022 16:38:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353535AbiEDQmV (ORCPT ); Wed, 4 May 2022 12:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353546AbiEDQmU (ORCPT ); Wed, 4 May 2022 12:42:20 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9456C2DA85 for ; Wed, 4 May 2022 09:38:43 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id ay11-20020a05600c1e0b00b0038eb92fa965so3556034wmb.4 for ; Wed, 04 May 2022 09:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=siU+wBqj7fM15r3xqMtrTLdyDG3+rk6lYP4gDSiorCM=; b=B0DKbibSbI7ljdG8oBkHEC/g0wXePf+zk2ObPHs886bF35Qqf/8phpN26C+GHwNoWH B5zMyziOHqNRkc6SyuLl6fnZT4dvpsl6Yd2FHRRSMwu84Kt295b4piOV/yCsicrHGlVu 4SmSuR0YbQInk83UsQHaaqAdzLwYTRNa1S0Q8cbLesTLcUBeyXn7xyPLB3k+5x+SZitL D/RqFvVOsWeqVY942JYZV/DFn8YATN/f54S3kikqfE4HQC4dstEtih82MzMD7p9C1AG9 DTkUNAwN/10H6gdz1wYdxo3NFoLbO8KZrT9oPsD2Ldkk5utYBwW8qasEb7BPQf+foJnQ UhHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=siU+wBqj7fM15r3xqMtrTLdyDG3+rk6lYP4gDSiorCM=; b=O7XiDXe3z02Cf6U9ZtqPlAneWhvmbnXKWLb9hAKrw1+g2+++hn3m8IZbPaceHJKYZd hip/VwehZVFXxy66aXt1fm48F3E0hncnGKe7hUrfx6SPbTiTbHUTWmhIQgbdiBWh70aN 0KfUfv7zydsJF5yiD0fGwklMx/iV2rPLAVcNBanKEz/SQsJQtkC7Mx8MZfOLLY7TSJov gngEuIlv/P4BUIXCZFJ9mGObw3qQk4TmyZdmgi3DwB8q1lfWJFdcJH3X4/N9NAaL9SfB EYWzVWBr1X1TsIgJfdPmNwaYYyEs897GIbEJoS8McutQtOJ5bHZ10TE3gg8ecwAT9wRR LLcA== X-Gm-Message-State: AOAM532hM225cpV35OyaoJO1H/MyaQSJnFiLC7V+hKURNpjYSlTVjxYi QEFd1MZA7xINoPxW1QrDs+ZYBQ== X-Google-Smtp-Source: ABdhPJxNFJXUOQ9ChpPHqwkZYcSRVG3a8L0gyd6JnmKyTzdas4oc9zIkBOxTzohl2v1dWuWc4byK6Q== X-Received: by 2002:a1c:2542:0:b0:38e:b64c:6afb with SMTP id l63-20020a1c2542000000b0038eb64c6afbmr218725wml.65.1651682322115; Wed, 04 May 2022 09:38:42 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r20-20020adfa154000000b0020c5253d8c7sm11671706wrr.19.2022.05.04.09.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 09:38:41 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH 4/4] clk: qcom: add gcc-msm8939: Point MM peripherals to system_mm_noc clock Date: Wed, 4 May 2022 17:38:35 +0100 Message-Id: <20220504163835.40130-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504163835.40130-1-bryan.odonoghue@linaro.org> References: <20220504163835.40130-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Qcom docs indciate the following peripherals operating from System NOC MM not from System NOC clocks. - MDP - VFE - JPEGe - Venus Switch over the relevant parent pointers. Fixes: 1664014e4679 ("clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller") Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/gcc-msm8939.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index f27e19035c4f..c9845cbdde2a 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -2455,7 +2455,7 @@ static struct clk_branch gcc_camss_jpeg_axi_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_camss_jpeg_axi_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -2659,7 +2659,7 @@ static struct clk_branch gcc_camss_vfe_axi_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_camss_vfe_axi_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -2815,7 +2815,7 @@ static struct clk_branch gcc_mdss_axi_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_mdss_axi_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -3207,7 +3207,7 @@ static struct clk_branch gcc_mdp_tbu_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_mdp_tbu_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -3225,7 +3225,7 @@ static struct clk_branch gcc_venus_tbu_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_venus_tbu_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -3243,7 +3243,7 @@ static struct clk_branch gcc_vfe_tbu_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_vfe_tbu_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -3261,7 +3261,7 @@ static struct clk_branch gcc_jpeg_tbu_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_jpeg_tbu_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -3498,7 +3498,7 @@ static struct clk_branch gcc_venus0_axi_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_venus0_axi_clk", .parent_data = &(const struct clk_parent_data){ - .hw = &system_noc_bfdcd_clk_src.clkr.hw, + .hw = &system_mm_noc_bfdcd_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT,