From patchwork Tue Dec 19 18:55:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 756033 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFCA242060 for ; Tue, 19 Dec 2023 18:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lLIHBAwo" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a2371eae8f1so154563766b.1 for ; Tue, 19 Dec 2023 10:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703012138; x=1703616938; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=TQ/+As38lBMQtKK/25P8oClZ2C8RlF3hTQrClvYzXCI=; b=lLIHBAwoMPizOZ8obpKbyp4S0JlMX2F3GCU8IzzWlLIMyHs424eM8zFFrLJuvFBYdk eTr1SxUYXPO520tFHcvhbWKzca8m/uQexOjMjPwR+R/8cUdSSsHISxbx71mmIWTB+GL0 UI636C5VAE/dyHfdP4c20pcQRpKXV14z2tgRpXpesNGPIQRAAP9bX4SCbr9393KoZv7J 5c7NLNCNDYK2CAkj+lrinswlQqhshVeE0jXOG7Zfw+s8rl/Y2wexkLW5f2SRlPPOs3zu UtAxG38P02guL11bQk6/VLyiCjJGPPizNTQ+20HMQaxjerQndkNrom3+E8vybGIhs8/g 5BhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703012138; x=1703616938; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TQ/+As38lBMQtKK/25P8oClZ2C8RlF3hTQrClvYzXCI=; b=u6dHMfkKL4bDLycJ+yUGKFjM0JSehGfhe5B1noNPbzSABBZKnLjyXzEw2Q2j/jIsFq ye5tGkIFvGpjkdo5CQNOeHLLh7rtmgOIU0+l998KguEmusAJEMzsC94ukQX93kIYWwNZ fA2dg2Aqx4Ed3vRHXoebbHTDUYhQcpnDzLJOCPGtDB7hr8jl0MRh5M8jSQRSqMAQgITU A8G0w6Xfk5XBBpS5h1c4vvhIR25tntUHsUkOy8B1rkdy93M+xHkHXWfgYlfhcvckqcQq e6vHsUwne/Xdc47NRsGVpbx79TjVHRIC1FbMuxrlvEZl6wZxoPJuOcB9sHVDpWazgsYD f5ow== X-Gm-Message-State: AOJu0YybYRZgJWj4YOmyqGmax/V12hi9D0QBFD7M2nY+o0eENjm+TU6c 5AWnQYDfkanmIAxr7ooHKC9TTg== X-Google-Smtp-Source: AGHT+IGJdlHDraSmyW3JwxaKxJ4FufE/5bHNi+0YdZj9tDuxrhSrMPeJfF5k8KBJwCooVCoWldAx7Q== X-Received: by 2002:a17:906:207:b0:a22:faec:7d30 with SMTP id 7-20020a170906020700b00a22faec7d30mr5893136ejd.118.1703012138172; Tue, 19 Dec 2023 10:55:38 -0800 (PST) Received: from [10.167.154.1] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id i11-20020a170906250b00b00a233a4c4a30sm3782036ejb.90.2023.12.19.10.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 10:55:37 -0800 (PST) From: Konrad Dybcio Date: Tue, 19 Dec 2023 19:55:32 +0100 Subject: [PATCH 1/2] clk: qcom: gpucc-sm8650: Add test_ctl parameters to PLL config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231219-topic-8650_clks-v1-1-5672bfa0eb05@linaro.org> References: <20231219-topic-8650_clks-v1-0-5672bfa0eb05@linaro.org> In-Reply-To: <20231219-topic-8650_clks-v1-0-5672bfa0eb05@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Neil Armstrong Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703012135; l=1040; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=zp+MxlirxZfTXZcMa6Fu/HzTuCmSGvfkPNhTYEzcqFg=; b=1/rs3+CvYSQP7zIJMC0zR6ci2MufS9LgIUcL1e1f3xNZDzrxA0LPTn1a4zmcsUWutvEs/L3K1 KJ2sH1dhTKfCIr4za4tsO8OmnQRy8mNy5xlxti0Iy8E9wYRuZQHUXdT X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= These values were missing. Add them. Fixes: 8676fd4f3874 ("clk: qcom: add the SM8650 GPU Clock Controller driver") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gpucc-sm8650.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gpucc-sm8650.c b/drivers/clk/qcom/gpucc-sm8650.c index 5ae494e17ee4..03307e482aca 100644 --- a/drivers/clk/qcom/gpucc-sm8650.c +++ b/drivers/clk/qcom/gpucc-sm8650.c @@ -50,6 +50,7 @@ static const struct alpha_pll_config gpu_cc_pll0_config = { .test_ctl_val = 0x00000000, .test_ctl_hi_val = 0x00000003, .test_ctl_hi1_val = 0x00009000, + .test_ctl_hi2_val = 0x00000034, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000005, }; @@ -80,6 +81,7 @@ static const struct alpha_pll_config gpu_cc_pll1_config = { .test_ctl_val = 0x00000000, .test_ctl_hi_val = 0x00000003, .test_ctl_hi1_val = 0x00009000, + .test_ctl_hi2_val = 0x00000034, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000005, }; From patchwork Tue Dec 19 18:55:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 757188 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3536239846 for ; Tue, 19 Dec 2023 18:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i5hwe3Fl" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5534d8fcf7bso3311912a12.3 for ; Tue, 19 Dec 2023 10:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703012139; x=1703616939; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sx/GnrdS4dyv/oxcSjAAXc9AeJJcpwJg6SELK7zCR5E=; b=i5hwe3Flkguy1U07C+lPdsG24w3T2lWmLQ3OhEbXkrBgy3IdcfnfQsLFOmugszaNk1 fG6CAVMr7j13pxoJxQzgTzYrrP/+uy9/3KZt+iUPfY9QqDYNggYGbXRoTQ4gWZZYw2ie cuoVl8zNH+GuFyqb1OxCoReeWFr8BElXhNYCUasgabNnHuB0ymDzGgF0Ig/cgU1R2Vhy 79RvmLvaTheNhgtzbs/55A6YPR93bD0qLvXWCMxrr1XF+i665GKeGNVaoS9z50ZsNLJc B0gmSPa3+YeJ0Q+rUC2Pr2YMh/C3RiJ900BoK5gtCAB9NLDJkoDXZX02ulCVB0YpeSRl LqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703012139; x=1703616939; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sx/GnrdS4dyv/oxcSjAAXc9AeJJcpwJg6SELK7zCR5E=; b=NcADW2JEL41FOPQv8WqcHh9F+COvS64UHHG/KzHrOgK8OHEPND6S07ST++jUz8mT0i cTmi5ZpaH4nl03M1YIdg0HfLXEsZ78wdzDPrH+8lIYdU/li9bbahdOcMR1rZYFhLX8Yj OMlF8jaNNxO80PlVFeZl2gE8qBu8kEmJ0IGESYsVBl+TnpGXKXw3VQxBKyhVtsfhOtQR UNbOJ/NPhj2NMByakdXnoiW3u6RoOMIPF4B7LpnmEAK1JN1fYzm6GKu9demhGvgPqZ0S T2gnK/RraSxwUW/IYbrE1//ebtiF7W+HN/aYZjTdgZHbZYbubJj73GJfy4dayksBVRPb 2Lgg== X-Gm-Message-State: AOJu0YyXtewa2/8dQnFnA/OOlRpjMN8xSiK3+C2GThckNeGLp50N6hyM 5ZkEBmN9ifDKpb0zgPz1RdjBXg== X-Google-Smtp-Source: AGHT+IGvBKwl5CArxKIygFyA0dmoXWOBQYn2WjmPLmwiuwUeqxqzA1CsCbgkn3250M0WQB92aFplmg== X-Received: by 2002:a17:907:7416:b0:a23:397c:faef with SMTP id gj22-20020a170907741600b00a23397cfaefmr1819685ejc.121.1703012139666; Tue, 19 Dec 2023 10:55:39 -0800 (PST) Received: from [10.167.154.1] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id i11-20020a170906250b00b00a233a4c4a30sm3782036ejb.90.2023.12.19.10.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 10:55:39 -0800 (PST) From: Konrad Dybcio Date: Tue, 19 Dec 2023 19:55:33 +0100 Subject: [PATCH 2/2] clk: qcom: dispcc-sm8650: Add test_ctl parameters to PLL config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231219-topic-8650_clks-v1-2-5672bfa0eb05@linaro.org> References: <20231219-topic-8650_clks-v1-0-5672bfa0eb05@linaro.org> In-Reply-To: <20231219-topic-8650_clks-v1-0-5672bfa0eb05@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Neil Armstrong Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703012135; l=1273; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=d7fTpCN4ELYmAt8UhLatNQ/qPqyouKJJXysPr29VFl0=; b=8O8AGQiz0WxOOgxa7fj9mAdAH4cucKoA9J7GY+kydWFn/ORlgixUqp4DgkgF45Zches7/P2WI JI9Qn0MW3G0BflhUAbFNCKIr37Rkbvohz2aZCx1gzn8bwT2Ngv7Ri/a X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= These values were missing. Add them. Fixes: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/dispcc-sm8650.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index 6283099faf57..f3b1d9d16bae 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -79,6 +79,10 @@ static const struct alpha_pll_config disp_cc_pll0_config = { .config_ctl_val = 0x20485699, .config_ctl_hi_val = 0x00182261, .config_ctl_hi1_val = 0x82aa299c, + .test_ctl_val = 0x00000000, + .test_ctl_hi_val = 0x00000003, + .test_ctl_hi1_val = 0x00009000, + .test_ctl_hi2_val = 0x00000034, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000005, }; @@ -106,6 +110,10 @@ static const struct alpha_pll_config disp_cc_pll1_config = { .config_ctl_val = 0x20485699, .config_ctl_hi_val = 0x00182261, .config_ctl_hi1_val = 0x82aa299c, + .test_ctl_val = 0x00000000, + .test_ctl_hi_val = 0x00000003, + .test_ctl_hi1_val = 0x00009000, + .test_ctl_hi2_val = 0x00000034, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000005, };