From mboxrd@z Thu Jan 1 00:00:00 1970 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 B9986C55167 for ; Thu, 30 Jul 2026 14:19:30 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GrA3UMxptubgXwUsrEaddVdC+GD9Kzg4VUXBALRyf9w=; b=uiDvIwBi78Ug19 uH7Enfy0OGpZf4eU49nnKD3ghBuEI/ImQs+B2ZOQqG5ctEwty/TihpVvPJzdKXAi8ykgGQoRKSPRI zSz0zVsd5l5G0zDPbWLFfeyE8yG7k8M37x7bYOqfCvJLq6jv8JhGMYHfSZBvRuslEWRGPw0uQb4lB YPfHdwic9FssggFGA7lNXvxAhhx7dJNW0gu6IefMCRLryD8j7vhVe2VIL8nW6E5r4QKrxX++EfKX/ Tkk3+iW9r/3go2M/DUZf8kIAUB8ITNHL8rtH5Kxl958/c17dBf2REbUntyv7c3F680NrV3uNkUICs Ff4fx8966yQYqFlA6Cyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpRbe-0000000AjKe-25EL; Thu, 30 Jul 2026 14:19:30 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wpRbd-0000000AjKS-1xDG for linux-phy@lists.infradead.org; Thu, 30 Jul 2026 14:19:29 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 1733843D29; Thu, 30 Jul 2026 14:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45FC21F00A3A; Thu, 30 Jul 2026 14:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785421169; bh=GZLDTPo7pnCa4rXGOHiieW0U5XXmuyD9cIwA6E85lQY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=nlxX20gxGguZ2v5E642QjgKzzJR9l33R7Z5IdbyKLa3YZRY+oowX8TlGRcY+NT17W lF8S0Hvm+pPFaN6jy6FitQw0r0U7MqZhFBVqOf7GZgtDLZcnCUuQQ/bPHr75EvoZMS rMgOqb6Wx4UD1Nl3v0okpeRVb4QH+7BG7Sd2z0kQkL30B3PMc/lqlwbKqGxOzl+fxh 9j8DHAnFNNLgOMtGfiuDxuIsn3eW8iZMgs7YyNpy56fAA7R/958bu/DloHhpM6UuJ+ mKxJ7pduJwkwLZWCeWW8/+z/+j3REkpSQFQYn8vIdrdwXSM53XmpQ5RdOHS7ejfQ8l TP5Jx4Riuyr5Q== From: Konrad Dybcio Date: Thu, 30 Jul 2026 16:19:13 +0200 Subject: [PATCH v3 1/5] dt-bindings: phy: qcom,qmp-usb3-dp: Extend X1E description for USB4 MIME-Version: 1.0 Message-Id: <20260730-topic-usb4phy-v3-1-ccf0f7ea98b5@oss.qualcomm.com> References: <20260730-topic-usb4phy-v3-0-ccf0f7ea98b5@oss.qualcomm.com> In-Reply-To: <20260730-topic-usb4phy-v3-0-ccf0f7ea98b5@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, usb4-upstream@oss.qualcomm.com, Raghavendra Thoorpu , Mika Westerberg , Sven Peter , Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785421158; l=3402; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=ioM+1JfL5GbKcpr0Oh4VXEfgYojNBsfBC5CjGpYl7WU=; b=QC19a2C2S+3qvzXq/KeTYT6+WNSEv/vFw1ZEcIgOTFKLjAdg/TzQ6zPZZQVI7HNRsPslvnaK1 nwZAEp9B+sYBURSz9avdljHUCcTsxaibeAyzgCG8K3ErLkaeHvm5Ts1 X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Konrad Dybcio Some instances of the QMP combo PHY (called USB43DP) feature a third functional sub-block, responsible for USB4/Thunderbolt 3 communication. Compared to the today's state of the binding, one more clock (P2RR2P - PHY-to-Router, Router-to-PHY) needs to be enabled for the PHY to be able to switch to USB4 mode. Allow that for X1E. Also, add a bindings define to let consumers access it. Assisted-by: Claude:sonnet-5 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 55 +++++++++++++++++----- include/dt-bindings/phy/phy-qcom-qmp.h | 1 + 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml index 4eff92343ce4..18930eb96bdf 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml @@ -51,12 +51,7 @@ properties: clock-names: minItems: 4 - items: - - const: aux - - const: ref - - const: com_aux - - const: usb3_pipe - - const: cfg_ahb + maxItems: 5 power-domains: maxItems: 1 @@ -187,21 +182,59 @@ allOf: - if: properties: compatible: - enum: - - qcom,sc7180-qmp-usb3-dp-phy - - qcom,sdm845-qmp-usb3-dp-phy + contains: + enum: + - qcom,x1e80100-qmp-usb3-dp-phy then: properties: clocks: maxItems: 5 clock-names: + items: + - const: aux + - const: ref + - const: com_aux + - const: usb3_pipe + - const: p2rr2p_pipe + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-qmp-usb3-dp-phy + - qcom,sdm845-qmp-usb3-dp-phy + then: + properties: + clocks: maxItems: 5 - else: + clock-names: + items: + - const: aux + - const: ref + - const: com_aux + - const: usb3_pipe + - const: cfg_ahb + + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,x1e80100-qmp-usb3-dp-phy + - qcom,sc7180-qmp-usb3-dp-phy + - qcom,sdm845-qmp-usb3-dp-phy + then: properties: clocks: maxItems: 4 clock-names: - maxItems: 4 + items: + - const: aux + - const: ref + - const: com_aux + - const: usb3_pipe - if: properties: diff --git a/include/dt-bindings/phy/phy-qcom-qmp.h b/include/dt-bindings/phy/phy-qcom-qmp.h index 6b43ea9e0051..1c3ce0c02b0c 100644 --- a/include/dt-bindings/phy/phy-qcom-qmp.h +++ b/include/dt-bindings/phy/phy-qcom-qmp.h @@ -16,6 +16,7 @@ /* QMP USB4-USB3-DP PHYs */ #define QMP_USB43DP_USB3_PHY 0 #define QMP_USB43DP_DP_PHY 1 +#define QMP_USB43DP_USB4_PHY 2 /* QMP PCIE PHYs */ #define QMP_PCIE_PIPE_CLK 0 -- 2.55.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy