From: Neil Armstrong <neil.armstrong@linaro.org>
The QMP USB3/DP Combo PHY can work in 3 modes:
- DisplayPort Only
- USB3 Only
- USB3 + DisplayPort Combo mode
In order to switch between those modes, the PHY needs to receive
Type-C events, allow marking to the phy with the mode-switch
property in order to allow the PHY to Type-C events.
Reference usb-switch.yaml as a simpler way to allow the mode-switch
property instead of duplicating the property definition.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
.../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 7 +++----
1 file changed, 3 insertions(+), 4 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 38ce04c35d945d0d8d319191c241920810ee9005..c8bc512df08b5694c8599f475de78679a4438449 100644
--- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
@@ -73,10 +73,8 @@ properties:
description:
See include/dt-bindings/phy/phy-qcom-qmp.h
- orientation-switch:
- description:
- Flag the PHY as possible handler of USB Type-C orientation switching
- type: boolean
+ mode-switch: true
+ orientation-switch: true
ports:
$ref: /schemas/graph.yaml#/properties/ports
@@ -106,6 +104,7 @@ required:
- "#phy-cells"
allOf:
+ - $ref: /schemas/usb/usb-switch.yaml#
- if:
properties:
compatible:
--
2.50.1
On Thu, Aug 07, 2025 at 06:33:19PM +0200, Konrad Dybcio wrote: > From: Neil Armstrong <neil.armstrong@linaro.org> > > The QMP USB3/DP Combo PHY can work in 3 modes: > - DisplayPort Only > - USB3 Only > - USB3 + DisplayPort Combo mode > > In order to switch between those modes, the PHY needs to receive > Type-C events, allow marking to the phy with the mode-switch > property in order to allow the PHY to Type-C events. > > Reference usb-switch.yaml as a simpler way to allow the mode-switch > property instead of duplicating the property definition. > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> > Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> > --- > .../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 7 +++---- > 1 file changed, 3 insertions(+), 4 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 38ce04c35d945d0d8d319191c241920810ee9005..c8bc512df08b5694c8599f475de78679a4438449 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml > @@ -73,10 +73,8 @@ properties: > description: > See include/dt-bindings/phy/phy-qcom-qmp.h > > - orientation-switch: > - description: > - Flag the PHY as possible handler of USB Type-C orientation switching > - type: boolean > + mode-switch: true > + orientation-switch: true > > ports: > $ref: /schemas/graph.yaml#/properties/ports > @@ -106,6 +104,7 @@ required: > - "#phy-cells" > > allOf: > + - $ref: /schemas/usb/usb-switch.yaml# As reported already in this thread, this adds a crap load of warnings as it makes ports or port required. Sigh. Can QCom folks pay more attention to this please. Every cycle the number goes up though that's often temporary because there's no coordination of taking .dts files after bindings. But generally, progress on QCom warnings has stalled. Here's the top (bottom?) platforms in arm64. The first number is total warnings. The 2nd number is unique warnings (to remove inflated numbers due to lots of boards per SoC). mediatek:785:166 hisilicon:133:112 qcom:362:104 broadcom:286:104 marvell:558:80 apm:78:58 rockchip:128:57 nvidia:199:53 sprd:30:29 xilinx:94:22 Congrats on 3rd place. There's a bunch of pending Mediatek fixes, so I expect you all will move up to 2nd soon. All this data is updated daily. There's some scripts to get and process the logs here[1]. Rob [1] https://gitlab.com/robherring/ci-jobs.git
On 8/22/25 11:20 PM, Rob Herring wrote: > On Thu, Aug 07, 2025 at 06:33:19PM +0200, Konrad Dybcio wrote: >> From: Neil Armstrong <neil.armstrong@linaro.org> >> >> The QMP USB3/DP Combo PHY can work in 3 modes: >> - DisplayPort Only >> - USB3 Only >> - USB3 + DisplayPort Combo mode >> >> In order to switch between those modes, the PHY needs to receive >> Type-C events, allow marking to the phy with the mode-switch >> property in order to allow the PHY to Type-C events. >> >> Reference usb-switch.yaml as a simpler way to allow the mode-switch >> property instead of duplicating the property definition. >> >> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> >> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> >> --- >> .../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 7 +++---- >> 1 file changed, 3 insertions(+), 4 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 38ce04c35d945d0d8d319191c241920810ee9005..c8bc512df08b5694c8599f475de78679a4438449 100644 >> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >> @@ -73,10 +73,8 @@ properties: >> description: >> See include/dt-bindings/phy/phy-qcom-qmp.h >> >> - orientation-switch: >> - description: >> - Flag the PHY as possible handler of USB Type-C orientation switching >> - type: boolean >> + mode-switch: true >> + orientation-switch: true >> >> ports: >> $ref: /schemas/graph.yaml#/properties/ports >> @@ -106,6 +104,7 @@ required: >> - "#phy-cells" >> >> allOf: >> + - $ref: /schemas/usb/usb-switch.yaml# > > As reported already in this thread, this adds a crap load of warnings as > it makes ports or port required. Sigh. Can QCom folks pay more attention > to this please. Every cycle the number goes up though that's often > temporary because there's no coordination of taking .dts files after > bindings. But generally, progress on QCom warnings has stalled. > > Here's the top (bottom?) platforms in arm64. The first number is > total warnings. The 2nd number is unique warnings (to remove inflated > numbers due to lots of boards per SoC). I'm sorry this happened, Rob. I assumed this was a solved problem as I picked up this series, but of course not testing always ends up biting.. Konrad
On 04/09/2025 17:18, Konrad Dybcio wrote: > On 8/22/25 11:20 PM, Rob Herring wrote: >> On Thu, Aug 07, 2025 at 06:33:19PM +0200, Konrad Dybcio wrote: >>> From: Neil Armstrong <neil.armstrong@linaro.org> >>> >>> The QMP USB3/DP Combo PHY can work in 3 modes: >>> - DisplayPort Only >>> - USB3 Only >>> - USB3 + DisplayPort Combo mode >>> >>> In order to switch between those modes, the PHY needs to receive >>> Type-C events, allow marking to the phy with the mode-switch >>> property in order to allow the PHY to Type-C events. >>> >>> Reference usb-switch.yaml as a simpler way to allow the mode-switch >>> property instead of duplicating the property definition. >>> >>> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> >>> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> >>> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> >>> --- >>> .../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 7 +++---- >>> 1 file changed, 3 insertions(+), 4 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 38ce04c35d945d0d8d319191c241920810ee9005..c8bc512df08b5694c8599f475de78679a4438449 100644 >>> --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml >>> @@ -73,10 +73,8 @@ properties: >>> description: >>> See include/dt-bindings/phy/phy-qcom-qmp.h >>> >>> - orientation-switch: >>> - description: >>> - Flag the PHY as possible handler of USB Type-C orientation switching >>> - type: boolean >>> + mode-switch: true >>> + orientation-switch: true >>> >>> ports: >>> $ref: /schemas/graph.yaml#/properties/ports >>> @@ -106,6 +104,7 @@ required: >>> - "#phy-cells" >>> >>> allOf: >>> + - $ref: /schemas/usb/usb-switch.yaml# >> >> As reported already in this thread, this adds a crap load of warnings as >> it makes ports or port required. Sigh. Can QCom folks pay more attention >> to this please. Every cycle the number goes up though that's often >> temporary because there's no coordination of taking .dts files after >> bindings. But generally, progress on QCom warnings has stalled. >> >> Here's the top (bottom?) platforms in arm64. The first number is >> total warnings. The 2nd number is unique warnings (to remove inflated >> numbers due to lots of boards per SoC). > > I'm sorry this happened, Rob. > > I assumed this was a solved problem as I picked up this series, but > of course not testing always ends up biting.. My bad actually, I didn't figure out the ports definition would conflict, I sent a fixup patch at https://lore.kernel.org/all/20250902-topic-sm8x50-fix-qmp-usb43dp-usb-switch-v1-1-5b4a51c8c5a8@linaro.org/ Neil > > Konrad
© 2016 - 2025 Red Hat, Inc.