[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250814234825.810-1-me@adomerle.pw>
Date: Fri, 15 Aug 2025 03:48:24 +0400
From: Arseniy Velikanov <me@...merle.pw>
To: Chunfeng Yun <chunfeng.yun@...iatek.com>,
Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-phy@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht,
Arseniy Velikanov <me@...merle.pw>
Subject: [PATCH v1 1/2] dt-bindings: phy: mtk-tphy: add property for software role switch
Add a boolean property to enable software control of the PHY mode
switching.
Signed-off-by: Arseniy Velikanov <me@...merle.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
Powered by blists - more mailing lists