From patchwork Tue Jul 12 12:59:17 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: 12914944 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 5797DCCA481 for ; Tue, 12 Jul 2022 12:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbiGLM72 (ORCPT ); Tue, 12 Jul 2022 08:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiGLM72 (ORCPT ); Tue, 12 Jul 2022 08:59:28 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 196E81F2CD for ; Tue, 12 Jul 2022 05:59:27 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id bk26so11035159wrb.11 for ; Tue, 12 Jul 2022 05:59:27 -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=YcLvi+3H4SZDC4Wsi6Jml9K8EcZLIybrbSAvZgpWSqA=; b=dmGcYqbWfgUh+Q1+INrTNsZzRzGhE2fn0s41tXguGC9PkK0FL4oIgSUfFVymKl7RBS m4NtcbRJMJuWfoYr3CbyaLVuJpsP+2vnDZ48mFdA9tMEHvJQZ2hH7jhu7bMFCBtpt9Lv wGQo5Q6zKhANT1yLQYqOQSdoY0zC0QRKcFMMjmDCStRAehvNb4D+/aXzy5GICKPadft1 sYvVEMu3BolHb5rOV/CN4SsgbJYunypTKpwUzQURdSIe7GQPE+2aDCEs8YCvnBbLW7ta ZXGyNbhXc1zEPdiZrQsrLslTEd77+wTRN0x4BZVvpw8Fz0GSZfiPD1t0yjjNB3lYuFTi whNA== 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=YcLvi+3H4SZDC4Wsi6Jml9K8EcZLIybrbSAvZgpWSqA=; b=LY+sa2p8VofaFTdP1C2+RbenFs78/NJhyZdzm+2YpHPiyKj6sboUIseerFLrJtVaCs H4gxUKqZWmBzB53tZh5F6zVSYk51sYCCK979J1y/nkowoiBDtrT4C0veT96cHncgVMj+ UJx2eMnYI6u96mkjw/ANp50jRaSImSzYa5XpctVwFoRovM9o04826vDVdKg0Fmcc1gfa aetG9bNYWEuZDLl52jYqK7FTOsbU8gmLkTnNTmljD2xRoOoO6QinW2hKxmJ3P1RYOWyz Dpm/vEBGGvKadiEZtdGmJycL1ZmbV9ZlitoIhKdnnNpvFomxkktR4RCu0ivMHFvZ+KnK jR3w== X-Gm-Message-State: AJIora82xjJP5uaSTTp7nNHKTHE5tTcB0iZc38eBdbFoAPvWPSKp0TO5 EhxLiGkUGB8yeoHiCyvBSef5sQ== X-Google-Smtp-Source: AGRyM1sk2ydtTGiAIm2ysjC3FJO4ph1CqAj/xRQPAVIZmuTklOKE/MQhoamv2UhmdjFnZnBKb7/VzA== X-Received: by 2002:a5d:69c9:0:b0:21d:6427:f553 with SMTP id s9-20020a5d69c9000000b0021d6427f553mr22567022wrw.257.1657630765679; Tue, 12 Jul 2022 05:59:25 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:25 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 1/6] clk: qcom: gcc-msm8939: Fix weird field spacing in ftbl_gcc_camss_cci_clk Date: Tue, 12 Jul 2022 13:59:17 +0100 Message-Id: <20220712125922.3461675-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Adding a new item to this frequency table I see the existing indentation is incorrect. Fixes: 1664014e4679 ("clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller") Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- 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 39ebb443ae3d5..628b476a5468e 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1002,7 +1002,7 @@ static struct clk_rcg2 blsp1_uart2_apps_clk_src = { }; static const struct freq_tbl ftbl_gcc_camss_cci_clk[] = { - F(19200000, P_XO, 1, 0, 0), + F(19200000, P_XO, 1, 0, 0), { } }; From patchwork Tue Jul 12 12:59:18 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: 12914945 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 45376C43334 for ; Tue, 12 Jul 2022 12:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiGLM72 (ORCPT ); Tue, 12 Jul 2022 08:59:28 -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 06F3E1EEDC for ; Tue, 12 Jul 2022 05:59:28 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id bi22-20020a05600c3d9600b003a04de22ab6so4765863wmb.1 for ; Tue, 12 Jul 2022 05:59:27 -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=tGmubJfrLjSm9JAoHZslmLyGxIMnq3hUIjCR/6pycIU=; b=lwu+sDij0oIDTBVhhUHAe05XQQ8hnVhOQsUf6sjeqHka24pCYDWZy8dJbO5Qyrs0WW y2jG8po5NMLC22R7hpmwoQ4B8a4LkffHViNYIhi7t54aMbc4MYjBwM4RF73pJB5fx+CU IgfxEHtJ7SMgv0eJeTBCE7BBnZwcBNeQArUTM5upkoaj3t84/56CdoqNrmMqAvUOkZm3 RVtOiBGSs3zZt8a7Er1aQBa1VwxlHwHd1N/dlFrB1BSUjnbea9+oE7nPk42JqE4a7faH mavJgJyNTIlmYoXXIUvyB1IZ05qd/yW+K/IqRrZAuDzAawDiUgztpHhya/Yj7MKJsmag Q18w== 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=tGmubJfrLjSm9JAoHZslmLyGxIMnq3hUIjCR/6pycIU=; b=xnF8V1zw0GWJCthn3EDtJoGAmsmJlLNmUCVskk6kW5J/ZQ+AWLm5ILKsNc+mpJuRtN y3DLx/N5+hyPQpPAjMujsaTGuWFgElchAGntUwKqPC6yTdSpq/wLmE8D+BjMymZgMedv w8xColyXDI4EnrzKYpmNoORO05a+6yuhDQkEy4QrabMDd0+l0jLeaUbboSDJfuUA9jHG mMCau0OJw+gEIOkSnNNme9uGv+29nss2hr+D2/XvjKVua61CWeOhomcBqx/eRhyXcetN A9FMwEl3wGU0tPRjQ/txOZopSYevWJrcsI4rFaXRd+QG+y8HFo83pwOSfGQB9a9MGsWu eu7Q== X-Gm-Message-State: AJIora9SCJh7qtdIlFbRIblHMXxGFURh/t49n2WcmLllQDTO6j8OJOvh lmfNYAh/6LKr2VIlIJMvNpWn25zz5tnfIQ== X-Google-Smtp-Source: AGRyM1vuRmWtPxdlVOsiZ6Wbb3SfvMFi6r5RJsyUjzWdnsFZ/RdnTmnLB5wnE0oYoX5PBeqVajWpGg== X-Received: by 2002:a05:600c:2059:b0:3a2:e5a4:ef8 with SMTP id p25-20020a05600c205900b003a2e5a40ef8mr3605632wmg.146.1657630766594; Tue, 12 Jul 2022 05:59:26 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:26 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 2/6] clk: qcom: gcc-msm8939: Add missing CAMSS CCI bus clock Date: Tue, 12 Jul 2022 13:59:18 +0100 Message-Id: <20220712125922.3461675-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Standard CCI bus clock clocks are 19.2 MHz and 37.5 MHz. We already define the 19.2 MHz but are missing the 37.5 MHz. See qcom kernel drivers/clk/qcom/clock-gcc-8936.c::ftbl_gcc_camss_cci_clk[] Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8939.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 628b476a5468e..6a3e2326c72a3 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1003,6 +1003,7 @@ static struct clk_rcg2 blsp1_uart2_apps_clk_src = { static const struct freq_tbl ftbl_gcc_camss_cci_clk[] = { F(19200000, P_XO, 1, 0, 0), + F(37500000, P_GPLL0, 1, 3, 64), { } }; From patchwork Tue Jul 12 12:59:19 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: 12914946 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 B710DC43334 for ; Tue, 12 Jul 2022 12:59:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbiGLM7b (ORCPT ); Tue, 12 Jul 2022 08:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ACEB11476 for ; Tue, 12 Jul 2022 05:59:29 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id r14so11091953wrg.1 for ; Tue, 12 Jul 2022 05:59:28 -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=hg0/yrt/f4Age9reiCr+uEvd+Uow8vVWrrE7vxpr1RA=; b=BGSdqaqj8skqRbN8hvHX4NvNkyuVeJ4xn1BFHQkCJ7Gqsou2f6SXxgnrJF6NlsOBO6 QeBsFREm5EeIQLubjqp6lAamnV3NY1UBUjyyjZaxfyUo4e1WYth7hRwjh5vQpcV87jGt 6I0mH9/BvBsGWLXwA594n/93xWYyinE6qy1C0JFY2p/Qch1ImcDweqRaZysR1j54K1MZ Ybfxnhw7fEO0uek6DGGwncmwGmV9AwfUNj4JSU/sGHg38XbJJ89RUZCRZZ+MO69RqOwm Pvu8bx3pYbfgjDsrpT2IdP4+QWoK6qkH+wqK/mUMS6OP8P8U3f1+EU0mIMk6NFGf0RPD xDdQ== 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=hg0/yrt/f4Age9reiCr+uEvd+Uow8vVWrrE7vxpr1RA=; b=nJwgFfixlsM17NaJmvJF3epp9bLxRlHXPrvYdDzpUWzDmXF7L5vOBsWuYQRah+mZrv eHNxD2Gehh87Pm5YcsAeaG3BUCL5Ok/OwQmpU9IslIJ+yylmQurdQwt1UPL4h9CmJXpx 64KB/6llviht0owTWxk8pz90d5rXfynAVSr5ymiiSwNE3/F5+8ugv25Hgx8WVSqTol/U nOLFS+FAzDl2fvkA1cWgqB86aIGz6wAVQchN0cwVZw8T5SjmpMBRUf/f7zyiKjWA4rfR blVslKERLzBbefCojVa8kQwroOt+1z9SvUBSBvyWqgI1h3VHo0NoK6RqVtJzaJXL/o+b KrOQ== X-Gm-Message-State: AJIora9YP0YeKmnEml/DbEjVimVCuNIyRGHLw15t3QL7N8FjYfgcA2Zn /Kqe+CV73QdT8BxOyP3WomC8Wg== X-Google-Smtp-Source: AGRyM1t93dgV0ssjHFM7oe8VbwlLpLzhQjtKZ9t309aqkm0TcEioSg+fmCuwNnn7cspM8ZLRFNBZ1A== X-Received: by 2002:adf:f5c7:0:b0:21d:7f20:7508 with SMTP id k7-20020adff5c7000000b0021d7f207508mr21894020wrp.458.1657630767655; Tue, 12 Jul 2022 05:59:27 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:27 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 3/6] clk: qcom: gcc-msm8939: Fix venus0_vcodec0_clk frequency definitions Date: Tue, 12 Jul 2022 13:59:19 +0100 Message-Id: <20220712125922.3461675-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Venus clock frequencies are a copy/paste error from msm8916. Looking at the original clock-gcc-8936.c ftbl_gcc_venus0_vcodec0_clk defines we have: - 133 MHz - 200 MHz - 266 MHz These values are born out by the relevant qualcomm documentation for the msm8936/msm8939 Venus core performance levels. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8939.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 6a3e2326c72a3..2aad40dbef8e6 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1824,9 +1824,9 @@ static struct clk_branch gcc_ultaudio_pcnoc_sway_clk = { }; static const struct freq_tbl ftbl_gcc_venus0_vcodec0_clk[] = { - F(100000000, P_GPLL0, 8, 0, 0), - F(160000000, P_GPLL0, 5, 0, 0), - F(228570000, P_GPLL0, 3.5, 0, 0), + F(133330000, P_GPLL0, 6, 0, 0), + F(200000000, P_GPLL0, 4, 0, 0), + F(266670000, P_GPLL0, 3, 0, 0), { } }; From patchwork Tue Jul 12 12:59:20 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: 12914947 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 6B96ECCA47C for ; Tue, 12 Jul 2022 12:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbiGLM7d (ORCPT ); Tue, 12 Jul 2022 08:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiGLM7b (ORCPT ); Tue, 12 Jul 2022 08:59:31 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5521FCC3 for ; Tue, 12 Jul 2022 05:59:30 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id d13-20020a05600c34cd00b003a2dc1cf0b4so4755942wmq.4 for ; Tue, 12 Jul 2022 05:59:30 -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=kkxbV+B3WMd1DjIBRGBdfeKS/OGxhVXxBNkoeXI2Csg=; b=hd5Uv+ajhaia4dX9kaMuT98yejbkOs1267PkX6pTLNmlDK7dZGbB6vz5Ha4WkZZbUB /hIeCZUqM/aXtIEIW4MZafp4JCPiuni4B2VqZiJDgU4qO8Gw+w/tz6+GkfShs4/J8/34 EqWRFQohnYWl4WwnvSNvhFQ1M3tq0hCUMW+kmxRdMjJ6ZI1NWNYVvKctvK6vkoxluhon wAzs8XAqLROrLjoNkMHx6ARKvXFkSx3nz3D+xCVBlc/xkR43Lo0Ad14aLXo/ydmP9RGy 3IibfvOlHA+hp3taO21ZtM4faU2IYrREteRwH7awEROq1zl4HnDRYPFjilyCIuucgo5P aA/w== 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=kkxbV+B3WMd1DjIBRGBdfeKS/OGxhVXxBNkoeXI2Csg=; b=3DARzqpJu86B7mJCtoLO3b6uVtI7sWovB8+FrVepwHwXe7U+kCbhNPs34KgZV6G7cf v0gps/Qp+SEMz2YuCXzhSzj1QXDPfbeAZfJaRYa7rdxaGnm8c04zXJsNyxBh7Hdp0Wky PE4OPGzyWAjdVCS8EzITsuqZZB8tr5FXej9FAWuhjGWl00Qa+IJgAu64ZmmHW1QQ/6Wx gx0anYkhSldspn1G+6OA9yt5+KZvfXbDJW/5Cvu3IGFojbaDdodcE7Uohv2Ev/O5wH+4 7EKmJryQMgeOYXM829u+sTArhAjbbZtBYq4nuA2JLZ/o4UPpAXv79I/DuHce9HqEDOMf /KWQ== X-Gm-Message-State: AJIora9bJv++Ov9xCDLBQ1M8n+bZTDnOz5diTxNdZ2XD9bqYxNvAh0v7 NOUYEn4Kgjgrszgzrv/fJ43LDw== X-Google-Smtp-Source: AGRyM1sOQSR3am676eEoCEdB1bNSJYq6CdQ5WMVQtI254AIGAbRQC5U42AGfvJBCQzgbGVhbXvFQTA== X-Received: by 2002:a05:600c:1908:b0:3a0:bfaa:38c with SMTP id j8-20020a05600c190800b003a0bfaa038cmr3812855wmq.130.1657630768706; Tue, 12 Jul 2022 05:59:28 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:28 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 4/6] clk: qcom: gcc-msm8939: Add missing CAMSS CPP clock frequencies Date: Tue, 12 Jul 2022 13:59:20 +0100 Message-Id: <20220712125922.3461675-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Reviewing the qcom msm8936.c clock frequency tables we see static struct clk_freq_tbl ftbl_gcc_camss_cpp_clk[] = { F( 160000000, gpll0_out_main, 5, 0, 0), F( 200000000, gpll0_out_main, 4, 0, 0), F( 228570000, gpll0_out_main, 3.5, 0, 0), F( 266670000, gpll0_out_main, 3, 0, 0), F( 320000000, gpll0_out_main, 2.5, 0, 0), F( 465000000, gpll2_out_main, 2, 0, 0), F_END }; which is a super-set of the msm8916 original definitions. Add in the missing frequency definitions now. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8939.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 2aad40dbef8e6..6b265b68524f2 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1143,6 +1143,9 @@ static struct clk_rcg2 csi1phytimer_clk_src = { static const struct freq_tbl ftbl_gcc_camss_cpp_clk[] = { F(160000000, P_GPLL0, 5, 0, 0), + F(200000000, P_GPLL0, 4, 0, 0), + F(228570000, P_GPLL0, 3.5, 0, 0), + F(266670000, P_GPLL0, 3, 0, 0), F(320000000, P_GPLL0, 2.5, 0, 0), F(465000000, P_GPLL2, 2, 0, 0), { } From patchwork Tue Jul 12 12:59:21 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: 12914948 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 0E819CCA483 for ; Tue, 12 Jul 2022 12:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbiGLM7e (ORCPT ); Tue, 12 Jul 2022 08:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbiGLM7c (ORCPT ); Tue, 12 Jul 2022 08:59:32 -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 0EADE1EC63 for ; Tue, 12 Jul 2022 05:59:31 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id r14so11092076wrg.1 for ; Tue, 12 Jul 2022 05:59:30 -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=i+V89geLiLXzM5+1YTX4/D4u8ztE0W1UgBm1oX1c/M4=; b=Ic87ot/UqTL7gdD2xPXQJ7rG1601hBJJKdtd7twMd+EWAugAw0Y8nHfI8FtjaEZaPj a0Cap9gHOCw/lFuLdwlvUZjlLfbZ+wH2kLwHuuqtP4RV7lfMIL0NAV2ZlpxGetQu1Ce0 BTTQXu8bB5Yyac2KMAkdX27ENJa48Hm3x5gXaYcbIo9Cocisgt3Nnd8vJI1DVzV0fBfU sf2BVWAG2zeETSrfSro8WRe3tPqjDrYJsGXu4vD0uPJWqWOWp3ntVFMAB+5YvIBD+Hnk 8h1KUnVL+1vDg9jiG6UQg54hl3szcjrGMWyLeEQA0N8avqX3dGbx/0rd2G+uUiSGzmPx f1GQ== 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=i+V89geLiLXzM5+1YTX4/D4u8ztE0W1UgBm1oX1c/M4=; b=QIdJ5EE/hW1SzbfFSwV23cMNMubN1dmgyptaAX1eWWAIIgUUoFkxJhUsdKcJiPOCYe X0uqb8oIShAp2ATCfjwEZje/eyRx7dMem0muPshRx8toORBvRt4L7vwB87JVAmdlSsoH W+Rl+SukD5V18GSfjiEpMzWg8oXNNL2mI8YPr8FGQtBxDcbaDfCewqMm+yBtVhW+GHvE fyPqbhvRfGXrHnVe/CppBp/e32rWx/RMYkBxGATWC4jLttLJTv00HlkFTIjzcljHVR4P 6kp4tJtJWwAHF14O3+ppmRNw17UZgzsoufMxbuHft343CyXhrfMgepEyb/MlSJSKU75v MbLg== X-Gm-Message-State: AJIora9PVEbzMfErvBmIZe1KAbNBMRPBFKr2LjmbWlTG0TVA0dsmdrhG qYWX3pHrvMdZ50v58sz6LlEuOw== X-Google-Smtp-Source: AGRyM1vgT8JeJj7PH7ZsY80tk5QjJT0bNzi4XS3L43fl5eeObVK0xDsORjtbC+yu1OHT6P7DpHJZhA== X-Received: by 2002:a05:6000:1567:b0:21d:abdb:29e1 with SMTP id 7-20020a056000156700b0021dabdb29e1mr7452177wrz.36.1657630769671; Tue, 12 Jul 2022 05:59:29 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:29 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 5/6] clk: qcom: gcc-msm8939: Add missing MDSS MDP clock frequencies Date: Tue, 12 Jul 2022 13:59:21 +0100 Message-Id: <20220712125922.3461675-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Again the msm8936/msm8939 supports a wider range of operating frequencies to the antecedent msm8916 from which the msm8939.c driver is derived. static struct clk_freq_tbl ftbl_gcc_mdss_mdp_clk[] = { F( 50000000, gpll0_out_aux, 16, 0, 0), F( 80000000, gpll0_out_aux, 10, 0, 0), F( 100000000, gpll0_out_aux, 8, 0, 0), F( 145500000, gpll0_out_aux, 5.5, 0, 0), F( 153600000, gpll1_out_main, 4, 0, 0), F( 160000000, gpll0_out_aux, 5, 0, 0), F( 177780000, gpll0_out_aux, 4.5, 0, 0), F( 200000000, gpll0_out_aux, 4, 0, 0), F( 266670000, gpll0_out_aux, 3, 0, 0), F( 307200000, gpll1_out_main, 2, 0, 0), F( 366670000, gpll3_out_aux, 3, 0, 0), F_END }; We are missing 145.5 MHz and 153.6 MHz. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8939.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 6b265b68524f2..7f71491d52c4b 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1294,6 +1294,8 @@ static const struct freq_tbl ftbl_gcc_mdss_mdp_clk[] = { F(50000000, P_GPLL0_AUX, 16, 0, 0), F(80000000, P_GPLL0_AUX, 10, 0, 0), F(100000000, P_GPLL0_AUX, 8, 0, 0), + F(145500000, P_GPLL0_AUX, 5.5, 0, 0), + F(153600000, P_GPLL0, 4, 0, 0), F(160000000, P_GPLL0_AUX, 5, 0, 0), F(177780000, P_GPLL0_AUX, 4.5, 0, 0), F(200000000, P_GPLL0_AUX, 4, 0, 0), From patchwork Tue Jul 12 12:59:22 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: 12914949 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 942D4CCA482 for ; Tue, 12 Jul 2022 12:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231731AbiGLM7e (ORCPT ); Tue, 12 Jul 2022 08:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbiGLM7d (ORCPT ); Tue, 12 Jul 2022 08:59:33 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2401A20F55 for ; Tue, 12 Jul 2022 05:59:32 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id h17so11113746wrx.0 for ; Tue, 12 Jul 2022 05:59:32 -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=yS4aszlD6wfaJXkFTxX6G5kce/Ags3GTvPz2INj0vkA=; b=UtgpWScOPK7ulWYKExX2Qx9TQNSVmYi0q0KDI8/sVm3ASbTAMqcfHrtlRs990t4y+h XM/fntk0QB3Bb+zaUnAZQvKcxryXHvT11aOocDHsC+nvnkNfh4PVLK34/qMv+RrozEyU tBF2bz0PdodHsLRBZkOjfxSJybvznPt552YmFU7nGv6AWU1GaQegj1yoaPvyDFC4fZzE 8rhSsy4v+8p2nPWGnt1b8X9c4nNAvj2yj6j7vrFltMbTSvuO/gtHxc5ntYM5jpIH8rnt a8JS2JkHTJFcYQTc2BtnqCsMaiZ+yRBwCd2Wp5i1t4F5xGNci8H2g2Qt4F/Kk49N45+i uo+A== 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=yS4aszlD6wfaJXkFTxX6G5kce/Ags3GTvPz2INj0vkA=; b=Y8ct2JWdBbDEK25883/Mzx4HjrB6AbrXO+wDcqnL7Bgox6fUbFAdKsqAFVgRWPafPw 5tgdYC5IrzIvZmJXQHjAQHE6djp7cjWs4hMhnweRmRL5t5GlSU7RrMhsXKz8XFKiBM4A LWfY97yiL2RBpXuoT5rK6WOvemYAe/zFKSYEAbHfHhJDyRfgnhQtesHRTrWPcp5auZ71 rSAF7t5PFVQCCbcRKA6DAPwNNGh4Ho+l0vIaMp0hnkdDAKLY5J64QOVLK3fJfhSsTXg5 hiSoXDHE+/Md2SvpXlUG/D0Ip0tO476XZNogGwrGjea39IVd19tqSc6+R9uJSJGh9Gi+ 6xfw== X-Gm-Message-State: AJIora+e3vigw9hEDfbu4uHv9WVn4yAIJEXwB4bm0wkeZjbSyWzKh5Fu WkuzU+wpdY3FxGHo24K/28HLVkRjhlpeMw== X-Google-Smtp-Source: AGRyM1u3GMRPvrLIVNDWN96Q8Wkz0b8cZSpRfZWd35w1BmXUjX2DQ+HSF8WSSV36pxXN0vvN+Id6Gw== X-Received: by 2002:a5d:4584:0:b0:21d:62f5:c2da with SMTP id p4-20020a5d4584000000b0021d62f5c2damr22706157wrq.671.1657630770741; Tue, 12 Jul 2022 05:59:30 -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 t123-20020a1c4681000000b003973c54bd69sm13008627wma.1.2022.07.12.05.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 05:59:30 -0700 (PDT) From: Bryan O'Donoghue To: bjorn.andersson@linaro.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH 6/6] clk: qcom: gcc-msm8939: Add missing USB HS system clock frequencies Date: Tue, 12 Jul 2022 13:59:22 +0100 Message-Id: <20220712125922.3461675-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> References: <20220712125922.3461675-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The shipped qcom driver defines: static struct clk_freq_tbl ftbl_gcc_usb_hs_system_clk[] = { F( 57140000, gpll0_out_main, 14, 0, 0), F( 80000000, gpll0_out_main, 10, 0, 0), F( 100000000, gpll0_out_main, 8, 0, 0), F_END }; In the upstream code we omit 57.14 MHz and 100 MHz. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8939.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 7f71491d52c4b..754d5573b1df5 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -1468,7 +1468,9 @@ static struct clk_rcg2 bimc_gpu_clk_src = { }; static const struct freq_tbl ftbl_gcc_usb_hs_system_clk[] = { + F(57140000, P_GPLL0, 14, 0, 0), F(80000000, P_GPLL0, 10, 0, 0), + F(100000000, P_GPLL0, 8, 0, 0), { } };