diff mbox series

[1/3] dt-bindings: phy: Add lan966x-serdes binding

Message ID 20210930073822.2709955-2-horatiu.vultur@microchip.com
State Superseded
Headers show
Series Add driver for lan966x Serdes driver | expand

Commit Message

Horatiu Vultur Sept. 30, 2021, 7:38 a.m. UTC
Document the lan966x ethernet serdes phy driver bindings.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 .../phy/microchip,lan966x-serdes.yaml         | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/phy/microchip,lan966x-serdes.yaml
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/phy/microchip,lan966x-serdes.yaml b/Documentation/devicetree/bindings/phy/microchip,lan966x-serdes.yaml
new file mode 100644
index 000000000000..03a2854a2b09
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/microchip,lan966x-serdes.yaml
@@ -0,0 +1,45 @@ 
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/microchip,lan966x-serdes.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip Lan966x Serdes controller
+
+maintainers:
+  - Horatiu Vultur <horatiu.vultur@microchip.com>
+
+properties:
+  $nodename:
+    pattern: "serdes"
+
+  compatible:
+    const: microchip,lan966x-serdes
+
+  switch-syscon:
+    description: |
+      Handle to general configuration block
+    maxItems: 1
+
+  '#phy-cells':
+    const: 2
+    description: |
+      First argument represents the port index,
+      the second one represents the serdes index.
+
+required:
+  - compatible
+  - '#phy-cells'
+  - switch-syscon
+
+additionalProperties: false
+
+examples:
+  - |
+    serdes: serdes {
+      compatible = "microchip,lan966x-serdes";
+      #phy-cells = <2>;
+      switch-syscon = <&switch_ctrl>;
+    };
+
+...