From patchwork Tue Jun 17 12:06:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luo Jie X-Patchwork-Id: 897408 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 3EA962D9EDE; Tue, 17 Jun 2025 12:07:18 +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=1750162041; cv=none; b=F0xPpOyQwyO2wo5O210PtrNTNa87GG56T9eUOl9pZcS9KOPql3hj87p7jktDgGB1DgZJKfkQeKUBOjfR3ACVsJdIyQPmslHC6Ul6L710gK/5uI/fDA1zdfF1GJp8g/2fTzBn83Gv8Psm7yjtimhl0XpIEkQlEIod0Ok8LlJSiBk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750162041; c=relaxed/simple; bh=rVxUYZt30JbUgTHiydiH4HS5PHlIBURdEyNy60h1YkY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=GDorhF4ErdCQar90RDlCjB4z+aw5zAENcDYaIzsbEjAXqsoIdfeXEOZbJTuZ4EOZkg/r/gSN+nKm7jhze4zhhhk6H1sL6JnXiYmtajtjvuIOnq4VHAfeZoCMtM9srHPKZDT66nUeT1QLWqHhNkZBdUL/5pIWTD8AbflCVJuinDg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jkhD6iKi; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jkhD6iKi" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55H7IOoQ022048; Tue, 17 Jun 2025 12:07:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 52DetiHDy+EEyofP7eCcDOEDmNxtXnUpHp9Zmo4Im6Y=; b=jkhD6iKiP4hJ3Ipe OP99G+sokXV6z9ZdTmeM4lw6byTiYJQoYZlEgwiY25bdxUpTDdvgWKE8ABbV1toF j6pZEjDLhf2Q6kXZari+hj9SCW5lEy+Il26SntCg2YH2vuhD5P+6uCzQzkftVN4n YQ6+QnNvUVRrm66b/0ukCB4JsP9+b+b0Rao5lMfa7hMbSst/rKjNsvfIgJ+q/+z6 ljHpRNx1CnnyO411LQh7ufYH230ekiVgE/2ROkfyw6d5nmEAaZthw1doXCogLkNt M4snTiJuNf63imnHWyyctji9GCGilwpSootYkZt+2z9A/iF249vJXJbPfA65cRvi EuMbng== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4791eng55t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jun 2025 12:07:07 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 55HC76Lc011556 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jun 2025 12:07:06 GMT Received: from nsssdc-sh01-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Jun 2025 05:07:01 -0700 From: Luo Jie Date: Tue, 17 Jun 2025 20:06:35 +0800 Subject: [PATCH 4/8] clock: qcom: gcc-ipq5424: Add gpll0_out_aux clock Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250617-qcom_ipq5424_nsscc-v1-4-4dc2d6b3cdfc@quicinc.com> References: <20250617-qcom_ipq5424_nsscc-v1-0-4dc2d6b3cdfc@quicinc.com> In-Reply-To: <20250617-qcom_ipq5424_nsscc-v1-0-4dc2d6b3cdfc@quicinc.com> To: Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Philipp Zabel , Anusha Rao , "Richard Cochran" , Konrad Dybcio , Catalin Marinas , Will Deacon CC: , , , , , , , , , , , , Luo Jie X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1750161999; l=1324; i=quic_luoj@quicinc.com; s=20250209; h=from:subject:message-id; bh=rVxUYZt30JbUgTHiydiH4HS5PHlIBURdEyNy60h1YkY=; b=eTmnGV1ItdAeCnt8BLu5cd7D6Z3D/cXvgVZSYEF29eqGF92rBq0B7al46uK2bpWjW5HBrSMzX w9WlkKcfRQsDMgitkF6nanpq41yWWULCPi9ySs2qyKeXZXEpwcmqiCD X-Developer-Key: i=quic_luoj@quicinc.com; a=ed25519; pk=pzwy8bU5tJZ5UKGTv28n+QOuktaWuriznGmriA9Qkfc= X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: rq7dwFXoby_aPxP_PrxZ_evQQ9KHBYtv X-Authority-Analysis: v=2.4 cv=D6RHKuRj c=1 sm=1 tr=0 ts=68515a6b cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=COk6AnOGAAAA:8 a=PgHBclK_Yek0rHWKhOgA:9 a=QEXdDO2ut3YA:10 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: rq7dwFXoby_aPxP_PrxZ_evQQ9KHBYtv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjE3MDA5NiBTYWx0ZWRfXzfcO3bvRDurB pAlP+OGRSoogFTiQgNxUpXiCBZtu77aCnbGkS0N7FtaFnVbTj+fqm0oTPFGC3mdbSXSEweL1IVh KzxDCpTUM3Qr8PMYM1Q9fltESJUWPhBdjWqI6Irfges7ZAjgH/oUPPW91GA0xB8PH8Pxe0vZMNp tFIBGZ0ger24EwH2TJA1ATb976tdT7CEgZ8CVI9rpYFKbzjat0IYhKQMLRrrru6c2RWPKIa5vii 5K7IOiBRdECaZpX4oGjDqPbNZqG+mw0cu9MY1Xec5JBYVkMIG+kfBVtJleg1RcBB1pbBfA29Zm8 BB8NtosuRXjAG2LmJ8IMPFS8qw/DOuD/MzvfE83XPVkL+J6zDG4sIZTEXmf/AjCPg+wNIW3ee65 LL5F1kQ018ssOTa/5AOTfujPVJkuI0OJ1QLBdwrkkATuO/9nUFokx3qJzmeUqOoUM0x2TeBG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-17_05,2025-06-13_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 mlxscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506170096 The clock gpll0_out_aux acts as the parent clock for some of the NSS (Network Subsystem) clocks. Signed-off-by: Luo Jie --- drivers/clk/qcom/gcc-ipq5424.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq5424.c b/drivers/clk/qcom/gcc-ipq5424.c index 3a01cb277cac..370e2e775044 100644 --- a/drivers/clk/qcom/gcc-ipq5424.c +++ b/drivers/clk/qcom/gcc-ipq5424.c @@ -79,6 +79,20 @@ static struct clk_fixed_factor gpll0_div2 = { }, }; +static struct clk_alpha_pll_postdiv gpll0_out_aux = { + .offset = 0x20000, + .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], + .width = 4, + .clkr.hw.init = &(const struct clk_init_data) { + .name = "gpll0_out_aux", + .parent_hws = (const struct clk_hw *[]) { + &gpll0.clkr.hw + }, + .num_parents = 1, + .ops = &clk_alpha_pll_postdiv_ro_ops, + }, +}; + static struct clk_alpha_pll gpll2 = { .offset = 0x21000, .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA], @@ -2934,6 +2948,7 @@ static struct clk_regmap *gcc_ipq5424_clocks[] = { [GPLL2] = &gpll2.clkr, [GPLL2_OUT_MAIN] = &gpll2_out_main.clkr, [GPLL4] = &gpll4.clkr, + [GPLL0_OUT_AUX] = &gpll0_out_aux.clkr, }; static const struct qcom_reset_map gcc_ipq5424_resets[] = {