From patchwork Tue Apr 25 03:40:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3151500vqo; Mon, 24 Apr 2023 20:41:54 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+WcD1XpWp0Y9KGaXaofXvYHzeuZwpG2NocRCxbjLHfKNY2UqCGbyU07TFXtNRc5rqkwdq X-Received: by 2002:a17:90a:72c5:b0:23f:e4b7:afb3 with SMTP id l5-20020a17090a72c500b0023fe4b7afb3mr15717456pjk.9.1682394114550; Mon, 24 Apr 2023 20:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682394114; cv=none; d=google.com; s=arc-20160816; b=JGbq63oAul6j9Y4JUy+OHQCMBLcFAXZdlSlT8lcHwj1VllEIl+ymVgwJQJwPFe509c pzgEZk/vG2G7nPNxnTq3nFgzq+9docUZDEBdIiL8JqZ/4HBDt4kofII63gmTNFNEq2Od 9w90SuM4oxtZ8JSZ59RAr5IsOT+Wh0gQHuNIF4lZktQOcsHCvsU0Dnegf2z8UgFedncC dTxHTrQTrgBLqeDCOV3G1w7KXwE1vvNGZd+9ndfQTCJLsYgqnygLkXz8wB/UaPUyW1z4 v/9qGcb1oAQ8p59OBkwJ5nkxbx/JkWor7ViSYRVZBMpD8EJS61tCjDCdZSwZTl1ZhZJZ xZoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yi6EG1qqv73a0sIDHoOSwGLXjvmL2fvt3WG2cWVQ/dg=; b=C+K6+3RCz1xukoU2740xZQLRqkDpvPjKdO9OBndBcPlBZbtmyQL6TYew56SDV85D9o fi2f1vgOIEsRGKxkKmHT2J1QZA7wf0CYwAPHxv9H7lcW9VYFIr7LUOe5ANJs/DQq3klS wMjwZG+dvv7Ygo6DAEeIl+QyRrluMrkq3RjQ9cxapVxuoaYgYgnWJfQ2F9xKkSzOw0ev c9z831tDOESLQ75Xmhnx7rmaCN2oKggmhCkQ+fzJfjWpwQ33SybNrxWsmDLLCXT8/Sh9 nIG7QKrnpqhABNsF1N1oEAqfAiSBGHZ7TBHousNE7wrDkqjI1pe3ZNfkTBebCYoErOon n7EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JM+Lmufx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631553000000b0051f539504acsi12514064pgv.91.2023.04.24.20.41.40; Mon, 24 Apr 2023 20:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JM+Lmufx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233311AbjDYDke (ORCPT + 99 others); Mon, 24 Apr 2023 23:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjDYDkY (ORCPT ); Mon, 24 Apr 2023 23:40:24 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC4249D0; Mon, 24 Apr 2023 20:40:23 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33P30Bem017196; Tue, 25 Apr 2023 03:40:17 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=yi6EG1qqv73a0sIDHoOSwGLXjvmL2fvt3WG2cWVQ/dg=; b=JM+LmufxD28tojMEZF7e0pSeI4mRPTLqaKx8d4dDVeRU0F99omYdpLczI9FlSxaH7Pbp ARXU0KCCKmLbnrShPkxHHHB0D13NiYvrPmkn2GdqAK/rrmMNZT/NeLt9/6AL/4k3yppN 60o3Baynyi2KpgUbNqhZDDw2gCQ0Zi6GPfURY0MFDCMVsjzC3dYieZ9fTUQfgtethbcM 9ea+kVhi0Hxp4+/t9GnPPxVumq1l0Z1MP38+VzEsIfwRFwlEO7ezWjRoyNSXfyL8+Gh/ hsdLdMcBwoRRbjyAiUffDnWMAADu3WGjsgkXsRBXyo39xzslGKTLquMAE55U5O0hPl+z XA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q61jdrjh6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Apr 2023 03:40:16 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33P3eGhr024328 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Apr 2023 03:40:16 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; Mon, 24 Apr 2023 20:40:15 -0700 From: Bjorn Andersson To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Johan Hovold CC: Rob Herring , Krzysztof Kozlowski , , , , Subject: [PATCH 0/7] phy: qcom-qmp-combo: Support orientation switching Date: Mon, 24 Apr 2023 20:40:03 -0700 Message-ID: <20230425034010.3789376-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: bYO7i8Vlraynx29cT2Rh4tbPLB7HYBbP X-Proofpoint-GUID: bYO7i8Vlraynx29cT2Rh4tbPLB7HYBbP 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-04-25_03,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 clxscore=1011 mlxlogscore=999 malwarescore=0 phishscore=0 adultscore=0 mlxscore=0 suspectscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250032 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764118090560458367?= X-GMAIL-MSGID: =?utf-8?q?1764118090560458367?= 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 (7): 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: 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/phy-qcom-qmp-combo.c | 227 ++++++++++++++---- 5 files changed, 309 insertions(+), 59 deletions(-) Tested-by: Steev Klimaszewski Tested-by: Abel Vesa Tested-by: Johan Hovold # X13s Tested-by: Neil Armstrong # on HDK8450