From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 633F5356750 for ; Fri, 3 Jul 2026 05:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783055063; cv=none; b=SyQG/yz9Ix71tRa1Alji8n72dIRXpe/5ilLeLnFSTBArSHlGkvX1VSaa933Mc1rmNTxf/Q3NB5SeE3sMbz7u6FgoP/uQtBPtjr3TE9GLT7YmB9EURAeIjIQ/aUVBMhj/qRBW78yljBfhLPgvV7aOJre7do7ZdJuK9tnF3OMKiYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783055063; c=relaxed/simple; bh=Jbc5uj854sndNrqzn6Bi+XLo5qBoc8WY2oE4nLn0mT0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=arUDTaseTujlcv9AaNqAGrxEZC4gqbv9DPu22W0lWHYfsEoOOBGpQFIu3p99z0wjqckBnOnIOkCA92r8geD549yCr8HY5bfj9uxsL+deNHPtfMnvqKGIgJ3Kk2CChhng2ud6EpGU/6mSmuvbIUPRBTDoVgHMRKCaz3Jiljt4Rwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=MADlUf4F; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=guCDs/9e; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="MADlUf4F"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="guCDs/9e" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 663432062816930 for ; Fri, 3 Jul 2026 05:04:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6xcwjRKiYI998QkOOLYdQDedV/7nqediu6mn7AwWDYY=; b=MADlUf4F/3mNR9Og BLa6LyXPg5UK+Cp++72Ro7VPdeSJJmwmUezHRLdDxeyE7FZMstbk6yHjcs/OUC3+ 8y1FL/wV+0+A9FVXQmk39sed8MLKkX44vz6jJ7B1n4kzml64WmZ2hYECBxyz5t89 FarKMPgFxueww3fA6Wt5m/Hc+XnYaAK3kdLERvWgRDV+LmVw3no4Kxy/naf2kL2O mrQR1ZCpJcshZi1pELBFOoV4Hv7HJj5o7JNp2Ca0ekh9JMW0xOmZbmuH12X6XP3+ wEOpqEFs8HsnCOBWBCBH6sn+nRjoNAods7dgNEwfQcsXMm70gwlbfHxOBHZPTPXo 3ovHmw== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5qnpbjpg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 05:04:05 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c88da04b719so164268a12.2 for ; Thu, 02 Jul 2026 22:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783055045; x=1783659845; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6xcwjRKiYI998QkOOLYdQDedV/7nqediu6mn7AwWDYY=; b=guCDs/9etssFs/psewTaOjQ3r9RpGFkSWxJwYTlrhNmKaHdacMjGtpAqAJkA1L19TQ WEPyq5bJV5k6iC2XgqPoQsP7GlzNyF+Aj2sn2oXH7+zy6pVGGAukEGefkktUKpOs6CZx 7R9PdTJnrWEvqtFg88UBXernkKdsoSmURZymaUxhTLXn1fsn07epLpXtd0POaajkQIio fACDEXAs0q3nFrYPVLf+B1camZKL2dxgoORvYPuefLBbHLYxP5nmFr1y+zUqcJhDSUNO OeYq78Ixi5WYp8sqq+a1rVn5lxJS+hgyK50dNsyo/7427+S+uIzaV0s7aYWuZ8CsA1vi QLKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783055045; x=1783659845; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6xcwjRKiYI998QkOOLYdQDedV/7nqediu6mn7AwWDYY=; b=sxqbJW/2k6Y8NrZ0dwsjBL2mh0q1+7aIwJF4fs9pxgiG+kqlmtbbxT4u/nBkIFilVu TRYi0YOkhGgE+duFezlR5uEeKyqqxOFuXh3rf4nAv75pj57p1y/DyBi84JcH9uAWRket pxmdYLWouA5CAOIaGD9uKtqzWlzOy+ypeywH2ElcX71LVWYIJalZyUQ1kd9nvXqZ9wa3 aLvBKl5+s5VI4OJKuRaNgNlyQiEHMzQxDZJerWNLkR6E/X+PRaiV/H9iLodNBmxN/9+e w3/nDSW/y1rJQctIkx3pvyFxfafe0htLVBT1rYcI9A0rteL/Let0V71nMIXaGf+jTt7i 0lkw== X-Forwarded-Encrypted: i=1; AFNElJ9d8qb0OWSGkn/l+qv2XJOQ7tK/tJy/mp97H4EBlHyOEznHjtDHcaergJdEvVOHglQ+w6EngeaAf09nhgk=@vger.kernel.org X-Gm-Message-State: AOJu0YzVBLZfSWGQ+1dFSyCLqtptxIDvsuxAob69mfZ4qsj8p/e+tamq fFaUUnAGKDvavKUi+c0juTnsSDWBuhBOgoCjTezGOot/fdeH/qAiSDLMTDcwWGLiIiSydj5wtz0 cQRDIgvKt3ipEEEfnkLwlgagshEQKGoyNywpVl8lNpWbQrsrxIet6HS/3Q9XQELTexo8= X-Gm-Gg: AfdE7ckwm6QcAF5QcuqoZRxAZIraTEWouqEXyWI+APTfciqTDv+I50IEGShqOOqkf0k v4CRN+NsWw3osJl6O/Zsf3qZwZDWFqmxPhE1lhqmnab6ZrMKztHC9Ze19LDCXgkcGpBoP8buIA1 tRk0O0mDZgAIWc7bKcgCFjL96giJKKyuj1tL62qz0mDZ46xEIYiut0nzdZz/dP2YDv7EmdWKTr2 nv7aAJ/n87THkk1VL6AoTVrF9CMwzGFSAtveRqu3uSnWY3hAMcPDIjc/dDTjkMcPFjwG5oqF0YK z9lIxBqGt6Je267hMrGn0hAHev8e+FHh2qhRYmDxKyXcLFj20EFsVkFaDl5/UUw4zN0vmvxCB2e hNHbD3Z992replz59aAXFo0rCFmK6bWxjVf9BtHrT775gBZiF28JVSoogqFEAXx29CiOp3vcNFr LQGT+jKAJv4cr1cFkVaBIp5I3L+qV2qOh6j2oLPA1j X-Received: by 2002:a05:6a20:918e:b0:3bf:6c08:2b2b with SMTP id adf61e73a8af0-3bff42d5dd3mr9848886637.51.1783055044696; Thu, 02 Jul 2026 22:04:04 -0700 (PDT) X-Received: by 2002:a05:6a20:918e:b0:3bf:6c08:2b2b with SMTP id adf61e73a8af0-3bff42d5dd3mr9848855637.51.1783055044181; Thu, 02 Jul 2026 22:04:04 -0700 (PDT) Received: from hu-varada-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30f0b7b9873sm16109674eec.4.2026.07.02.22.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 22:04:03 -0700 (PDT) From: Varadarajan Narayanan Date: Fri, 03 Jul 2026 10:33:48 +0530 Subject: [PATCH v3 2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support 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: <20260703-apss-clk-v3-2-4785e89a9c58@oss.qualcomm.com> References: <20260703-apss-clk-v3-0-4785e89a9c58@oss.qualcomm.com> In-Reply-To: <20260703-apss-clk-v3-0-4785e89a9c58@oss.qualcomm.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Varadarajan Narayanan , Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfX9RP+e2ZTG5EX FOz2O5VED6YZ+pFNRkCyt4zOOmCYK9pRRFVG30h8eLFXh72eCTfR22yFrS2lUi+O7LcimQSeENt IOio6MjNNVgs25+tGzxjMT5/PpWxdYI= X-Authority-Analysis: v=2.4 cv=FoI1OWrq c=1 sm=1 tr=0 ts=6a4742c5 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=94KMMKG3cFIHHFi95eYA:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfXwGiiN/B3UBFs h4l5DFzvoCYjLKBKZ9LQV8rMGW0eqXVX7jhzU6H+zWwucjPIYu/qlKYHqA4BnUIqk+DG9l0R9Xp Nptxw4T7s3R5hCK8QdAQKOVkh/u8OxgGKqtMMMxETepzMfErdCMIVYOMtbE8t3ks1qEyFzFXh96 HBV3rw4c74wUh5iJ6zehHNVYDUYhwXg78k5px7aAFWl4jMVJ+7p+VnsQoZSNu8oxpjHipzZ0tWi tdeZsS1C1nkhiNUzy/knBxiRW0EOY7hOlX6q3cc40r9pNK3TLgFPAdCPnSxcdZ4z7AbB7ETh2dw urrb789WOs8IvFY5CHlYEvnjq0lib7iAfDWgEUFzubGRTrdRyIwNIk9k+V/bDqeUY0Xc2CycSX2 7EduKiVfY7xK14bOem0lCsl7zRjygQKXX/oZcjgvD75R78muSXkyPgq1kfkFLOcQpM11CPIjycl W8G96YG1A5WCKD5u8sg== X-Proofpoint-ORIG-GUID: NVha_x1UR0x7-UfrYvHcEC-eQfpKcV7_ X-Proofpoint-GUID: NVha_x1UR0x7-UfrYvHcEC-eQfpKcV7_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_01,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030045 The Application Processor Subsystem on the IPQ5210 platform sources its clock from the Huayra PLL. Add the configuration data necessary to set it up. Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Signed-off-by: Varadarajan Narayanan --- drivers/clk/qcom/apss-ipq-pll.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index 3a8987fe7008..5653bb5e93f7 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -79,6 +79,18 @@ static const struct alpha_pll_config ipq5018_pll_config = { .test_ctl_hi_val = 0x00400003, }; +static const struct alpha_pll_config ipq5210_pll_config = { + .l = 0x22, + .config_ctl_val = 0x4001075b, + .config_ctl_hi_val = 0x6, + .early_output_mask = BIT(3), + .aux2_output_mask = BIT(2), + .aux_output_mask = BIT(1), + .main_output_mask = BIT(0), + .test_ctl_val = 0x0, + .test_ctl_hi_val = 0x400003, +}; + /* 1.080 GHz configuration */ static const struct alpha_pll_config ipq5332_pll_config = { .l = 0x2d, @@ -140,6 +152,12 @@ static const struct apss_pll_data ipq5018_pll_data = { .pll_config = &ipq5018_pll_config, }; +static const struct apss_pll_data ipq5210_pll_data = { + .pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA, + .pll = &ipq_pll_huayra, + .pll_config = &ipq5210_pll_config, +}; + static const struct apss_pll_data ipq5332_pll_data = { .pll_type = CLK_ALPHA_PLL_TYPE_STROMER_PLUS, .pll = &ipq_pll_stromer_plus, @@ -207,6 +225,7 @@ static int apss_ipq_pll_probe(struct platform_device *pdev) static const struct of_device_id apss_ipq_pll_match_table[] = { { .compatible = "qcom,ipq5018-a53pll", .data = &ipq5018_pll_data }, + { .compatible = "qcom,ipq5210-a53pll", .data = &ipq5210_pll_data }, { .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data }, { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data }, { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data }, -- 2.34.1