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: 12914951 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 EB9D8C433EF for ; Tue, 12 Jul 2022 12:59:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbiGLM72 (ORCPT ); Tue, 12 Jul 2022 08:59:28 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7A71FCC3 for ; Tue, 12 Jul 2022 05:59:27 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id q9so11063631wrd.8 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=DkQArcDjUG1nvMZlkH6dg79zP8uaXI9+JKqN7Bf5iVhOZubxV5Q4jcEaoAJ3fdwj9y 5zBLijlB5mq5Prs6Hmujk7PoxTbajs1an+komqumxTUIesGYcnAZgSsnXcJiKHPuu2kd pNPF403oolCU+DKmUJL/2FwrvniaiPJzRXcBO1Trn1JzBeocFBL/DfrEDeAheNN4+JKt j/5DKlCZKDCuBhr/6BvYfvbo7s0GHAgrtiaYmy3M2MbKn0MmSRu4J1d3vqRf0M5PJor6 cUtaxrh0LdSAIsqPrwNH/53CzJaXdE90HGimb5QGEJOLvdirdrqN/eissxGeJuN3odnO OduA== X-Gm-Message-State: AJIora/0Q/mIK7w3k36kDIygr3XIlALym7Wv8kl7TvEl+Gpbf4hxW2Ii kT9XIMxd/9j6EfOcBVYFtJsWNQ== 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-clk@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: 12914952 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 5A06BCCA482 for ; Tue, 12 Jul 2022 12:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231342AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08CA61FCE1 for ; Tue, 12 Jul 2022 05:59:28 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so4754627wmb.5 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=dgfxRgH28yCB2Ee62MsV9g38zHzW9jq5w7BA5+qgqwmKhuMW9ITPjXs0d68q+m3b/r rjg53YC/S1knq2ATxxfLlvYuqIyszMlai8M5ovbL7r+zqk7atveH9PzBnSLJrE8mcspG r1+Ihaymd32Ia6UdeBVL4dZM52gLwG5EkSVSK59czkW3Y6u/cJAc2fUN08htHJd6LGRg oNYBqZKU1UpL7d7RKFRCwWqMpCIWSKqkjDoPUOnLZbgKC/LUy7h+5F/SUbLSwzkS72nh ZBHPXBDyK0WPtnqD1cBbwkNNOyR/PpPM6eK5YeYyMQCyBjSM1UxCTt0O/A5/HgiAdAIB 2oYQ== X-Gm-Message-State: AJIora9pVI+uUeY/ot982vZc4oK9bVTfWrUZmOVFdJ7RSQjPEykqV8cx ggUl6Zg4U9ut6sM6wxbuk5Fp0g== 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-clk@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: 12914953 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 EA7BDC433EF for ; Tue, 12 Jul 2022 12:59:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbiGLM7b (ORCPT ); Tue, 12 Jul 2022 08:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiGLM73 (ORCPT ); Tue, 12 Jul 2022 08:59:29 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CEBE1EC63 for ; Tue, 12 Jul 2022 05:59:29 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id d16so11036772wrv.10 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=3dNPyVcMGYASxBszPji3C2l4fVrKvlzrQMR29xSLnkCyNmOuXA430P3NHSiUd29L28 GGo1+Qoo/GABqUqwJ1/eLRRDjDBD5fww8s4j13uk66PQ8rhjRgryP+Dni/xkG0ulrQSh TPQBuVVJ/WmcGym7SRh1TjcRAvC3aR7jFDVVT0X9v0Y5zKo6uiycCf/Bg2U0vPxE+LEL vXc1Xj0EXO8vgYGieV8fPptFQyjQU49zfH6vsSKZOGTVeUjhhbvxmUFSxQoATEiU2Q8G yRX+0W310hMdgRHYm2Fsy3rMG0ETvpB0nhrMw9ypRKaE+Cycdr/DtUHTHW2WK02KdtIn phKQ== X-Gm-Message-State: AJIora+a2OgLBT2UkR9x2aMbeD2cToCpYVUJBLuZ+oxBexdmn8gqk2a7 qhEg6VS/ufapgzTBLWr+5geK3A== 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-clk@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: 12914954 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 43535CCA481 for ; Tue, 12 Jul 2022 12:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbiGLM7d (ORCPT ); Tue, 12 Jul 2022 08:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbiGLM7b (ORCPT ); Tue, 12 Jul 2022 08:59:31 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 281441F2CD for ; Tue, 12 Jul 2022 05:59:30 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l22-20020a05600c4f1600b003a2e10c8cdeso733963wmq.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=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=tvQ9CZIjiRKCNGcK62zc/KB5Rl13OFq1vD8s1lJu2FgsjILaYc/b8xU1nKHAuqe1sl hV2uhVWpLu6CGBRGBAe1HENAn2bW4oW8PYg8i/UGXrIUu441a5Q/7+Z2nyEepAmcvQCB MpaFaUbFjfwK4iSZW/qT0PS6nkACAbt83GJxOGNPQO8ghDrRSOpz1bF6C7/HhsUap5hC ouLSGjiTQtO5mwClZahFvuThyjBd1gma0PtWOTX8KmQbEVlnyjEqfd65zwelGicdlU/O VO/SbfOec7MF07d1C7J9xbub8Fx8MwkgwsyhnOcorVAJAn987ppaFymPj8Du8D7hk0JA ePeg== X-Gm-Message-State: AJIora9r26GO/mJbm2YHujFtFHfLjXMj+ZsF/zOY15ff3kUEIs3oVXso C5eH4YHNt7OwBGoI6Ai9/+qoyg== 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-clk@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: 12914955 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 DC985C433EF for ; Tue, 12 Jul 2022 12:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231249AbiGLM7e (ORCPT ); Tue, 12 Jul 2022 08:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbiGLM7c (ORCPT ); Tue, 12 Jul 2022 08:59:32 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EB561FCE1 for ; Tue, 12 Jul 2022 05:59:31 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id f2so11051155wrr.6 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=ow1xiijva99FqXJ04FAiLM5AhlAZoZA1A/cKbNorUfOFEBlurBiXWK6k+TSCI0vroM BQjOWTuknQwxcpbB1+YbSjJpMMXtTh+1NNalkbtwOnwKdorSKr6Roflx6afYFHGIQpi4 UIcZt7p+psCSozkprC5c0Pp0luqnD7rJfk9PKJx4V+5o5nYyAf+GRH0frXd0spIN0Z0N UsSw4fw0spUJn2aXoXC2qRi9mG4loBpN65YOJPf5HRvO4DhfEwiFhbL0D2/RvzbaowON MhoLS38O2p1K8OoV5wSSuxPodNGUAfs4ZbsG4My5Ixy7rQGn/bG2e1IX110RYS9MLg1X NuuA== X-Gm-Message-State: AJIora/fRjdMh4QIkKSWesmUCorxep6ATHHn27c8sH9R+8DrSFbhpPLI F8kbiuxDfYfYmSfI3gYvzhLGKA== 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-clk@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: 12914956 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 7F02FC43334 for ; Tue, 12 Jul 2022 12:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231857AbiGLM7e (ORCPT ); Tue, 12 Jul 2022 08:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiGLM7c (ORCPT ); Tue, 12 Jul 2022 08:59:32 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 228371FCEA for ; Tue, 12 Jul 2022 05:59:31 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id d16so11036955wrv.10 for ; Tue, 12 Jul 2022 05:59:31 -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=FXDKDWjyJFSdd4+aNP+xOvUo+057/R/6cin8WFTvAHC07hRixnAGy0yYzXIyiOxfjN cxdpC+o25i5mtMEzYTRJnYKAOloeuO43IB29zuRiUktMXpni6Vzw30p19PdOnszZ8ljY 44S4KfETrKfbQY9pMvI1T3QDVMxZcaiZybBOo2TVfLEBcmCsYxDDWgy0AhOIRPrJrxSN 8aqOL9GvR2qhUVczwcHoVB4Bg5ii9x1rRVVPFEhntHCaRqxKmR3vEymfPd9kRQeWnUaT 1DyMds5XI+46xxt7rIOxR65g+6E4YxzESCbuQXEWzwcrPTdhTH34/joJL+6n/wmm4MQz zGaA== X-Gm-Message-State: AJIora+i+nrS2Q13ae2PHkQ9LELaNeiv3CJ6fstNzXX5VUOvk76mdRuU dZCPcBL/Hsi/9zcRXoR+4c0mCg== 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-clk@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), { } };