Skip to content

Commit 68989fe

Browse files
Roger Quadrosfelipebalbi
authored andcommitted
dt-bindings: usb: Convert cdns-usb3.txt to YAML schema
Converts cdns-usb3.txt to YAML schema cdns,usb3.yaml Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Roger Quadros <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 65f3d44 commit 68989fe

File tree

2 files changed

+92
-45
lines changed

2 files changed

+92
-45
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/cdns,usb3.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cadence USBSS-DRD controller bindings
8+
9+
maintainers:
10+
- Pawel Laszczak <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: cdns,usb3
15+
16+
reg:
17+
items:
18+
- description: OTG controller registers
19+
- description: XHCI Host controller registers
20+
- description: DEVICE controller registers
21+
22+
reg-names:
23+
items:
24+
- const: otg
25+
- const: xhci
26+
- const: dev
27+
28+
interrupts:
29+
items:
30+
- description: OTG/DRD controller interrupt
31+
- description: XHCI host controller interrupt
32+
- description: Device controller interrupt
33+
34+
interrupt-names:
35+
items:
36+
- const: host
37+
- const: peripheral
38+
- const: otg
39+
40+
dr_mode:
41+
enum: [host, otg, peripheral]
42+
43+
maximum-speed:
44+
enum: [super-speed, high-speed, full-speed]
45+
46+
phys:
47+
minItems: 1
48+
maxItems: 2
49+
50+
phy-names:
51+
minItems: 1
52+
maxItems: 2
53+
items:
54+
anyOf:
55+
- const: cdns3,usb2-phy
56+
- const: cdns3,usb3-phy
57+
58+
cdns,on-chip-buff-size:
59+
description:
60+
size of memory intended as internal memory for endpoints
61+
buffers expressed in KB
62+
$ref: /schemas/types.yaml#/definitions/uint32
63+
64+
required:
65+
- compatible
66+
- reg
67+
- reg-names
68+
- interrupts
69+
70+
additionalProperties: false
71+
72+
examples:
73+
- |
74+
#include <dt-bindings/interrupt-controller/arm-gic.h>
75+
bus {
76+
#address-cells = <2>;
77+
#size-cells = <2>;
78+
79+
usb@6000000 {
80+
compatible = "cdns,usb3";
81+
reg = <0x00 0x6000000 0x00 0x10000>,
82+
<0x00 0x6010000 0x00 0x10000>,
83+
<0x00 0x6020000 0x00 0x10000>;
84+
reg-names = "otg", "xhci", "dev";
85+
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
86+
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
87+
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
88+
interrupt-names = "host", "peripheral", "otg";
89+
maximum-speed = "super-speed";
90+
dr_mode = "otg";
91+
};
92+
};

Documentation/devicetree/bindings/usb/cdns-usb3.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)