All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] dt-bindings: usb: Convert USB HCD generic binding to YAML
@ 2019-04-16  8:27 ` Maxime Ripard
  0 siblings, 0 replies; 34+ messages in thread
From: Maxime Ripard @ 2019-04-16  8:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Mark Rutland, devicetree, Maxime Ripard, linux-usb, Chen-Yu Tsai,
	Rob Herring, Frank Rowand, linux-arm-kernel

The USB HCD generic binding is used by many USB host bindings.

In order to allow the DT validation to happen on those, let's create a YAML
description for that generic binding that can be referenced later on.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
---
 Documentation/devicetree/bindings/usb/usb-hcd.txt  |  9 +-----
 Documentation/devicetree/bindings/usb/usb-hcd.yaml | 25 +++++++++++++++-
 2 files changed, 25 insertions(+), 9 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/usb/usb-hcd.txt
 create mode 100644 Documentation/devicetree/bindings/usb/usb-hcd.yaml

diff --git a/Documentation/devicetree/bindings/usb/usb-hcd.txt b/Documentation/devicetree/bindings/usb/usb-hcd.txt
deleted file mode 100644
index 50529b838c9c..000000000000
--- a/Documentation/devicetree/bindings/usb/usb-hcd.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Generic USB HCD (Host Controller Device) Properties
-
-Optional properties:
-- phys: a list of all USB PHYs on this HCD
-
-Example:
-	&usb1 {
-		phys = <&usb2_phy1>, <&usb3_phy1>;
-	};
diff --git a/Documentation/devicetree/bindings/usb/usb-hcd.yaml b/Documentation/devicetree/bindings/usb/usb-hcd.yaml
new file mode 100644
index 000000000000..9c8c56d3a792
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/usb-hcd.yaml
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/usb-hcd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Generic USB Host Controller Device Tree Bindings
+
+maintainers:
+  - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+properties:
+  $nodename:
+    pattern: "^usb(@.*)?"
+
+  phys:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    description:
+      List of all the USB PHYs on this HCD
+
+examples:
+  - |
+    usb {
+        phys = <&usb2_phy1>, <&usb3_phy1>;
+    };

base-commit: f9221a7a1014d8a047b277a73289678646ddc110
-- 
git-series 0.9.1

^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2019-10-01 20:49 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16  8:27 [PATCH 1/6] dt-bindings: usb: Convert USB HCD generic binding to YAML Maxime Ripard
2019-04-16  8:27 ` Maxime Ripard
2019-04-16  8:27 ` Maxime Ripard
2019-04-16  8:27 ` [1/6] " Maxime Ripard
2019-04-16  8:27 ` [PATCH 2/6] dt-bindings: usb: Convert the generic OHCI " Maxime Ripard
2019-04-16  8:27   ` Maxime Ripard
2019-04-16  8:27   ` Maxime Ripard
2019-04-16  8:27   ` [2/6] " Maxime Ripard
2019-04-16  8:27 ` [PATCH 3/6] dt-bindings: usb: Convert the generic EHCI " Maxime Ripard
2019-04-16  8:27   ` Maxime Ripard
2019-04-16  8:27   ` Maxime Ripard
2019-04-16  8:27   ` [3/6] " Maxime Ripard
2019-04-16  8:28 ` [PATCH 4/6] ARM: dts: sunxi: Remove useless phy-names from EHCI and OHCI Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` [4/6] " Maxime Ripard
2019-10-01 20:42   ` [PATCH 4/6] " Emmanuel Vadot
2019-10-01 20:42     ` Emmanuel Vadot
2019-10-01 20:42     ` Emmanuel Vadot
2019-04-16  8:28 ` [PATCH 5/6] ARM: dts: sunxi: h3/h5: " Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` [5/6] " Maxime Ripard
2019-04-16  8:28 ` [PATCH 6/6] arm64: dts: allwinner: " Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` Maxime Ripard
2019-04-16  8:28   ` [6/6] " Maxime Ripard
2019-04-16  8:43   ` [PATCH 6/6] " Chen-Yu Tsai
2019-04-16  8:43     ` Chen-Yu Tsai
2019-04-16  8:43     ` Chen-Yu Tsai
2019-04-16  8:43     ` [6/6] " Chen-Yu Tsai
2019-04-17  7:58     ` [PATCH 6/6] " Maxime Ripard
2019-04-17  7:58       ` Maxime Ripard
2019-04-17  7:58       ` [6/6] " Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.