From mboxrd@z Thu Jan 1 00:00:00 1970 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 B469329AB02 for ; Wed, 22 Apr 2026 06:02:12 +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=1776837733; cv=none; b=fEPV19/j5v0GTfEuqka+kvweMpR/d0zvwibLhJEtTMZDlGFsZ5Q57itphxiQuiLmNCvu3Moy83Ug/T2jzSkOctAFloiSjggLWzVxGD6yqrzgOVsZwBznFXUiLdXXoH2cOblK6y6ANM596taep3YMrnBSUT7FtkHpWxYgmobhC04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776837733; c=relaxed/simple; bh=aFSvRHF5TyWCpuwZ48kSZW9StI15Mat3A1Go9duK9TU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fkXt9e3WYuHPjfYB172p/vY0tvAxrRRK6KoExRCiAd3NVzBnlR4VptPplpUsxRm2cRExmNmYfO+DrHqLiUSEkapWAXdLGwftL/NdVS7De0/ZTNTjUwDH+j1jGR0VrCGYzBEgJwZd9W8GTyJjiZGxjW7nCVbqOmD2GSj1+6Oi7N0= 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=cf1Olo02; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=TRTjXQUW; 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="cf1Olo02"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="TRTjXQUW" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63M5WDvS976177 for ; Wed, 22 Apr 2026 06:02:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=GDn9/QN5j3kDRhyol4ojzl wNnIM0CIsP7N6m3h6CsA4=; b=cf1Olo02ApM9jNheKk0PZBB/HWXybNOKYUtZTh CqnG0bJ/tC0/EA97S36a7AVunn1bo9vYirXTWDLMldmkwMbU74w2UFE6hPkk54Xr Hn32MkGo+YgUDcGjJHofRFNrsZJe3+hYdVQNRW7ijCHWlhrgb4MAHP3kVRE1qZ/3 kEP0APDx1D8powJLgA+A2USKyiY4QKgGNBjdcWDVYK6DOX8hIXFgcgerw/rS19lb zfMqDwFxpmiS+ag04st4ItS/Zu82ezkpmr6n4PownNWI75zjRMBLcjdTi0sL1nSj NgYB+5N5t4DtaprGsGOphfk4rx8/3lRSDMlNtp7MJ+9vsVeQ== 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 4dpene9w7w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 22 Apr 2026 06:02:11 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8eb52a22eb6so557472285a.0 for ; Tue, 21 Apr 2026 23:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776837731; x=1777442531; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=GDn9/QN5j3kDRhyol4ojzlwNnIM0CIsP7N6m3h6CsA4=; b=TRTjXQUWerQLiZYytaU2JYm35aDBy6t2Gy6a8NOxPIefq3j/26rSlhyo5SEIsdkFhD btHJwmdQcDvZdjxzkbjeDLMa2WJT5dm437yoZGRlbIK+YBVfbKsYQSYakRgH5arWyrFf G54GCF+S97XaiHFfJ0NHN3n5G1AIfCV1Pmi/sBN8c1aFkoYZLDODTPWSSlkwxoOfi6EX hJ6MBatH4NiNvSetes5vNjqauJ9pvcY5x39wCyS80dkCyXQZYHhZAack6Ur65d5o4w94 5/NCTjKysrCK8RnuU4R33reW1oTXBillZ36yjxLrBRelDwBEq+IzYqYiGoB2lhV5zm05 14Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776837731; x=1777442531; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GDn9/QN5j3kDRhyol4ojzlwNnIM0CIsP7N6m3h6CsA4=; b=mvoNsCW+EZej1F68fTxTLXlGAh1jV9CzZ2N2ZxzNfVOGY0XpYfhQRfmz134UryAXLI fJh4SUWZkn68POrZoxtbzgO3lKn2PpEWQMtDoVY03nlNwUfw8cQSfZgOO1dHXca3wqBI ht4X7VWO9Jb6MjLd84eDYikx/oZnJfLlH0W1bUkGo1i5uhxDAUf7BYEMnsMiQTBZqLWo iMJ4ZMz17gFl+4Graj2G1mzKuuSabQJb77FJIaZSDUr/WibliN8bDp/2vsiL39mzIDRS /rCF+xGDRaDTrnimKmaWvFPovrUkuaF6G3uB7JNtA6vVJmlnFwVPhRfRaIXH+9WVGCmJ iyEw== X-Forwarded-Encrypted: i=1; AFNElJ9bqH9WNdW4UR5JDS37S8o/uJsE9NapbGwcbJhbUxuBxqoCbhmsaIVYgIimBxbr4oDrVA3AwpS5OHLtZYI=@vger.kernel.org X-Gm-Message-State: AOJu0YylH/u0VKFuJ6Ss7Yb4hiN2oJsWd0/DzBEedeZsIr7CVxQtDgdq N/k8lkuSi9OZqFE0/2mPKvE+1vNS9TztgK37m4g0/36zPXLTkhzxNMQflokyaz5/dmr6v9k4YBL uaZyeVUMFPHMl8UcKlmJvVIsVaDMXWhS0HfE6Ot+Bz1TH9LZrfvk/og+RtPSfH9DlOHc= X-Gm-Gg: AeBDieuU7bGj2hyRFfEuxnC7p9TS3HG9YMsiDH+dOYSHwv7T2rt7a6XywwnbBO/Nsx2 x2QFjmgxeY2VlGbMhGbEaait53RHkQvFmv5B3OFpmtgrxaEdRrXK+BERjtsOlNFogGE0pyDYQd6 OoKDGyTHanRb0q1hLCcO1QJoCGGKhjZ8LOOtKqXAliWWOzydtlA9sN7cuiKkXoYvrzzk/QtrSnb C+7w4d9kwNSrs5x2Rsr6j9BAkpdYeoSTm/7ZC/5tN10nulDrU0NK7UIbOhTa9LbzwNxwElbscyE cOISaDNXZQj31Pha4SRgtjbf/FIGZxSYU+zIBZCC3709Z1kbMWnWUxpU0Iyqy/egKtWraiiR+Xf HCIbHv87/gDnINPNnxJVHDdZvCCNsktrHEkGZt7x1SocVH+D5KluXIQLqjtkneM4UmYO5QxTLcH 3Ktl/qpYVIajYk/ejNCQ== X-Received: by 2002:a05:620a:284a:b0:8cd:b317:b464 with SMTP id af79cd13be357-8e792b596b8mr3051064785a.61.1776837730917; Tue, 21 Apr 2026 23:02:10 -0700 (PDT) X-Received: by 2002:a05:620a:284a:b0:8cd:b317:b464 with SMTP id af79cd13be357-8e792b596b8mr3051059985a.61.1776837730333; Tue, 21 Apr 2026 23:02:10 -0700 (PDT) Received: from yongmou2.ap.qualcomm.com (Global_NAT1_IAD_FW.qualcomm.com. [129.46.232.65]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8ef12122800sm237379985a.18.2026.04.21.23.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2026 23:02:09 -0700 (PDT) From: Yongxing Mou Subject: [PATCH v4 0/5] phy: qcom: edp: Add DP/eDP switch for phys Date: Wed, 22 Apr 2026 14:01:50 +0800 Message-Id: <20260422-edp_phy-v4-0-c38bef2d027b@oss.qualcomm.com> 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 X-B4-Tracking: v=1; b=H4sIAE5k6GkC/22Oz27CMAyHX6XKeUFOXIjLifdA05Q/zhpp0JKUa gj13RfKgQPzwdLP8vfZd1E4Jy5i39xF5jmVNJxraD8a4Xt7/maZQs1Cg96Bhq3kMH6N/U0q9hY 5gGk9iLo9Zo7pdzUdP5858+VahdNzKJwtLP1wOqVp3zjmHVsE35IhYkXYEkIXqVMcyEYXjQFtv Xi4+lSmId/WJ2e1yt7+mZUEqVERaeciRnUYStlcrvbncXJT26qa8YUj6BeOFfeWagXToYN/8GV Z/gD1kGrCMAEAAA== X-Change-ID: 20260205-edp_phy-1eca3ed074c0 To: Vinod Koul , Neil Armstrong , Stephen Boyd , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Yongxing Mou , stable@vger.kernel.org, Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776837726; l=1988; i=yongxing.mou@oss.qualcomm.com; s=20250910; h=from:subject:message-id; bh=aFSvRHF5TyWCpuwZ48kSZW9StI15Mat3A1Go9duK9TU=; b=MSd8D1kAFZdRDD5N9Rl1pwyDYZX9J8ByeFUAmw89nBvWXN3I6O1ASr3+aPNgxY9IXcztW08yL tTsfP8thnR8DASNNZXSBNQwgXfp8fHMNpdfpEu1NKpkYo2BLcxNb30/ X-Developer-Key: i=yongxing.mou@oss.qualcomm.com; a=ed25519; pk=rAy5J1eP+V7OXqH5FJ7ngMCtUrnHhut30ZTldOj52UM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDIyMDA1NiBTYWx0ZWRfXzZExbmhtObjT mItbzwoKw8SRisqKJfQmuNGXu8wINlkFaeMsr5lTyaj1qtiumCNiVSxhUxHFJuOgw2UuWoEnwLu BljNROMQYQgTDwjJ0EpXenXFIvZSec/g2xDUXAWE92cRzL9TsgG2cc/6CwqVJ2j6rGG4iyKjW/f TlWKO5+rYc4mP21LbLhZk3rI7WVRk1RvbzTdT5faAVG52LqQpNggJ5y1uBf+SRBazoMkcG2G7Lz JspF0Q8uxBWk0wj+YRxdfio/rA9nG6+RKn4vKaHtpM4hrr50LiVXlqOJ8xEI8/Ae5+pB1AFMRab w2H/P7GsJ5a9Ud+6Dh9sWS7vdu+xQCK6TIe5h1nPDGaw/wf/cvVg7EWh22SKQQ8eoE1kW6xwJVc YSajoGzissMyRWRFH7ULa4In1reyLopMFK8mQDf04g2zuvM+bfTS8ja16y37yPiztBQtY3MJQhN cN0FYi8Ussy2e0yjUxA== X-Proofpoint-GUID: N78kbIHup9Pg7_VZCj6Kivub_H6U7S5O X-Proofpoint-ORIG-GUID: N78kbIHup9Pg7_VZCj6Kivub_H6U7S5O X-Authority-Analysis: v=2.4 cv=RoT16imK c=1 sm=1 tr=0 ts=69e86463 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=C3Dk8TwHQYyIj7nOf9RCJw==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=M-2OMZX0rM6BGFiE4MwA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 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-04-21_03,2026-04-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604220056 Currently the PHY selects the DP/eDP configuration tables in a fixed way, choosing the table when enable. This driver has known issues: 1. The selected table does not match the actual platform mode. 2. It cannot support both modes at the same time. As discussed here[1], this series: 1. Cleans up duplicated and incorrect tables based on the HPG. 2. Fixes the LDO programming error in eDP mode. 3. Adds DP/eDP mode switching support. Note: x1e80100/sa8775p/sc7280/SC8280XP have been tested, while glymur/sc8180x have not been tested. [1] https://lore.kernel.org/all/20260119-klm_dpphy-v2-1-52252190940b@oss.qualcomm.com/ Signed-off-by: Yongxing Mou --- Changes in v4: - Splite changes.[Dmitry] - Add sc8180x tables in a single chagne.[Dmitry][Konrad] - Link to v3: https://lore.kernel.org/r/20260302-edp_phy-v3-0-ca8888d793b0@oss.qualcomm.com Changes in v3: - Rebase to next-20260224.[Dmitry] - Only enable TX1 LDO when lane counts > 2.[Konrad] - Link to v2: https://lore.kernel.org/all/20260213-edp_phy-v2-0-43c40976435e@oss.qualcomm.com/ Changes in v2: - Combine the third patch with the first one.[Dmitry] - Fix code formatting issues.[Konrad][Dmitry] - Update the commit message description.[Dmitry][Konrad] - Fix kodiak swing/pre_emp table values.[Konrad] --- Yongxing Mou (5): phy: qcom: edp: Unify generic DP/eDP swing and pre-emphasis tables phy: qcom: edp: Add eDP/DP mode switch support phy: qcom: edp: Add SC7280/SC8180X swing/pre-emphasis tables phy: qcom: edp: Fix AUX_CFG8 programming for DP mode phy: qcom: edp: Add PHY-specific LDO config for eDP low vdiff drivers/phy/qualcomm/phy-qcom-edp.c | 221 ++++++++++++++++++++++++++++-------- 1 file changed, 173 insertions(+), 48 deletions(-) --- base-commit: bee6ea30c48788e18348309f891ed8afbf7702ac change-id: 20260205-edp_phy-1eca3ed074c0 Best regards, -- Yongxing Mou