[PATCH net-next v3 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller
From: Fil Dunsky via B4 Relay
Date: Thu Nov 26 2026 - 04:27:53 EST
From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
Describe the Clause 22 controller, its MDC prescaler and the devices
on its management bus.
Signed-off-by: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
---
.../bindings/net/cortina,cs7542-mdio.yaml | 52 ++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml
new file mode 100644
index 000000000..66b5199c7
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/cortina,cs7542-mdio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cortina Systems CS7542 MDIO controller
+
+maintainers:
+ - Fil Dunsky <filipp.dunsky@xxxxxxxxx>
+
+description:
+ Clause 22 MDIO controller with a programmable 16-bit MDC prescaler.
+
+allOf:
+ - $ref: mdio.yaml#
+
+properties:
+ compatible:
+ const: cortina,cs7542-mdio
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+ description: APB input clock
+
+ suppress-preamble: false
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - "#address-cells"
+ - "#size-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mdio@f00700a0 {
+ compatible = "cortina,cs7542-mdio";
+ reg = <0xf00700a0 0x14>;
+ clocks = <&apb_clk>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet-phy@0 {
+ reg = <0>;
+ };
+ };
--
2.53.0