From nobody Wed Oct 8 15:13:48 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 2DDDD2DBF49; Fri, 27 Jun 2025 12:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751026247; cv=none; b=KKdoDxRWcxoV4tjjZvKv2k54WNE7nhgp1046hdwJRVBoY/ad8Xnf+c5eK3KZjpwAa2AyQPhS/NTuSsKop5hmffQhB+T1j6noL8ujIYPerv7x3dC1lkghoBfsqnzC5R7a4+RxIEJAcyccLxckJWNYLp7aYy7u6xp0dNA3Q1BLpdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751026247; c=relaxed/simple; bh=A6fmsinEWLen4l325/JiOd1W2FSS5NRkrUlZh5HTTHw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=ckjw074Su+kJmugnyDsR6oea2oe7ORhpYyzp/FnK4F48DcX720qP1yVWoPsMgajehDSfAf5/NrpTdnxyxsDN1OAe82lv9bfHam8Adhwfr6DjB8c7e8Qx8pUJVo+mn9OnuFqrrFl380mC/SoTkX9aPwJIlsdpLc1aBB6fcGmfEyE= 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=ostb5Azh; arc=none smtp.client-ip=205.220.168.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="ostb5Azh" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55RBVRVY009537; Fri, 27 Jun 2025 12:10:36 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= UExxIFxGp38oXDEuMI5pTQb8sX00ZAIl5IRVblIp4jg=; b=ostb5Azh1XMOgTaL kh15D8SMwVIAyK9MGac/vUUnxVxIc8zUje2rkvtOdz8fOpV6mli8erYKq9D6h9kc yOqHsgRLICARuE5kxV8tACRjliSNaILQUDWPATgryiBO/qCQdsVIipeWrR4ZYvnz LyhkLRMwLgAKek2CTLH/ti8jfCAyFx5BHlS9nmb4K7fZbvlG8NZFDo47nF4f0e71 O9PcBk8F8mRzyy9aL8yjd/9Cf0bMM5ZQWg6/vVKTcqxBZHPW/LfVIeV75daUS4ox B5ltmApZO/XMgasCrG8a0P9JdDx9PAeuPSLiWrXTFbZE3xmrsnskSXtW9QeiBdvT KKnvQg== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47f4b46p85-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Jun 2025 12:10:36 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 55RCAZh8023901 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Jun 2025 12:10:35 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; Fri, 27 Jun 2025 05:10:30 -0700 From: Luo Jie Date: Fri, 27 Jun 2025 20:09:20 +0800 Subject: [PATCH v2 4/8] clock: qcom: gcc-ipq5424: Add gpll0_out_aux clock 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: quoted-printable Message-ID: <20250627-qcom_ipq5424_nsscc-v2-4-8d392f65102a@quicinc.com> References: <20250627-qcom_ipq5424_nsscc-v2-0-8d392f65102a@quicinc.com> In-Reply-To: <20250627-qcom_ipq5424_nsscc-v2-0-8d392f65102a@quicinc.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Georgi Djakov , Philipp Zabel , Richard Cochran , "Konrad Dybcio" , Catalin Marinas , Will Deacon , Anusha Rao CC: , , , , , , , , , , , , Luo Jie X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1751026208; l=1324; i=quic_luoj@quicinc.com; s=20250209; h=from:subject:message-id; bh=A6fmsinEWLen4l325/JiOd1W2FSS5NRkrUlZh5HTTHw=; b=zhUwBB8YmcmiR+NLwrD9Ouq9irkWPj1kK+If8ZzAfZVWXnyLnQ63QSPxQm72bUyTKZqqL4Oji y7RNk1s7QLlDTGnCALCvFvkONXjOtfC6s0owlTZPgqsI4SVZ+DsoBAY X-Developer-Key: i=quic_luoj@quicinc.com; a=ed25519; pk=pzwy8bU5tJZ5UKGTv28n+QOuktaWuriznGmriA9Qkfc= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-Spam-Details-Enc: AW1haW4tMjUwNjI3MDEwMCBTYWx0ZWRfX/GP042RMLxW9 AUYhWpSzqT+0fN6rg91gXrWqClUYgSvZTnLaO09FHaZo19lyrErBrxjIHtq+webaPq2eOFXbBXC xxVmtamohKQzrlLqHGut8tD/Q35DEYcRxof0JVYsLx9Cm6JckTiqRWXfLCD4R5QU0IH1hmL637i UwoZT+bndvOypnENOwz1qq7zPoWnGeR+ttB2jpZhTlexbEr1AJUN9RtjY5Yu5jSXKE0owN8qARR +uQER7NrRsid3uuJrqL+JR1ic1aHffa2qYYebdQw4HxeAx7A4McB2fnMyxXA/DLnfvnMlDsu0cY 2QRdGJoVNDQYwhVn0rQm9nb93S/sVwQSNrHDyCedeKFIyBx9kOG5L6zrOGEBHr3NJVS/lTJUiEz 6ocd20BipRAjSn8MyMs6BwuLeleP3l0W1M1mJEllMO71d77FTKMZDVQlBsXwi8nN6mLis24y X-Proofpoint-ORIG-GUID: IsMzmuyg0c9fqy6bqS48Xx_wXtm6PKWw X-Proofpoint-GUID: IsMzmuyg0c9fqy6bqS48Xx_wXtm6PKWw X-Authority-Analysis: v=2.4 cv=A8BsP7WG c=1 sm=1 tr=0 ts=685e8a3c 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-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-27_04,2025-06-26_05,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 bulkscore=0 phishscore=0 adultscore=0 impostorscore=0 suspectscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506270100 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 =3D { }, }; =20 +static struct clk_alpha_pll_postdiv gpll0_out_aux =3D { + .offset =3D 0x20000, + .regs =3D clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], + .width =3D 4, + .clkr.hw.init =3D &(const struct clk_init_data) { + .name =3D "gpll0_out_aux", + .parent_hws =3D (const struct clk_hw *[]) { + &gpll0.clkr.hw + }, + .num_parents =3D 1, + .ops =3D &clk_alpha_pll_postdiv_ro_ops, + }, +}; + static struct clk_alpha_pll gpll2 =3D { .offset =3D 0x21000, .regs =3D clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA], @@ -2934,6 +2948,7 @@ static struct clk_regmap *gcc_ipq5424_clocks[] =3D { [GPLL2] =3D &gpll2.clkr, [GPLL2_OUT_MAIN] =3D &gpll2_out_main.clkr, [GPLL4] =3D &gpll4.clkr, + [GPLL0_OUT_AUX] =3D &gpll0_out_aux.clkr, }; =20 static const struct qcom_reset_map gcc_ipq5424_resets[] =3D { --=20 2.34.1