Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3332043lqp; Tue, 26 Mar 2024 06:34:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbrCCF/0sEGj3x2NG7T6o1t5R16vMXuII6dzh9Edx+0Ejl+7TeRxGe2L6xZzmrgTeiBuKMirG5eTaw0nWcyQEPULSwTq0TiLTjIDLfDA== X-Google-Smtp-Source: AGHT+IFT3liuJ4MT6eH0RZBzSLIOxvvncnLXcixK1XmjNMhVtk2ysDqwEhpl3go6KkKIpjbfPwIl X-Received: by 2002:a17:90a:f30d:b0:29b:96ab:28ea with SMTP id ca13-20020a17090af30d00b0029b96ab28eamr1205603pjb.5.1711460074481; Tue, 26 Mar 2024 06:34:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711460074; cv=pass; d=google.com; s=arc-20160816; b=iqdDYOzvu4d1wzCEDjYx3xbeR3RqT+yEls93CcceeNi/qxl2PLtUS7CQ9ZNlVk4Czq /DXlGVgw/dXoUGmS0uUeVGDAIaj2l4My9iLk45o7AGzkZrPi1DDfSOb6OL6A4ZAlkUDu hIXmdooAbGaQYy4oghOhNLp1pXoW6Ma52vc7uh7dFnA3xMyIeRJI2/WCQk/4C52ACTdw QNOW0CUiVjCH94EBpPLmcRpuDm/I4/k6FVX1P8EAVs8zf+6+JZLLmpSTXiM3tJQhAl6a qmeHH1ea2/T9iS74OWkTVDWzFy4TpdPELVFGDDRlAG1anm8eQrRFqKbRaFAqKDHodE9a Wmbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=MS1VY+YyK3WfAN9Fvb2/BOf2p6kWCOG3l21nlXYxAzI=; fh=VcWfJh8IL3KAqe4ozzL8M3yxh1vlChikowqj6S8tLT4=; b=OU0DVGFr4ID6f2APhOdoh8G2Spis0kplwrDOJPyt5Tt30L4wVzhxl8iTN6DfrYAI6C BvaWenxZe/ltGNIfjzn0CGRn6eDnuUPup99PVxzkIc25JEOzqzfD64gmGsI81hwuhJHZ 4V4rEBrn99PLkuhdZZBpSvX6wTc8VAlwAV36O6B08nWFpW/RrwQD/W2E6jVhfVTmq1M+ NSpKx6H5Sr0ZsKB7wgDBuMR59WgUwB7LqgLr5A0Kfb9UtKSpBxC/HW6cCsy0r1q51Pn6 1tltCRUKiZygEeIiBEvzWjAVmZCfDCS7S7YfLKE/VmtAaEusdfj8qL3rTxS4m7atiYO4 SHow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PfaoiGYF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119061-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id il3-20020a17090b164300b002a091cf9649si288397pjb.146.2024.03.26.06.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 06:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119061-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PfaoiGYF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119061-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 13B8A2E164A for ; Tue, 26 Mar 2024 13:34:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 507B574BF8; Tue, 26 Mar 2024 13:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PfaoiGYF" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 D80F24F890; Tue, 26 Mar 2024 13:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711460066; cv=none; b=qbRsI/H5xdDphLRKvrClTSVBqbP8J4w8bykVYefWeG02V2BQteXzB3Lu9yPmLFgpfMXWfP06WSP2CvrlLBemcak6aNAUK/mgg5yPXPIIwSX4rxsdsQYrOapv6jkVS7C/bwBNbFhU8Jk27bgjrlGQ0gwkTfNW28RMh21mmyFx8rA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711460066; c=relaxed/simple; bh=FT1vX791HGO7aKS9G/ZPDGT71wZoKwZ8shUH9nLTTLA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=hZ67qxBtMXY46N+nqyU3aHkqkPTuY+A0BcEE7rH/wCKlY/LJpwi66cem0IujPczC+TWWORVTF1p7YCl2s7+PTKMAnd7fr5PEHHIULvRrYaT5ReOR5Sj+5IUZN1w/BciW+GBo6DSdBQM6hMZvKTGv+4d91j6VtD2mQKM6m3Gc+ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PfaoiGYF; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-56c147205b9so3233067a12.0; Tue, 26 Mar 2024 06:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711460063; x=1712064863; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=MS1VY+YyK3WfAN9Fvb2/BOf2p6kWCOG3l21nlXYxAzI=; b=PfaoiGYFivPQ5McUPl2bIEb1FFTrR0Xydo15KMAsbPO3zvP6vIIEIz/iuRGDKXahzA vZY+LoyNpXf6agVXa+JGQxDNKy5oQxL1obrqjJnfVAkfF0iJDAWGlXoISesMKrHqvy5Y JIW9KMIx7TwvitwarLnFbm8n/NCAY/qmTA538GSpNBz+6oSPbZ0S2R2AFYTc5mSTUV1x hzYPuNxG34n3fTMkrQGtO/1Osn6DH08mr1hA6VpS4tobbg1BgLbLhj5FONNKU4mYeaOS ev3tXtItWrAPG4qEO0Jeb02dR3tPr9U8TvHTvI3VQdeqFSOx6vX4WEKNAKNmMLeEQD9Q SPeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711460063; x=1712064863; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MS1VY+YyK3WfAN9Fvb2/BOf2p6kWCOG3l21nlXYxAzI=; b=JJdD+T1rKaQlvyldVY7jWd425Ne5cHraKRZtEbSJUc/6g0y0jckFRuPRx03bkWt+bL /pWxJ3BnnpL3z4lRwMNgl8LBNhRYi/1Heq/yL2PgazzoflTURpwIQOnZrtG06jx8+/i7 uxOQ/cLqd93Q+hoSq6/sZLCeRnHjK9SGdsIaJD/Bt/HVh9BDmCUwRGgxuaVhr9b8Evh4 2SHcxptSk1VQ7SF4S3+y5oBOTXwx50GkaDc9Bo9hTwj7tppeE/SDV5wby+3yYn4VNf8Y 1iOFQiN+rW6S+/WksMG9QnxnSX3cdWxhsbc1c4MrfIWbLEfDL6aOH6jH86tfclCMX1Cp j1LA== X-Forwarded-Encrypted: i=1; AJvYcCUsgH1tUhK1o+W8H09tWP9DwWx/aEY90P7GvenMwJPDMluozcycvKGjqjnmk0h3vuy4JtRtHtpPF6F7j1w2rd85ek9YDRq7+0moFPYcrguWCC6COUeJVRbT+9CIoKOU0wOfNh2DXwQs X-Gm-Message-State: AOJu0Yzlo8xR/JF8yoUMTikictvPN27TlG+SFcnig858fyGFnGB1fxwb 0GuHf3/no+qtdFSzQBJUgHFRR0tZoVyr2sPH20CwUMD4dKp8WH16 X-Received: by 2002:a50:9ec3:0:b0:568:c6d5:e13a with SMTP id a61-20020a509ec3000000b00568c6d5e13amr1351788edf.15.1711460062735; Tue, 26 Mar 2024 06:34:22 -0700 (PDT) Received: from [192.168.1.253] (57657817.catv.pool.telekom.hu. [87.101.120.23]) by smtp.googlemail.com with ESMTPSA id bc5-20020a056402204500b0056c3048e64esm134184edb.70.2024.03.26.06.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 06:34:22 -0700 (PDT) From: Gabor Juhos Date: Tue, 26 Mar 2024 14:34:11 +0100 Subject: [PATCH] clk: qcom: apss-ipq-pll: fix PLL rate for IPQ5018 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240326-fix-ipq5018-apss-pll-rate-v1-1-82ab31c9da7e@gmail.com> X-B4-Tracking: v=1; b=H4sIANLOAmYC/x2MWwqAIBAArxL73YLag+gq0YfmWgtR5kYE0d2TP gdm5gGhxCTQFw8kulh43zLosoBpsdtMyD4zGGVqVZkWA9/I8WiU7tBGEYzrismehIF8ZV2jnZ4 M5D4myvL/Hsb3/QAZtxYsawAAAA== To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Sricharan Ramabadhran , Gokul Sriram Palanisamy , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Gabor Juhos X-Mailer: b4 0.13.0 According to ipq5018.dtsi, the maximum supported rate by the CPU is 1.008 GHz on the IPQ5018 platform, however the current configuration of the PLL results in 1.2 GHz rate. Change the 'L' value in the PLL configuration to limit the rate to 1.008 GHz. The downstream kernel also uses the same value [1]. Also add a comment to indicate the desired frequency. [1] https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4/drivers/clk/qcom/apss-ipq5018.c?ref_type=heads#L151 Fixes: 50492f929486 ("clk: qcom: apss-ipq-pll: add support for IPQ5018") Signed-off-by: Gabor Juhos --- Based on v6.9-rc1. Note: The change is independent from the "clk: qcom: apss-ipq-pll: various cleanups" series posted earlier [2]. [2] https://lore.kernel.org/r/20240326-apss-ipq-pll-cleanup-v3-0-15c4aeeb14ac@gmail.com --- drivers/clk/qcom/apss-ipq-pll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index 678b805f13d45..5e3da5558f4e0 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -73,8 +73,9 @@ static struct clk_alpha_pll ipq_pll_stromer_plus = { }, }; +/* 1.008 GHz configuration */ static const struct alpha_pll_config ipq5018_pll_config = { - .l = 0x32, + .l = 0x2a, .config_ctl_val = 0x4001075b, .config_ctl_hi_val = 0x304, .main_output_mask = BIT(0), --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240326-fix-ipq5018-apss-pll-rate-fed3ab51b1c2 Best regards, -- Gabor Juhos