Skip to content

Commit

Permalink
dt-bindings: usb: Convert USB HCD generic binding to YAML
Browse files Browse the repository at this point in the history
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>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Maxime Ripard authored and Greg Kroah-Hartman committed Apr 16, 2019
1 parent 3bee346 commit 14ec072
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Documentation/devicetree/bindings/usb/usb-hcd.txt

This file was deleted.

25 changes: 25 additions & 0 deletions Documentation/devicetree/bindings/usb/usb-hcd.yaml
Original file line number Diff line number Diff line change
@@ -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>;
};

0 comments on commit 14ec072

Please sign in to comment.