From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F6AA284669 for ; Fri, 22 Aug 2025 11:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755860546; cv=none; b=d0QT4KLmKCumnY9MSCf80BNorqOddXNyl18JnaxQaNI8HleC/jRkP2nzP76vQAW8EXIJhr9mixo5qtWklvUZkDBekJm+D6+H04hT6b67uhLHSuUe5go/2oB8vX/eCa8ve/NsXwhHVdWh725r6+LeIR4TE9pTZG3Ke3WLkL84Gvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755860546; c=relaxed/simple; bh=xrZ3luu81h2Z0rZiK3yNp8vHc4we/Obi3qCTnsHSsxk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=kwoCRRkkU/B9Rm9twJ975IewdiiTzHYMt2GY+lyJX7Wbg6zt/6MR2XpeeTg7x2He+A4SLiLqfpY7rpP57pBpkrLXfAZyM3Wu2wyRXekDyXlgbalu8R84EFHWxKKh1XXlIiL0XPOfcWG+FpjaHZjZ5rPkNbgCRQj22erPnTzE/KM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qaoPbcnf; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qaoPbcnf" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-45b4d892175so8519315e9.2 for ; Fri, 22 Aug 2025 04:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1755860543; x=1756465343; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=EURP07SdmZQW2KWbnKhFoZWKzJWus82bAXE5Cr6kqT8=; b=qaoPbcnf6EGgCELKM8Chzqpcb8SombjWuDFdSXERs4F8RvIjfy/BrYgYDGKmX4Hete 3E5/bosiWRIynEImEKGS6YVdBOMSOhke4ipU6aI6gbzUGk496UIikEJhYmpls86jGtK0 XK6V7IgctW7kDmH+dYPNTFPveq4vPLMFlqoRC5W8zsH7tpFH5CRaUl0romTDPepncDgv LlgaBhogtyt8V3ztC/BBREbF6uVh7+yh1dn1GvfQ1OeW8Hdtl0/ZvgVINSbeuz9Tv/lM MRQQxQkg0FBfK+rsW90TeX5MuKvktYkAoa6ZZyRbgiAG5WBXxVKNd+sJEBqtpTJ8kNxb cX+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755860543; x=1756465343; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=EURP07SdmZQW2KWbnKhFoZWKzJWus82bAXE5Cr6kqT8=; b=mqyPt1yX5LBRqENuO2k8c2mQUB0cllFayoKu3FtAcoTwYMBhuuPZWizjmSqS3pTjhz ak+GO9oRmdVfOzmPwZGBBwcoIqp2vptoxwgHz21lrhZ6VbawSpJRkvtteID+AoaBQveG YUoLa9dQuIjFBgZm0jZIybiJrNHNzmZnqGvhpaL1Wih4DVUHHHVLOysJ6jGQKIXBTSAH 3bAIquId6SYp4FIVa6va13RKmj/bO8Kp7XgB2SoEn+B0hLlU0VGkkGCyzqQCzXjWSNNa jM5vYTOrp9y5lmlhDkJM8xvFnJC96T72jljwOHdIYWHFBrqO2LvLKULYaDrLooyqzXpG hIwg== X-Forwarded-Encrypted: i=1; AJvYcCUMzZ9Uh41uwWIR9Tj1c11wZdrVIBKachIl9ovfh9/IQopQTFpA/KrKDOqUHVCI9QXmjBRI83PDnaLNjCs=@vger.kernel.org X-Gm-Message-State: AOJu0YwG629qe3BQv4T2LccvLndVz9ByN6oarh5Iot+Lww1EJMuShcNX 7XLCuSst9MyiLUQXLECtqflL9vv3lcS2ARmL0cfhN+N29ECpuxVlli+k2XPNDu2271M= X-Gm-Gg: ASbGncuit0rQumbHMN1uEcrxjZ7LKztJUGjLkvDbJly0yUOmgqOUu5BjGGgxVzvDIsm 1xTHCCnQ0FfTuarn8f64z0KtcsWXI91TK5918wgdocqUAi2eMR14CtSPNCgr+qJzHAKnPhPu1BH 8JoaTiuIb6Q5ylpiRQDnRc4NA/XBUbKae0KcN0QZCqrJHpl1BTNnEucJdPapRQ26MA02xGloqbn v0FlnXVfmqbuAQhqYQmat9P9BREI9N5+3Al2E9QCPHJCXXTOirr6cXT1ImimnIDX2VF26903aIN akWxs6VKNvA9hJN8bZ2oQ9eav9x/fjhaPxbjzKBoxpb0Z/E6dFLQB6jJZwWXpE2Yj/jjH1yZNr/ 82zf3IYmfIA/INH/9V3PAczF4lqu6T9fH8ffZjJN/Mg1N0vM/nQ1pypHI14/4p0uWK39iiZlRBe 0= X-Google-Smtp-Source: AGHT+IE0Dex+3o6InK/YXUiV3XUtariytJViHjAa7y8QjqFdVq4V1b34qxJ2Y7CfjNPPeV8UpIYoYQ== X-Received: by 2002:a05:600c:4fcd:b0:455:f187:6203 with SMTP id 5b1f17b1804b1-45b517d861fmr18589245e9.27.1755860542716; Fri, 22 Aug 2025 04:02:22 -0700 (PDT) Received: from ?IPV6:2a01:e0a:3d9:2080:3dd7:7361:c101:6a77? ([2a01:e0a:3d9:2080:3dd7:7361:c101:6a77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b50dd02ebsm33068145e9.9.2025.08.22.04.02.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Aug 2025 04:02:22 -0700 (PDT) Message-ID: <018751b8-8b9c-4966-94e2-f3ec8625f87d@linaro.org> Date: Fri, 22 Aug 2025 13:02:21 +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 From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH RFC 1/3] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document default phy mode To: Dmitry Baryshkov Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250821-topic-x1e80100-hdmi-v1-0-f14ad9430e88@linaro.org> <20250821-topic-x1e80100-hdmi-v1-1-f14ad9430e88@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8Vc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PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22/08/2025 12:57, Dmitry Baryshkov wrote: > On Thu, Aug 21, 2025 at 03:53:26PM +0200, 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 >> >> And the layout of the lanes can be swpped depending of an >> eventual USB-C connector orientation. >> >> Nevertheless those QMP Comby PHY can be statically used to >> drive a DisplayPort connector, DP->HDMI bridge, USB3 A Connector... >> >> But if a 4lanes DP->HDMI bridge is directly connected to the >> QMP Comby PHY lanes, in the default routing 2 or the 4 lanes would >> probbaly be USB3, making the DP->HDMI bridge non functional. >> >> Add a property to hint in which layout mode the QMP Comby PHY >> should be as startup. >> >> Signed-off-by: Neil Armstrong >> --- >> .../bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 13 +++++++++++++ >> 1 file changed, 13 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..129475a1d9527733e43ded5a38aad766f9810fe7 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,19 @@ properties: >> mode-switch: true >> orientation-switch: true >> >> + qcom,combo-initial-mode: >> + description: >> + Describe the initial mode of the Combo PHY configuration. >> + The Combo PHY is a wrapper on top of a DP PHY and an USB3 PHY, >> + sharing the same SuperSpeed lanes with either DisplayPort over >> + the 4 lanes (dp), USB3 on a pair of lanes (usb3) or both >> + technologies in a 2+2 configuration (usb3+dp) as default. > > SPecifying this as an initial mode means that it can be switched later. > Should we generalize this and desribe it as bus-type (from > video-interfaces.yaml) and allow it to be present only if there is no > mode-switch property? I was not sure about that, and yes we should do that instead but I'm not sure about how. bus-type sounds great, but the numbering doesn't match so I was thinking instead something like phy-type with a string or use the numbers from include/dt-bindings/phy/phy.h The thing is, do we want to keep the dual dp+usb3 as static ? I think it's very possible a board would connect the combo phy to an USB3 A connector and a 2lanes DisplayPort connector. Neil > > >> + default: usb3+dp >> + enum: >> + - usb3+dp >> + - usb3 >> + - dp >> + >> ports: >> $ref: /schemas/graph.yaml#/properties/ports >> properties: >> >> -- >> 2.34.1 >> >