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: 13498895 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 C30824205C 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-f44.google.com with SMTP id a640c23a62f3a-a2345aaeb05so373685766b.0 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=VMPksmB8MGTnAMdzl9ZE12FCtVl+XQbnMLjD+wnL4ppbMbCl5kKaLR2c7cK6ccKd84 ljRthxLHQjUHRXKgjCWpDRPh9TTOWXM5J06t8kIh0my95B9wYbwIdHr4vRGCoA+OVVSx s28zLtyMjaYsq/8sEpwTBw3ZKNBdyH3Ot6ze7dYzNg32O5+ieZla3Q7DQ2xglmTItrbK wJOe6lan87YQdEI9ip885H8eJfGWl9jJ7dSoaLV/lCI0iE0llDNDgV+eQdX7jeLDnTWW Sx9FFgIEv+qmyt2QOaYRhOvd7uTCHMF+wwzhhAlzGvqp7qQfynqZ616mpdG8lOaEIIgy O0Jg== X-Gm-Message-State: AOJu0YyZX4zq9cvlfbPdnXCGOrX/qLK1gExL4sCBrlKCiruaSNCDlXgI Z1G/tUYrXMkE4VhI5TJ3Ov8B+rk4T52+0qXGi+Y= 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-clk@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: 13498896 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 41D0739879 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-f41.google.com with SMTP id 4fb4d7f45d1cf-553338313a0so3632141a12.2 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=P0ccQRg4gp8o4q/7vf90XUldX9PbZNnhVI+cRqH4tqVzo//rtpl1DoZSiEn9gt76L9 7KJFfPr2KvYOYdpTF6W416O8yq+4XEg2iiUuRgHBPsS/Av/gz+Ac8/YzEZ0Y5JTOtBw7 2jd2oImTqgDny0Qr1J9Po2J43Zz/5DzusMmG19QPAUVYs/zgNjHuHfypT1MuEXf3v4AA aoz2MU7TaCc+yA5qmEkVA6v78OYp4rArnu86+UXtGZkNEcgViKh/Ms2sBZG604ozgCwj KM8GzsC8pm0JCn6679P3005OSOsenu/pWDZb7nw4oTELgVed7BEYxVTs8swvvEvqfw6+ C1Vw== X-Gm-Message-State: AOJu0YwZ3QbKh0lEQxwF6EFguYN3WSecjf4kRHu57nyHgrn9stzB6aO0 o+FXJqlL2dOTS0xg5rhmW4EgDQ== 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-clk@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, };