Skip to content

Commit 038fb87

Browse files
shimodayrobherring
authored andcommitted
dt-bindings: usb: renesas,usb-xhci: convert to YAML
Convert Renesas related parts of usb-xhci to YAML because they are not compatible with generic-xhci. Signed-off-by: Yoshihiro Shimoda <[email protected]> Link: https://lore.kernel.org/r/1592822252-12338-1-git-send-email-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Rob Herring <[email protected]>
1 parent 89d79ed commit 038fb87

File tree

2 files changed

+86
-18
lines changed

2 files changed

+86
-18
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/renesas,usb-xhci.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas USB xHCI controllers
8+
9+
maintainers:
10+
- Lad Prabhakar <[email protected]>
11+
- Yoshihiro Shimoda <[email protected]>
12+
13+
allOf:
14+
- $ref: "usb-hcd.yaml"
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- enum:
21+
- renesas,xhci-r8a7742 # RZ/G1H
22+
- renesas,xhci-r8a7743 # RZ/G1M
23+
- renesas,xhci-r8a7744 # RZ/G1N
24+
- renesas,xhci-r8a7790 # R-Car H2
25+
- renesas,xhci-r8a7791 # R-Car M2-W
26+
- renesas,xhci-r8a7793 # R-Car M2-N
27+
- const: renesas,rcar-gen2-xhci # R-Car Gen2 and RZ/G1
28+
- items:
29+
- enum:
30+
- renesas,xhci-r8a774a1 # RZ/G2M
31+
- renesas,xhci-r8a774b1 # RZ/G2N
32+
- renesas,xhci-r8a774c0 # RZ/G2E
33+
- renesas,xhci-r8a7795 # R-Car H3
34+
- renesas,xhci-r8a7796 # R-Car M3-W
35+
- renesas,xhci-r8a77961 # R-Car M3-W+
36+
- renesas,xhci-r8a77965 # R-Car M3-N
37+
- renesas,xhci-r8a77990 # R-Car E3
38+
- const: renesas,rcar-gen3-xhci # R-Car Gen3 and RZ/G2
39+
40+
reg:
41+
maxItems: 1
42+
43+
interrupts:
44+
maxItems: 1
45+
46+
clocks:
47+
maxItems: 1
48+
49+
phys:
50+
maxItems: 1
51+
52+
phy-names:
53+
maxItems: 1
54+
items:
55+
- const: usb
56+
57+
power-domains:
58+
maxItems: 1
59+
60+
resets:
61+
maxItems: 1
62+
63+
required:
64+
- compatible
65+
- reg
66+
- interrupts
67+
- clocks
68+
- power-domains
69+
- resets
70+
71+
additionalProperties: false
72+
73+
examples:
74+
- |
75+
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
76+
#include <dt-bindings/interrupt-controller/arm-gic.h>
77+
#include <dt-bindings/power/r8a7795-sysc.h>
78+
79+
xhci0: usb@ee000000 {
80+
compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci";
81+
reg = <0xee000000 0xc00>;
82+
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
83+
clocks = <&cpg CPG_MOD 328>;
84+
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
85+
resets = <&cpg 328>;
86+
};

Documentation/devicetree/bindings/usb/usb-xhci.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,6 @@ Required properties:
77
- "marvell,armada3700-xhci" for Armada 37xx SoCs
88
- "marvell,armada-375-xhci" for Armada 375 SoCs
99
- "marvell,armada-380-xhci" for Armada 38x SoCs
10-
- "renesas,xhci-r8a7742" for r8a7742 SoC
11-
- "renesas,xhci-r8a7743" for r8a7743 SoC
12-
- "renesas,xhci-r8a7744" for r8a7744 SoC
13-
- "renesas,xhci-r8a774a1" for r8a774a1 SoC
14-
- "renesas,xhci-r8a774b1" for r8a774b1 SoC
15-
- "renesas,xhci-r8a774c0" for r8a774c0 SoC
16-
- "renesas,xhci-r8a7790" for r8a7790 SoC
17-
- "renesas,xhci-r8a7791" for r8a7791 SoC
18-
- "renesas,xhci-r8a7793" for r8a7793 SoC
19-
- "renesas,xhci-r8a7795" for r8a7795 SoC
20-
- "renesas,xhci-r8a7796" for r8a77960 SoC
21-
- "renesas,xhci-r8a77961" for r8a77961 SoC
22-
- "renesas,xhci-r8a77965" for r8a77965 SoC
23-
- "renesas,xhci-r8a77990" for r8a77990 SoC
24-
- "renesas,rcar-gen2-xhci" for a generic R-Car Gen2 or RZ/G1 compatible
25-
device
26-
- "renesas,rcar-gen3-xhci" for a generic R-Car Gen3 or RZ/G2 compatible
27-
device
2810
- "brcm,bcm7445-xhci" for Broadcom STB SoCs with XHCI
2911
- "xhci-platform" (deprecated)
3012

0 commit comments

Comments
 (0)