From patchwork Wed May 10 03:19:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13236236 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68720C77B75 for ; Wed, 10 May 2023 03:19:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=n1I+U6hl1ePYFRxrPQxe1+f0OYd/zVlU0opegKbY6m8=; b=CWk2X6b/PYiDzU DV1+YLDEUa8ePRFKVfRaYARPUC1MXwprFlVY5Qihk9BB8sa5ZhtdhV+ymBR6Yt+DBuLo9bLxi8j3u CF1HNbpxYQ/e6D1+11IDenUimL5vMiCv7oUIz5PYVn0YVuzBMxLHfiBJADWPCDdXJQ8BuPAewYtUG P4tT8gA3/Et/PEIWdwbxFQb3XXAm1HIXjCNMVEc6+3RmiEGO+R3PtPcMI/TXIRT2CcVl3rMZC28dr A7hkohLyv+lG8OOz6Xoxs4aATMTpXQdiSe0Pq7Bl5+qlzmEJT6LJTTJFnK3U2sSvvS0bYT90V2G4P P7jTDRez7q7fRMWkW2CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pwaMh-004rIh-37; Wed, 10 May 2023 03:19:43 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pwaMf-004rHn-0D for linux-phy@lists.infradead.org; Wed, 10 May 2023 03:19:42 +0000 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34A0LURK012311; Wed, 10 May 2023 03:19:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=4Gvnm6KDHSPLSIkX9eKbidvrh/yuJS1nU0dJAJo1N4g=; b=HKdUXIIi0NT797TZe8sNyT11ALTk1fcW+/NPQ2bEPgBXSG++w7VMIUVNV7JbUlXxVMVK 7GVYmmG/L/BY7munKzvon+qRtflMkJOMtqlJg1cge74305JPwxDQ/63bWVE4pA/jhLbC ThDhQDnSNJxRq3LXaPvHb+KxSEaii4XuUV/mpbXsm6oaF+GwaaYDuBvtveMtkkl7fEIT wK1/IheQ+ZM0+dNqCRQPb0Gk6qmI0LDookPRfv1yzcYTfXSVvAnSdyEWGj0egMDsrgMi BNePMTK0FdMRkWc7dQmg7miZeP7Xh05GYtHTgWzjWxYfFgRPaNJqVugczEHAZwYJvcHK /Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qfyx08adx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 May 2023 03:19:36 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34A3JZYo022810 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 May 2023 03:19:35 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 9 May 2023 20:19:35 -0700 From: Bjorn Andersson To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Johan Hovold CC: Rob Herring , Krzysztof Kozlowski , , , , Subject: [PATCH v2 0/8] phy: qcom-qmp-combo: Support orientation switching Date: Tue, 9 May 2023 20:19:22 -0700 Message-ID: <20230510031930.1996020-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: XzSguFU4m7ee0vvZ4hfZKFFWJPBPAiTi X-Proofpoint-GUID: XzSguFU4m7ee0vvZ4hfZKFFWJPBPAiTi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-09_16,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 mlxlogscore=999 clxscore=1015 impostorscore=0 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305100023 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230509_201941_244193_FA3D040C X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org This adds support for USB and DisplayPort orientation switching to the QMP combo PHY, as well as updating the sc8280xp devices to include the QMP in the SuperSpeed graph. Bjorn Andersson (8): dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Add ports and orientation-switch phy: qcom-qmp-combo: Move phy_mutex out of com_init/exit phy: qcom-qmp-combo: Extend phy_mutex to all phy_ops phy: qcom-qmp-combo: Introduce orientation variable phy: qcom-qmp-combo: Introduce orientation switching phy: qcom-qmp-combo: Introduce drm_bridge arm64: dts: qcom: sc8280xp-crd: Add QMP to SuperSpeed graph arm64: dts: qcom: sc8280xp-x13s: Add QMP to SuperSpeed graph .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 51 ++++ arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 28 +- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 28 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 34 +++ drivers/phy/qualcomm/Kconfig | 3 + drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 255 ++++++++++++++---- 6 files changed, 340 insertions(+), 59 deletions(-)