diff mbox series

[v2,1/3] dt-bindings: usb: Add HPE GXP HUB Controller

Message ID 20230907210601.25284-2-richard.yu@hpe.com
State New
Headers show
Series Add USB driver for HPE GXP Architecture | expand

Commit Message

Yu, Richard Sept. 7, 2023, 9:05 p.m. UTC
From: Richard Yu <richard.yu@hpe.com>

Provide access to the two register regions for GXP HUB
controller through the hpe,gxp-hub binding.

Signed-off-by: Richard Yu <richard.yu@hpe.com>

---

v2:
 *Removed the term "virtual" as it is still a device.
 *Removed the downstream port number and generic endpoints
  number properties from device tree structure.
---
 .../devicetree/bindings/usb/hpe,gxp-hub.yaml  | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-hub.yaml

Comments

Rob Herring Sept. 11, 2023, 2:57 p.m. UTC | #1
On Thu, 07 Sep 2023 16:05:59 -0500, richard.yu@hpe.com wrote:
> From: Richard Yu <richard.yu@hpe.com>
> 
> Provide access to the two register regions for GXP HUB
> controller through the hpe,gxp-hub binding.
> 
> Signed-off-by: Richard Yu <richard.yu@hpe.com>
> 
> ---
> 
> v2:
>  *Removed the term "virtual" as it is still a device.
>  *Removed the downstream port number and generic endpoints
>   number properties from device tree structure.
> ---
>  .../devicetree/bindings/usb/hpe,gxp-hub.yaml  | 53 +++++++++++++++++++
>  1 file changed, 53 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-hub.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/usb/hpe,gxp-hub.yaml b/Documentation/devicetree/bindings/usb/hpe,gxp-hub.yaml
new file mode 100644
index 000000000000..b3e7bc42d134
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/hpe,gxp-hub.yaml
@@ -0,0 +1,53 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/hpe,gxp-hub.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE GXP USB HUB controller
+
+maintainers:
+  - Nick Hawkins <nick.hawkins@hpe.com>
+  - Richard Yu <richard.yu@hpe.com>
+
+description:
+  The HPE GXP USB HUB Controller implements 1 set of USB
+  register and several sets of device and endpoint registers to support
+  the HUB's downstream USB devices.
+
+properties:
+  compatible:
+    enum:
+      - hpe,gxp-hub
+
+  reg:
+    items:
+      - description: GXP hub (gxphub) controller register set
+      - description: Several sets of Device and Endpoint registers to support
+                     the HUB's downstream USB devices.
+
+  reg-names:
+    items:
+      - const: gxphub
+      - const: udc
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    usb-hub@80400800 {
+        compatible = "hpe,gxp-hub";
+        reg = <0x80400800 0x0200>, <0x80401000 0x8000>;
+        reg-names = "gxphub", "udc";
+        interrupts = <13>;
+        interrupt-parent = <&vic1>;
+    };