[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1646547036-14885-3-git-send-email-vincent.sunplus@gmail.com>
Date: Sun, 6 Mar 2022 14:10:36 +0800
From: Vincent Shih <vincent.sunplus@...il.com>
To: gregkh@...uxfoundation.org, stern@...land.harvard.edu,
p.zabel@...gutronix.de, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org, robh+dt@...nel.org,
devicetree@...r.kernel.org, wells.lu@...plus.com
Cc: Vincent Shih <vincent.sunplus@...il.com>
Subject: [PATCH v3 2/2] dt-bindings: usb: Add bindings doc for Sunplus EHCI driver
Add bindings doc for Sunplus EHCI driver
Signed-off-by: Vincent Shih <vincent.sunplus@...il.com>
---
Changes in v2:
- Address the comments by Rob Herring.
.../bindings/usb/sunplus,sp7021-usb-ehci.yaml | 63 ++++++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 64 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml
diff --git a/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml b/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml
new file mode 100644
index 0000000..905f68c
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) Sunplus Co., Ltd. 2021
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/sunplus,sp7021-usb-ehci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sunplus SP7021 EHCI Controller Device Tree bindings
+
+allOf:
+ - $ref: usb-hcd.yaml#
+
+maintainers:
+ - Vincent Shih <vincent.sunplus@...il.com>
+
+properties:
+ compatible:
+ const: sunplus,sp7021-usb2-ehci
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ minItems: 1
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ phys:
+ maxItems: 1
+
+ phy-names:
+ maxItems: 1
+
+required:
+ - compatible
+ - clocks
+ - resets
+ - reg
+ - interrupts
+ - phys
+ - phy-names
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ sp_ehci0: usb@...02100 {
+ compatible = "sunplus,sp7021-usb-ehci";
+ clocks = <&clkc 0x3a>;
+ resets = <&rstc 0x2a>;
+ reg = <0x9c102100 0x68>;
+ interrupt-parent = <&intc>;
+ interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
+ phys = <&sp_uphy0>;
+ phy-names = "uphy";
+ };
+ ...
diff --git a/MAINTAINERS b/MAINTAINERS
index 6c2faf3..4e66993 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -17951,6 +17951,7 @@ SUNPLUS USB EHCI DRIVER
M: Vincent Shih <vincent.sunplus@...il.com>
L: linux-usb@...r.kernel.org
S: Maintained
+F: Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml
F: drivers/usb/host/ehci-sunplus.c
SUPERH
--
2.7.4
Powered by blists - more mailing lists