]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: phy: Convert qca,ar7100-usb-phy to DT schema
authorRob Herring (Arm) <robh@kernel.org>
Sat, 7 Jun 2025 21:26:23 +0000 (16:26 -0500)
committerVinod Koul <vkoul@kernel.org>
Sun, 15 Jun 2025 14:29:02 +0000 (19:59 +0530)
Convert the Qualcomm-Atheros AR7100 USB PHY binding to DT schema format.
It's a straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250607212625.744008-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/phy-ath79-usb.txt [deleted file]
Documentation/devicetree/bindings/phy/qca,ar7100-usb-phy.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/phy/phy-ath79-usb.txt b/Documentation/devicetree/bindings/phy/phy-ath79-usb.txt
deleted file mode 100644 (file)
index c3a29c5..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-* Atheros AR71XX/9XXX USB PHY
-
-Required properties:
-- compatible: "qca,ar7100-usb-phy"
-- #phys-cells: should be 0
-- reset-names: "phy"[, "suspend-override"]
-- resets: references to the reset controllers
-
-Example:
-
-       usb-phy {
-               compatible = "qca,ar7100-usb-phy";
-
-               reset-names = "phy", "suspend-override";
-               resets = <&rst 4>, <&rst 3>;
-
-               #phy-cells = <0>;
-       };
diff --git a/Documentation/devicetree/bindings/phy/qca,ar7100-usb-phy.yaml b/Documentation/devicetree/bindings/phy/qca,ar7100-usb-phy.yaml
new file mode 100644 (file)
index 0000000..0296655
--- /dev/null
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/qca,ar7100-usb-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atheros AR71XX/9XXX USB PHY
+
+maintainers:
+  - Alban Bedel <albeu@free.fr>
+
+properties:
+  compatible:
+    items:
+      - const: qca,ar7100-usb-phy
+
+  reset-names:
+    description: Names of reset lines in order.
+    minItems: 1
+    items:
+      - const: phy
+      - const: suspend-override
+
+  resets:
+    description: References to the reset controllers.
+    minItems: 1
+    items:
+      - description: Reset controller for phy
+      - description: Reset controller for suspend-override
+
+  '#phy-cells':
+    const: 0
+
+required:
+  - compatible
+  - reset-names
+  - resets
+  - '#phy-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    usb-phy {
+        compatible = "qca,ar7100-usb-phy";
+        reset-names = "phy", "suspend-override";
+        resets = <&rst 4>, <&rst 3>;
+        #phy-cells = <0>;
+    };
index 8b8828b5ac1b86fc62c7b4cab13d17e701d3b638..04cda64989c5126803a5fbb98ca637ae60368401 100644 (file)
@@ -3823,7 +3823,7 @@ M:        Alban Bedel <albeu@free.fr>
 S:     Maintained
 W:     https://github.com/AlbanBedel/linux
 T:     git git://github.com/AlbanBedel/linux
-F:     Documentation/devicetree/bindings/phy/phy-ath79-usb.txt
+F:     Documentation/devicetree/bindings/phy/qca,ar7100-usb-phy.yaml
 F:     drivers/phy/qualcomm/phy-ath79-usb.c
 
 ATHEROS ATH GENERIC UTILITIES