From nobody Tue Apr 7 10:40:44 2026 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 14F2034DCFC for ; Sat, 14 Mar 2026 05:06:41 +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=1773464803; cv=none; b=ihUCDNczhCjFGxfTNLzuLIRxs8rzPZQU9LuaqUCRBwxf9T+fMU8IlFbgvWPCjcan8jTaouus5v9QkACtz51kkaspIetymQnPS67QSOETr5Ns5ixhmEsRqQEYuVF1h9Ujn69b/7OKnVVYBdQCGr8uFmhAS5kaK9rCoN1ja6yv4Q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773464803; c=relaxed/simple; bh=IVjh89FIIzBpn3dl7OjquZS51tzBcHBvRQOGqFTKPeo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fprk6S0ObQAk/Orymr8uYR5BCmetPzmADdD6XG9iiuUT4Fe3CXykhWa1iLW2P0VhxAAc5c/bCl4zJzZuoLlm8SxOBzw2cgGPsms1W62jG9h4xI8x9+iO99JyyPv9d4tep8f2qem7DFnf3PNntig8Tdv2QSVOlF/V2zN9f/wA32o= 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=lQZjx5vx; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Hu8td0Al; arc=none smtp.client-ip=205.220.168.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="lQZjx5vx"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Hu8td0Al" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62E4dldk4128408 for ; Sat, 14 Mar 2026 05:06:41 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= 8AwSPheloTpUNoYn+5istaBSV5cxl2twt/OKxdGnStw=; b=lQZjx5vxbYVo39sE onPIbuvqFzbOqPXIoeXfPDeYECu9wpVTh4xxCTsf8qWcfX4Whyo+xnkiW1w0LGwk wASaA+DtyVWs5P1wG1/7O3Fq+1F3bXVgu80r9X6ael1P/CFLjbYZ+FZig8thtMUF iW4DhUbw+XYoZda0cZMkFlujPNWnuCO95+A/oCEyisTFdqy5tPt0MWdmCwg9WpLE M9XryWuabgUlANBQXWJzYZyjRK6Nj128lzcAyLugC0hX2c0VW/dRU7Wo+sPa4dCG z7VW7d/9/xMjq7COZ8lcLEMnTDsjNA0gELleRbhzv+wLfivdANSo62uG9eeUaTrr m958pQ== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cw0udg19v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 14 Mar 2026 05:06:41 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8cd7fc27cf7so1541103985a.1 for ; Fri, 13 Mar 2026 22:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773464800; x=1774069600; 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=8AwSPheloTpUNoYn+5istaBSV5cxl2twt/OKxdGnStw=; b=Hu8td0Alcsr5Ay6JrMiVdNEsUGjR1dk1157JBruGwdiY2OmBWCA2SHT7HOt8IVqaio im/GWoDyFHBd5lXCy5Ciqz7wDyZyP/LGIOWICxo7K4A8yzXEPwgAK87IIDX7YcJxrcYM KGGQa+uct7IaNPeCgtMsJHG7W5iAz1+zvXxrkrRmPsuR6sKPNcJaKDfPLlH0Bez4t+fv bJ0MJeHIhyoF3LL2R19ItJWK0j1tkgk3Ml76bzESbAkvi/WOAxyRcD5Qgs9wNrRTtz+Z bghDEB1Fpa3wC1j0gbXneMVTq4/txP0NiT03CFZs4TIqp7VYedL6Gh1PcCz4NifRS7Yc XDPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773464800; x=1774069600; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8AwSPheloTpUNoYn+5istaBSV5cxl2twt/OKxdGnStw=; b=cBqCnGkSSSncPGxuCKgZoAEdjdQTp8gO4c83C6uYDPz6DsY4339UmyQEoO1UlGwyXn ulDw2D6jPZGbddH0MXe0usBJ55z97CjeMTtjGL4pqpRlmu/rggX5xpibGwckNX861a+V yPPezZOhjakefzRvEiy1Y283sEyGJ8FvwkpS4ar96wtifdZsybR2hqtuCsgeBr4HmYOj 4lcGuw9lPBlADQkqc4ufTkKI64vgmmL0oRoCEDuvMTng6My/hyYIi9Wext+jODBcqKER oBYtgBlThqV50BGg5uDuz7v610IQ9MZE27pYaFOSMFSkAcJdVofgG+ELCkKHfSXXV5ht Rl8A== X-Gm-Message-State: AOJu0YwKUGokI5v2l89WkPNUH+3jxg1vAaXFHweo9vEVTDwcmdLX3qp7 rS+T1ad8uOzyyHM9tg0+x2SiQspMqsRWLRHIzLd42nEW/LS378LjH4L6anCLMA4KZQFo46j0sgu fMjlCNlJN6LrhUrxUOcNokDj39LLwZ2fAsARzS2w/YBiGE5/g3kQpWRFO08v9tRUD5Ao= X-Gm-Gg: ATEYQzx+Uw+4wSYi+9dXYoteaSgXYhbCOd4hb30zUKPAgVK+m879Ej3NLM4TQzGo9jI afYgehCeTzi8ogi9M6fJTEw8FJORD+TyPRAfHGYxa63ri+Lbw058WcGZtcscHzpMGwycTlaBJN+ MOvJKUSwhoJEfuuBp+BKOyvIITXeTmwsLmtMG0AyDCvXMdAyYmJa9pJ//pCi46kUXkMKsj1JsEN rFY2qzsEwrr2Oao7l1+bpqp8aMAB6ZuNtYJNtQdvsmW/iIkdyQggw8Sx2vgh3dwyi2yvdgcpZt4 jt1jVWcaCahg/RwaReUavSzaftJdDVuP9rv2/xFUlz+U1PGPd3kNBOm0g3rRdhK6qDwTuV2A6T/ px9MZb51hzaYnaXvwTd0xUtt6zq/rRGTX7YJTnjyMcSf5E+Lr1jo5fuJ/eK0sBxs9jjEq2vUW+M pjLmeQ0Yr/U9vDFuC5Z1LqhnAeCc6JB4tiddU= X-Received: by 2002:a05:620a:28c7:b0:8cb:3e86:d98b with SMTP id af79cd13be357-8cdb5b7cfe1mr760120085a.70.1773464800199; Fri, 13 Mar 2026 22:06:40 -0700 (PDT) X-Received: by 2002:a05:620a:28c7:b0:8cb:3e86:d98b with SMTP id af79cd13be357-8cdb5b7cfe1mr760117985a.70.1773464799747; Fri, 13 Mar 2026 22:06:39 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a15636206bsm1982771e87.67.2026.03.13.22.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2026 22:06:37 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 14 Mar 2026 07:06:20 +0200 Subject: [PATCH v5 2/4] phy: qcom: apq8064-sata: extract UNI PLL register defines 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: <20260314-fd-hdmi-phy-v5-2-58122ae96d3b@oss.qualcomm.com> References: <20260314-fd-hdmi-phy-v5-0-58122ae96d3b@oss.qualcomm.com> In-Reply-To: <20260314-fd-hdmi-phy-v5-0-58122ae96d3b@oss.qualcomm.com> To: Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Vinod Koul , Neil Armstrong Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-phy@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3033; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=/2opfqPS0Z1wOkjLcsVaxdSxpYtXDoOpRdO9yoyCyhk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBptOzV9dQ3IRR3dl2CePfQ3h2lOGFzcWFc5DwB/ QC8aeToTeeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCabTs1QAKCRCLPIo+Aiko 1Rf2B/9IsNKOTt8CRhTBF2S1R2VxM1pu6ZXCj0A+LmADjJAZE8h8Ojxm566dhtlDA5iZ1tOyqD7 S12ow6wqPrWtMM1Tc0/3t/YLscu3+YDuH5WvSPBfasreNVQjR2JYnREgN4YPioqAiZrWilkb2Yj oQYCDofTswSf0a+FHmRqKJg+AxJXpOcCyWJ9UTYJs6T6mhySlmBI0t5WcYyWBRu/mPxEB0py4jK 9SpgR0GbWShMKaNfZ/FLcWfmmzRjeOO414ZnaDzODPK88kWOid6acA1TrdCJ6bLvsd/n8Y9WNgh qoiXAzxiNIuWKxUPu+do1DXWuIp1057kJvHKL2UaJf660A5V X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Authority-Analysis: v=2.4 cv=BJ2+bVQG c=1 sm=1 tr=0 ts=69b4ece1 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=_xNQ4P_HJxdd5osA_owA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: fI6xIPNc0z1ToDkpctBygg4vCBuUlUNX X-Proofpoint-ORIG-GUID: fI6xIPNc0z1ToDkpctBygg4vCBuUlUNX X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzE0MDAzNyBTYWx0ZWRfX8E3eh1jq02On qYYoAGJCg8IHCPZuXfqry7MBB0jSD630f1O+jqsvdkTSpOYb0/xKbXaj+xoSuMkJd2yNnF+Iq6k zksdyWDoDWUYcs9pWkmcaoxNnIXAh8RZ6O4bRjqVOpfeefSFuvSXsB0fnzyUrEMSnMXTnFg9EQe 5Q9y/8IXGnCwI3ErY5r8tCYa7SeBrLviM3Q7L8v+U0CwebjfaiJ0LZeo57aVvKym8UobWDewT3d DKthWaY02qER9XaLSHnSpABBVj9wDXR4e2SUMsXvFqECLiUcpcwiN9WCDwHh/DOmTMZGFSa4l3u F364Kri1VBDRoHFpg8Xnt5EAYqR4i3K7CjIsRaNcjkBwsn3Wiujr2+YiPla+wUMzYUrc46+Ac2B U429hmzT7g1lDuCLXKEkihu3egF8bPbTeBFDGWsTohfYjSPYQ/gT1u78guTlcgTpjpOyySNdbwg 7yXS6lDlB9pnPixLbeA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-14_01,2026-03-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 adultscore=0 priorityscore=1501 phishscore=0 bulkscore=0 impostorscore=0 spamscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603140037 From: Dmitry Baryshkov The "uni" PLL is shared between several PHYS: APQ8064's SATA, MSM8974/APQ8084 HDMI, MSM8916 DSI, MSM8974/APQ8084 DSI. Signed-off-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-apq8064-sata.c | 23 +------------------- drivers/phy/qualcomm/phy-qcom-uniphy.h | 32 ++++++++++++++++++++++++= ++++ 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c b/drivers/phy/qua= lcomm/phy-qcom-apq8064-sata.c index cae290a6e19f..dd9929429f9a 100644 --- a/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c +++ b/drivers/phy/qualcomm/phy-qcom-apq8064-sata.c @@ -15,28 +15,7 @@ #include #include =20 -/* PHY registers */ -#define UNIPHY_PLL_REFCLK_CFG 0x000 -#define UNIPHY_PLL_PWRGEN_CFG 0x014 -#define UNIPHY_PLL_GLB_CFG 0x020 -#define UNIPHY_PLL_SDM_CFG0 0x038 -#define UNIPHY_PLL_SDM_CFG1 0x03C -#define UNIPHY_PLL_SDM_CFG2 0x040 -#define UNIPHY_PLL_SDM_CFG3 0x044 -#define UNIPHY_PLL_SDM_CFG4 0x048 -#define UNIPHY_PLL_SSC_CFG0 0x04C -#define UNIPHY_PLL_SSC_CFG1 0x050 -#define UNIPHY_PLL_SSC_CFG2 0x054 -#define UNIPHY_PLL_SSC_CFG3 0x058 -#define UNIPHY_PLL_LKDET_CFG0 0x05C -#define UNIPHY_PLL_LKDET_CFG1 0x060 -#define UNIPHY_PLL_LKDET_CFG2 0x064 -#define UNIPHY_PLL_CAL_CFG0 0x06C -#define UNIPHY_PLL_CAL_CFG8 0x08C -#define UNIPHY_PLL_CAL_CFG9 0x090 -#define UNIPHY_PLL_CAL_CFG10 0x094 -#define UNIPHY_PLL_CAL_CFG11 0x098 -#define UNIPHY_PLL_STATUS 0x0C0 +#include "phy-qcom-uniphy.h" =20 #define SATA_PHY_SER_CTRL 0x100 #define SATA_PHY_TX_DRIV_CTRL0 0x104 diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy.h b/drivers/phy/qualcomm/= phy-qcom-uniphy.h new file mode 100644 index 000000000000..e5b79a4dc270 --- /dev/null +++ b/drivers/phy/qualcomm/phy-qcom-uniphy.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2014, The Linux Foundation. All rights reserved. + */ + +#ifndef PHY_QCOM_UNIPHY_H +#define PHY_QCOM_UNIPHY_H + +/* PHY registers */ +#define UNIPHY_PLL_REFCLK_CFG 0x000 +#define UNIPHY_PLL_PWRGEN_CFG 0x014 +#define UNIPHY_PLL_GLB_CFG 0x020 +#define UNIPHY_PLL_SDM_CFG0 0x038 +#define UNIPHY_PLL_SDM_CFG1 0x03c +#define UNIPHY_PLL_SDM_CFG2 0x040 +#define UNIPHY_PLL_SDM_CFG3 0x044 +#define UNIPHY_PLL_SDM_CFG4 0x048 +#define UNIPHY_PLL_SSC_CFG0 0x04c +#define UNIPHY_PLL_SSC_CFG1 0x050 +#define UNIPHY_PLL_SSC_CFG2 0x054 +#define UNIPHY_PLL_SSC_CFG3 0x058 +#define UNIPHY_PLL_LKDET_CFG0 0x05c +#define UNIPHY_PLL_LKDET_CFG1 0x060 +#define UNIPHY_PLL_LKDET_CFG2 0x064 +#define UNIPHY_PLL_CAL_CFG0 0x06c +#define UNIPHY_PLL_CAL_CFG8 0x08c +#define UNIPHY_PLL_CAL_CFG9 0x090 +#define UNIPHY_PLL_CAL_CFG10 0x094 +#define UNIPHY_PLL_CAL_CFG11 0x098 +#define UNIPHY_PLL_STATUS 0x0c0 + +#endif --=20 2.47.3