[PATCH v1 1/3] dt-bindings: usb: Add HPE GXP UDCG Controller

From: richard . yu
Date: Thu Jul 06 2023 - 18:04:07 EST


From: Richard Yu <richard.yu@xxxxxxx>

Provide access to the two register regions for GXP Virtual EHCI
controller through the hpe,gxp-udcg binding.

Signed-off-by: Richard Yu <richard.yu@xxxxxxx>
---
.../devicetree/bindings/usb/hpe,gxp-udcg.yaml | 70 +++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml

diff --git a/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml b/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml
new file mode 100644
index 000000000000..e6746374f97d
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/hpe,gxp-udcg.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE GXP USB Virtual EHCI controller
+
+maintainers:
+ - Nick Hawkins <nick.hawkins@xxxxxxx>
+ - Richard Yu <richard.yu@xxxxxxx>
+
+description: |+
+ The HPE GXP USB Virtual EHCI Controller implements 1 set of USB EHCI
+ register and several sets of device and endpoint registers to support
+ the virtual EHCI's downstream USB devices.
+
+properties:
+ compatible:
+ enum:
+ - hpe,gxp-udcg
+
+ reg:
+ items:
+ - description: UDC Global (UDCG) config controller
+ - description: UDC Invidual config/interrupt controllers
+
+ reg-names:
+ items:
+ - const: udcg
+ - const: udc
+
+ interrupts:
+ maxItems: 1
+
+ hpe,vehci-downstream-ports:
+ description: Number of downstream ports supported by the GXP
+ $ref: /schemas/types.yaml#/definitions/uint32
+ default: 4
+ minimum: 1
+ maximum: 8
+
+ hpe,vehci-generic-endpoints:
+ description: Number of generic endpoints supported by the GXP
+ $ref: /schemas/types.yaml#/definitions/uint32
+ default: 16
+ minimum: 1
+ maximum: 16
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - interrupts
+ - hpe,vehci-downstream-ports
+ - hpe,vehci-generic-endpoints
+
+additionalProperties: false
+
+examples:
+ - |
+ udcg@80400800 {
+ compatible = "hpe,gxp-udcg";
+ reg = <0x80400800 0x0200>, <0x80401000 0x8000>;
+ reg-names = "udcg", "udc";
+ interrupts = <13>;
+ interrupt-parent = <&vic1>;
+ hpe,vehci-downstream-ports = <4>;
+ hpe,vehci-generic-endpoints = <16>;
+ };
--
2.17.1