]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: phy: samsung,usb3-drd-phy: gs101: require Type-C properties
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 6 Dec 2024 16:31:02 +0000 (16:31 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2025 17:12:52 +0000 (22:42 +0530)
commitc38528812c2e9b05fe8b5fd1f66cf4c75835a38e
treeb2042538bbaec5de38b21e2697e0996d82dc131c
parent642b1ed4cd184d5c2e5814c220bb93453492644d
dt-bindings: phy: samsung,usb3-drd-phy: gs101: require Type-C properties

orientation-switch is the standard declaration to inform the Type-C mux
layer that a remote-endpoint is capable of processing orientation
change messages.

The USB PHY on gs101 needs to be configured based on the orientation of
the connector. For that the DTS needs a link between the phy's port and
a TCPCi, and we'll need to inform the phy driver that it should handle
the orientation (register a handler).

Update the schema to enforce that by requiring the orientation-switch
and port properties on gs101 (only). We disallow orientation-switch on
all other supported platforms, since other versions of this phy (or its
system integration) don't currently support or even need it.

Even though this new required gs101 property is an ABI break, the
intention for the driver is to behave as before if it's missing
(meaning for gs101 it will work in SS mode in one orientation only).
Other platforms are not affected.

Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Tested-by: Will McVicker <willmcvicker@google.com>
Link: https://lore.kernel.org/r/20241206-gs101-phy-lanes-orientation-phy-v4-2-f5961268b149@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml