-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path0063-dt-bindings-Add-bindings-for-Phytium-USBHS-DRD-contr.patch
79 lines (75 loc) · 2.37 KB
/
0063-dt-bindings-Add-bindings-for-Phytium-USBHS-DRD-contr.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
From da7cae8281c62af9f99e14e1d37d8c65a9003ef0 Mon Sep 17 00:00:00 2001
From: Chen Baozi <[email protected]>
Date: Mon, 17 Jun 2024 19:33:05 +0800
Subject: [PATCH 063/150] dt-bindings: Add bindings for Phytium USBHS-DRD
controller
This patch documents the DT binding for the Phytium USBHS-DRD controller.
Signed-off-by: Chen Baozi <[email protected]>
Change-Id: I3188575100720f6915714824aea521e76dfe6956
Signed-off-by: Andrew Powers-Holmes <[email protected]>
---
.../devicetree/bindings/usb/phytium,usb2.yaml | 41 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/phytium,usb2.yaml
diff --git a/Documentation/devicetree/bindings/usb/phytium,usb2.yaml b/Documentation/devicetree/bindings/usb/phytium,usb2.yaml
new file mode 100644
index 000000000000..caf762039f04
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/phytium,usb2.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/phytium,usb2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Phytium USBHS-DRD controller bindings
+
+maintainers:
+ - Chen Baozi <[email protected]>
+
+properties:
+ compatible:
+ const: phytium,usb2
+
+ reg:
+ items:
+ - description: USB controller registers
+ - description: PHY registers
+
+ interrupts:
+ maxItems: 1
+
+ dr_mode:
+ enum: [host, otg, peripheral]
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ usb2_0: usb2@31800000 {
+ compatible = "phytium,usb2";
+ reg = <0x0 0x31800000 0x0 0x80000>,
+ <0x0 0x31990000 0x0 0x10000>;
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 4673a8ae40d4..dc94f7555aec 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2552,6 +2552,7 @@ F: Documentation/devicetree/bindings/rng/phytium,rng.yaml
F: Documentation/devicetree/bindings/sound/phytium,hda.yaml
F: Documentation/devicetree/bindings/spi/phytium,qspi-nor.yaml
F: Documentation/devicetree/bindings/spi/phytium,spi.yaml
+F: Documentation/devicetree/bindings/usb/phytium,usb2.yaml
F: Documentation/devicetree/bindings/w1/phytium,w1.yaml
F: arch/arm64/boot/dts/phytium/*
F: drivers/char/hw_random/phytium-rng.c
--
2.47.0