[PATCH 1/3] dt-bindings: phy: Add lan966x-serdes binding
From: Horatiu Vultur
Date: Thu Sep 30 2021 - 03:39:42 EST
Document the lan966x ethernet serdes phy driver bindings.
Signed-off-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>
---
.../phy/microchip,lan966x-serdes.yaml | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/microchip,lan966x-serdes.yaml
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@xxxxxxxxxxxxx>
+
+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>;
+ };
+
+...
--
2.33.0