From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 AD81B2F8BF9 for ; Tue, 2 Sep 2025 11:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756813840; cv=none; b=u7f2/fCbZlb5PgLkJMx9WwS6hMwjzN7AIJ0qlY1NZanG7Y0cJgIh5ZoX+Uwmoj8aJBNhTp/FPqTyKdRYZXn4cKhTcta0pl+MWQImD8X9EjlkAte/fEjtw2bv89oP1V9SbT/H/KZB8ZZY78me9HWo0e62zGQY8Xkf0K8SNHOBTYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756813840; c=relaxed/simple; bh=6PHHebMlrd9cTBVjOtA5XSpV+1kfwCmgVSvtWwrAOyw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NmAEU9QxybsS+IInHc231GSL8AxFTkDQB3/MxBB1j7mSBRwaREiH0y0+jM/1nSQpufWoLimakQD1dPHV6Njj8XgUcOL59DZPlXbQTMD775jQzmvlwkea1w0BkbxXdUHq6xg49oqhY8QG3WkVZ2X9QNP4J0MN46QELB+Tk+gqjYw= 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=nybMVs+E; arc=none smtp.client-ip=205.220.180.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="nybMVs+E" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 582AiKc7015191 for ; Tue, 2 Sep 2025 11:50:37 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= 5EB/XrOSwrBg61UCKv90VdlyE8eMUv62GQ7Noo3Ndow=; b=nybMVs+EeKRJq3LU bPFyv0XreWU751FtGKaUNSSqfxImrsxXGm4HO76Rs8IjceRiN/7h1BfWakmZhaMW ik3zINYG+NTEQPwfetg2GfiA18kcbVoNTKxE8b50RWjPZGZ28QKZqqHr4gahKllq qXFnBR02M7R2ksQyqUwFVjQA5ASDMJbYVNMrHdcjxejP6ogAKHXU6Ot+Mj7ghEqe UOMNbwX4bgnM2n80mbKA7spzXNa97mkMgE7HHybsXNuwBpbSPZYXAsydbcfIdvWI Cky99Dw1803sPo7Z89Ps/TubwD1L+wTkm5qFuo7rx+Pisn49zb+De5Qcc1jGiFBo TZGceg== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48urvyyna4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 02 Sep 2025 11:50:37 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4b3037bd983so28881361cf.1 for ; Tue, 02 Sep 2025 04:50:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756813836; x=1757418636; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5EB/XrOSwrBg61UCKv90VdlyE8eMUv62GQ7Noo3Ndow=; b=kPpZBpG/FKV23K/ryQxWfo66p8ktwgDZoqMBL0RX5i67FpBlOTpkxn/iN0ptdl9Ix1 V2yD+MoSNZGDG62Jv2CYf9FQZ2RZWo9NoEBNzO+w/ekp4u6w0iTILTpSvXlbGcCndEn3 VdhhZGYHvOqwu+YKVpLYMcUn5bSa+453wfjWlj0wDMtHgcBbl1+JLBNxXLXcp1NJjh7c H+Tn6hdt5ZWLVH2ejfT/m4jZ6JihdWRtsFB6qrIIBBOQZFoKlBt5KRvE7oP9tjhk9/eB Oc0pJkRNNNz9wwss/6War5DnrLH36FBYI7YLYARZj7kiHgmTHvf9AUGm+8DSk/nwZZ7A BVoQ== X-Forwarded-Encrypted: i=1; AJvYcCXfp7FngqVXc7b8/lbZcYvDzJ6cJvCsUjyph5/jaZ0tD0Y8UrTmkNpijD80wRexGN+Zef+jC6ugVEnTwDI=@vger.kernel.org X-Gm-Message-State: AOJu0YzZ7Ng0mLECzFdIjuuPAmJ8diGbFEHjnQUm/y/Sluyhlkm/7FwB /OaNrqMZ7UVkNbht1lAlmELCakxUcrtnhDYPpEUwm0wVE6/u3FusK2dljMF20INjfZ3mUcF9SuN hhGn1K9yzQW48CCwgYT0FOfuH1KdsP5Ys6JqnSTfMqJ9i80vUEA3F2PVxJc9widCB0OA= X-Gm-Gg: ASbGncubGbaEpolRLNLf8gLld9RFoM2V/9w7r9gTiXX371QjJGtkUfRV8J/UNrynu4l 9FLj+am/XSAr6saZswrVUfjAz4UTRHyeKcIt+LAcNEzWa0/4fAQMVGm5aL+Kz7MRF/RVaW/hVKS X/wZNVYwXXUxY9qHQ2RnXaYuj9CLHfgXyu5uVIUFfHCyabyiYQiGB/dLZPMBwU0Hjl43H0aXQBy egUSP66nPDMrF8p5Y/kZUEEmdiHC68cV9Uiax83yRXXhZl+SUaXoCnaSNUS+EMPTk9xpcq3UTpi P2IvQrm91KTZJjYFlNm1M3hCRSM4wtBbq+y2smJc9+6KYP78fDm/qwF8/lCNnhJZc0+TAcz2ccX CRCAi0baFGjmkeuk9p+EuCA== X-Received: by 2002:ac8:5ad3:0:b0:494:b722:141a with SMTP id d75a77b69052e-4b313fb8f60mr107758141cf.13.1756813836168; Tue, 02 Sep 2025 04:50:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+rzTco+7fQp7WZWydorG6/Vw8s23rOxW1SECVccT+ronOW4dFkZRBskA4ygd4Rv1M9i7TYQ== X-Received: by 2002:ac8:5ad3:0:b0:494:b722:141a with SMTP id d75a77b69052e-4b313fb8f60mr107757911cf.13.1756813835705; Tue, 02 Sep 2025 04:50:35 -0700 (PDT) Received: from [192.168.149.223] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b04132c77d9sm665564666b.20.2025.09.02.04.50.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Sep 2025 04:50:35 -0700 (PDT) Message-ID: <4dff9cc2-2152-48a0-b8ab-eea57ce2ace2@oss.qualcomm.com> Date: Tue, 2 Sep 2025 13:50:31 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/5] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document static lanes mapping To: Neil Armstrong , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org References: <20250902-topic-x1e80100-hdmi-v2-0-f4ccf0ef79ab@linaro.org> <20250902-topic-x1e80100-hdmi-v2-3-f4ccf0ef79ab@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20250902-topic-x1e80100-hdmi-v2-3-f4ccf0ef79ab@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: J5RETuLSM3h3m63_2UiLkAydfIlHCfLD X-Proofpoint-ORIG-GUID: J5RETuLSM3h3m63_2UiLkAydfIlHCfLD X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODMwMDAyNyBTYWx0ZWRfX/q+EnFFNb6gr XKhgwiC3tfy4KG//oJeewCsFjVXZyKIj1rLzdtYqHjV5IAKFhsj3DysramZZ66wr+/QSnjTCH/x ci6xk9lU8xA374Fpc6DHvlSlZSD5nMxwflyj/lCvLLn3Dg5KU2bX5zBIa+44l2r7yyvb6N7ivLO HPZxhD6weJ4DJ5agKhzvhY4+kbhMZ0A4GvT4cJdC1MeA6mF7VgaeOeUqdW5debCKyrEfj37ZqKi kL9f0xk6AvJIzyuLGAWm1g8/9MqHbg5VtTCxnFkK18J831ysh95sZ2T7Mq644K+6/6O+yagCGVs dGxE+0ZRcHPD9BI8odkmHOunfVcZ1N3V9lOKoabFh+dUnUHPM8sx3Zsnfy1s1fBRZZlMFGgWF7A vDp4u2Kx X-Authority-Analysis: v=2.4 cv=NrDRc9dJ c=1 sm=1 tr=0 ts=68b6da0d cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=yJojWOMRYYMA:10 a=KKAkSRfTAAAA:8 a=TNrL9Qa0OoqJGZUcVMkA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-02_03,2025-08-28_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 malwarescore=0 priorityscore=1501 phishscore=0 impostorscore=0 spamscore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508300027 On 9/2/25 11:00 AM, Neil Armstrong wrote: > The QMP USB3/DP Combo PHY hosts an USB3 phy and a DP PHY on top > of a combo glue to route either lanes to the 4 shared physical lanes. > > The routing of the lanes can be: > - 2 DP + 2 USB3 > - 4 DP > - 2 USB3 > > The layout of the lanes was designed to be mapped and swapped > related to the USB-C Power Delivery negociation, so it supports > a finite set of mappings inherited by the USB-C Altmode layouts. > > Nevertheless those QMP Comby PHY can be statically used to > drive a DisplayPort connector, DP->HDMI bridge, USB3 A Connector, > etc... without an USB-C connector and no PD events. > > Add a property that documents the static lanes mapping to > each underlying PHY to allow supporting boards directly > connecting USB3 and DisplayPort lanes to the QMP Combo > lanes. > > Signed-off-by: Neil Armstrong > --- > .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 29 ++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > 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 c8bc512df08b5694c8599f475de78679a4438449..12511a462bc6245e0b82726d053d8605148c5047 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml > @@ -76,6 +76,35 @@ properties: > mode-switch: true > orientation-switch: true > > + qcom,static-lanes-mapping: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + items: > + enum: > + - 0 # Unconnected (PHY_NONE) > + - 4 # USB3 (PHY_TYPE_USB3) > + - 6 # DisplayPort (PHY_TYPE_DP) > + description: > + Describes the static mapping of the Combo PHY lanes, when not used > + a in a Type-C dynamic setup using USB-C PD Events to change the mapping. > + The 4 lanes can either routed to the underlying DP PHY or the USB3 PHY. > + Only 2 of the lanes can be connected to the USB3 PHY, but the 4 lanes can > + be connected to the DP PHY. > + The numbers corresponds to the PHY Type the lanes are connected to. > + The possible combinations are > + <0 0 0 0> when none are connected > + <4 4 0 6> USB3 and DP single lane > + <4 4 6 6> USB3 and DP > + <6 6 4 4> DP and USB3 > + <6 0 4 4> DP and USB3 single lane > + <4 4 0 0> USB3 Only > + <0 0 4 4> USB3 Only > + <6 0 0 0> DP single lane > + <0 0 0 6> DP single lane > + <6 6 0 0> DP 2 lanes > + <0 0 6 6> DP 2 lanes > + <6 6 6 6> DP 4 lanes Would oneOf: - [0, 0, 0, 0] - ... or something similar work here? Konrad