linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/2] dt-bindings: phy: mtk-tphy: add property for software role switch
@ 2025-08-14 23:48 Arseniy Velikanov
  2025-08-14 23:48 ` [PATCH v1 2/2] phy: mediatek: tphy: Add software role switching Arseniy Velikanov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Arseniy Velikanov @ 2025-08-14 23:48 UTC (permalink / raw)
  To: Chunfeng Yun, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: linux-arm-kernel, linux-mediatek, linux-phy, devicetree,
	linux-kernel, ~postmarketos/upstreaming, Arseniy Velikanov

Add a boolean property to enable software control of the PHY mode
switching.

Signed-off-by: Arseniy Velikanov <me@adomerle.pw>
---
 Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
index b2218c151939..a90890d4a86f 100644
--- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
+++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml
@@ -255,6 +255,12 @@ patternProperties:
           use the property "mediatek,syscon-type" for newer SoCs that support it.
         type: boolean
 
+      mediatek,software-role-switch:
+        description:
+          Forcibly sets the phy mode. In dual-role mode, it polls
+          role switcher and manually changes mode accordingly.
+          PHY port must be linked with the role switcher via device tree graphs.
+
       mediatek,syscon-type:
         $ref: /schemas/types.yaml#/definitions/phandle-array
         maxItems: 1
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-28 20:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 23:48 [PATCH v1 1/2] dt-bindings: phy: mtk-tphy: add property for software role switch Arseniy Velikanov
2025-08-14 23:48 ` [PATCH v1 2/2] phy: mediatek: tphy: Add software role switching Arseniy Velikanov
2025-08-19  3:31   ` kernel test robot
2025-08-28 20:06   ` Igor Belwon
2025-08-15  2:29 ` [PATCH v1 1/2] dt-bindings: phy: mtk-tphy: add property for software role switch Rob Herring (Arm)
2025-08-15  6:28 ` Krzysztof Kozlowski
2025-08-24  6:25   ` Arseniy Velikanov
2025-08-24  8:18     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).