From nobody Sun Dec 7 07:59:29 2025 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 74E782DF139 for ; Mon, 13 Oct 2025 08:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760345752; cv=none; b=WKGl/yt4OTs47C2FroVOEwf/ACK5wIcN6WPqTbsMZ68giYVnb8ptr2d4Xiv2XGPZIPLXGtXQTMTKh+E1UkPpuHcgxZ32N1u1XaaK4pGSB8tDbGFIidTfFCauEOLQtPcWbzYNQ7Lmzp/3zojmNgW3SOGOuXKGGblwHBHqpphXhF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760345752; c=relaxed/simple; bh=YInZ7JdDnKm+3ySHIrO7atO1XxJmgScnHOjoMAFRXss=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D4Julg5ucthnHbCV8NlNpvAi6x3iG/q0XMJYp3ohFbYBEIfPnXBZeCEsEKoe7TG159XN4NdFWW6ukcnLMIPilV0HEDgSLl3xhb7BJXXRRaQKmwR8WYytEL8FOwPijIigTUBpMjAQcTV1rSQX6aW5RUWuwW+uHJ2VhTTWnyGY8zs= 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=InZBkXCx; arc=none smtp.client-ip=209.85.128.44 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="InZBkXCx" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-46fcf9f63b6so305125e9.2 for ; Mon, 13 Oct 2025 01:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760345749; x=1760950549; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ug2JP506jPU6oV9mUJznaehPwlc7SjM420xn2UiJrHo=; b=InZBkXCx3eSg+d8S0C+i1eoRp569uo0pfFhPn4ujvn3Lyv0upRO+5rMNaB0nef1pA1 2OR+qe4KsIdnOqoT+SbPJckW3DKZHPtPvUP2ciyBzQq9ejyiNcOSwlNOUNzo4OSOeD5k GwsAlbGupQ5vz/Ub1EgpIjwBhyd4tuAHcnyc/e5Z40i6YHpedGimHGDhDCrRiwOYUI85 VC8IzOjgS1ARvWVrrftNp0CAJDmFWWYRc+mBCITx9qCQljDVJSZrX6WvyM/VSMjiLAX1 tmAh8vhPUPpoECGdzjlj7SKN+mZGoQNKWLSJmuNHTKHxqX30jFOr3NB1Y+8/YZFRgL+s hgOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760345749; x=1760950549; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ug2JP506jPU6oV9mUJznaehPwlc7SjM420xn2UiJrHo=; b=Qq/9xVEJs4bWcVBnv9kFd6WW3bni99zLsjkTA0cy2WI3Q6UkGupHfckNSIRtGYAdu9 4dJBezF45YlI1WnVPubT5GddzUDTB+NA5D19TW/YGebVV1WGTfAjWCMoti7R1Zk/NpS4 SJmN7oaSzPG3mAacIiF1F3emBufWs7KwvTyUbcta9ps7iC9I+dQJxQQDHYIIgtltpFHW tQlCkwOvf5zACvuHSreME5MV3WXRJOEam9JJAch4du2LxzC8MYQhrxkvEiR6169LNo5f 6B9qqjWw+UpiBkT3xWkPTwfnGqsIYHI0B4sOXdXxg7VB7MXDllTANsK00kHW+vLc1ex6 SWpg== X-Forwarded-Encrypted: i=1; AJvYcCXHH0x2q1G6wzFSZW23Vruc4qAlgPaKA6DoKB/ZbBRfmH1iRoaeX5fzSiXuSFI22eYARJcb0KOVuUp57yU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5xzXYlgQznS72RjF7rac1SCtbpKMvhPV4xDJlOC91hVntkcuT 8HjVdT8IhyKau7KodkM/vRV1G20YpYL+DEqmiykT6zWQJP5HVRPrpSeMNTSKSSNsb9g= X-Gm-Gg: ASbGncv+imAhGGVEf/biOg4G7tOODEzJPFDtrTMFW+wNtDQApqARvFSZxK631XuNLKk R07RuXjEoHsk7bI5roXv/JswF9zcFabnk+IMsv9F/2SUqwGEXY+8a9PsYN0o7JcRhmzveKpmXEm qXAsOOBSSlojE/BlwTMQ+LwyilnhhT+WoTHO63lEAFKTBgX3cYjKhH16GRgYQJfFi6Gs+GB7mCV ltYpGVSZ2ULnGIY5bZlY7U+75r0+NkUXV3PORDsfWxb/BJtFR9hFUs8+/S9luW0cdKomIiZzFog LbEZEEqdnW0g/qi6/EEKFJaaYzQ1oJkig1pyI3okZojw5r3wcWPwDHsZZe3JVkduO0R+Z0uatu5 9/LPKHL9ZmYTDJ9uwFwnN46lz+MNe1Z5CdO+1yNWj3Z+HP9JM3Wd+k5jrb6ebkhVy8jldod9p1H W2 X-Google-Smtp-Source: AGHT+IFkkKhoPoiX2gIHcO200+09cQucP0qOjPbv6Cg43ssSNoNhPTs5o6d4q5dqr00kEd/iN89opw== X-Received: by 2002:a05:600c:474d:b0:459:d451:3364 with SMTP id 5b1f17b1804b1-46fa9af81d5mr129042165e9.24.1760345748522; Mon, 13 Oct 2025 01:55:48 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:3d9:2080:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46fb482b99fsm180016185e9.3.2025.10.13.01.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 01:55:48 -0700 (PDT) From: Neil Armstrong Date: Mon, 13 Oct 2025 10:55:44 +0200 Subject: [PATCH v6 1/3] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document lanes mapping when not using in USB-C complex Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251013-topic-x1e80100-hdmi-v6-1-3a9c8f7506d6@linaro.org> References: <20251013-topic-x1e80100-hdmi-v6-0-3a9c8f7506d6@linaro.org> In-Reply-To: <20251013-topic-x1e80100-hdmi-v6-0-3a9c8f7506d6@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: Xilin Wu , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4604; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=YInZ7JdDnKm+3ySHIrO7atO1XxJmgScnHOjoMAFRXss=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBo7L6RKFwecC4ug35Nf9hYward7etahAYeYcyqNVfb WyPBtqyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCaOy+kQAKCRB33NvayMhJ0YYqD/ 9wLDZpyaY6Fl0ogqJyb8JcMz1Wmfb6Ex0CL1taieTC2xRBP62d76AKVbPFnpQBYdOi9iaA9dkrqq2H H5FlIEjiDBGYZ6c3oM7a0WQ4bI03gGc26WYp/QMbLCjtsekQmW/WM6nnkzjh/8ZezAuI/YhmQjjaYc iSRCeh1DROCFU9pLwm+UgWgWMCIcLCT7aO9U23ykBuTTe2mojYpiI2y2o8U9KNPkEZOa9U1lHTl2rY Z+Va5zJGYehIU6T5G1qPyijQtwiR3u2kK1lWipYvpK0i7Ttx6lCnA7L3mJgRODHv11UvVx4nbACFUA BcMryB2WQr/haGK63EP5nNnOQFtjv88Jaj2iJ12LJyNuK1QXUMHkYAkZpelRCt78ltyQJ5FtdY1E+h rf/mf/JqF8c/nrBGTjgdpiaCpDSvrjChxiX4onN2SSCaXCE680A8j67nbGAq/zA71E4xV5/baNvqyw p/PW033Ur1XYfs+KfVVhuK1GKDGN4su51Tn04JqRmx/UMrYF3WL+PC5cXuAEO+B033nD/3Oq2dY3k3 PpWHUu3r0+7+ylAApY7bGnnuGvqcThttk/taMtTLhhhxr304zjvj24CakTlv3EZBY2SJqJ6rGTdbkn ETILuSIXPhTdMwTKZjqFEs1Sy+Uz4Uq/N884iQeaRqJ/gPa/ptkOT2p8Kxsg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE 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 used to drive a DisplayPort connector, DP->HDMI bridge, USB3 A Connector, etc... without an USB-C connector and no PD events. Document the data-lanes on numbered port@0 out endpoints, allowing us to document the lanes mapping to DisplayPort and/or USB3 connectors/peripherals. Reviewed-by: Rob Herring (Arm) Signed-off-by: Neil Armstrong --- .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 69 ++++++++++++++++++= +++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43d= p-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43d= p-phy.yaml index bdf7894ff84869030252f64f20acb4f920fd19e9..1d7a7f0f356b11e080fc8d6c88a= 0c97be88a25a4 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.y= aml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.y= aml @@ -85,10 +85,77 @@ properties: =20 ports: $ref: /schemas/graph.yaml#/properties/ports + properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base description: Output endpoint of the PHY + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + endpoint@0: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + description: Display Port Output lanes of the PHY when used wi= th static mapping, + The entry index is the DP lanes index, and the nu= mber is the PHY + signal in the order RX0, TX0, TX1, RX1. + unevaluatedProperties: false + + properties: + # Static lane mappings are mutually exclusive with typec-mux= /orientation-mux + data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 4 + oneOf: + - items: # DisplayPort 1 lane, normal orientation + - const: 3 + - items: # DisplayPort 1 lane, flipped orientation + - const: 0 + - items: # DisplayPort 2 lanes, normal orientation + - const: 3 + - const: 2 + - items: # DisplayPort 2 lanes, flipped orientation + - const: 0 + - const: 1 + - items: # DisplayPort 4 lanes, normal orientation + - const: 3 + - const: 2 + - const: 1 + - const: 0 + - items: # DisplayPort 4 lanes, flipped orientation + - const: 0 + - const: 1 + - const: 2 + - const: 3 + required: + - data-lanes + + endpoint@1: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + description: USB Output lanes of the PHY when used with static= mapping. + The entry index is the USB3 lane in the order TX = then RX, and the + number is the PHY signal in the order RX0, TX0, T= X1, RX1. + unevaluatedProperties: false + + properties: + # Static lane mappings are mutually exclusive with typec-mux= /orientation-mux + data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + oneOf: + - items: # USB3, normal orientation + - const: 1 + - const: 0 + - items: # USB3, flipped orientation + - const: 2 + - const: 3 + + required: + - data-lanes =20 port@1: $ref: /schemas/graph.yaml#/properties/port --=20 2.34.1