[PATCH 1/2] dt-bindings: net: snps,dwmac: document the snps,shared-mdio property

Bartosz Golaszewski
2023-08-07T19:31:42Z

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Two MACs may share one MDIO lines to their respective PHYs. In this case
one of the MACs is the logical "owner" of the bus, while the other can be
considered a secondary controller. Add a new property that allows one
MAC node to reference the MDIO node on a different MAC over a phandle.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index ddf9522a5dc2..f9c2285674d1 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -500,6 +500,12 @@ properties:
required:
- compatible

+ snps,shared-mdio:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ Phandle to the mdio node defined on a different MAC node which this
+ device shares.
+
stmmac-axi-config:
type: object
unevaluatedProperties: false
--
2.39.2