linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-binding: usb: xilinx: Convert binding to YAML
@ 2021-08-26  5:34 Shubhrajyoti Datta
  2021-09-03 17:44 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Shubhrajyoti Datta @ 2021-08-26  5:34 UTC (permalink / raw)
  To: devicetree; +Cc: linux-usb, manish.narani, git, Shubhrajyoti Datta

Convert the current udc xilinx binding from text format to YAML
format/DT schema, and delete the legacy text binding file.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
---
 .../devicetree/bindings/usb/udc-xilinx.txt    | 18 --------
 .../devicetree/bindings/usb/xlnx,usb2.yaml    | 41 +++++++++++++++++++
 2 files changed, 41 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/usb/udc-xilinx.txt
 create mode 100644 Documentation/devicetree/bindings/usb/xlnx,usb2.yaml

diff --git a/Documentation/devicetree/bindings/usb/udc-xilinx.txt b/Documentation/devicetree/bindings/usb/udc-xilinx.txt
deleted file mode 100644
index 47b4e397a08d..000000000000
--- a/Documentation/devicetree/bindings/usb/udc-xilinx.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-Xilinx USB2 device controller
-
-Required properties:
-- compatible		: Should be "xlnx,usb2-device-4.00.a"
-- reg			: Physical base address and size of the USB2
-			  device registers map.
-- interrupts		: Should contain single irq line of USB2 device
-			  controller
-- xlnx,has-builtin-dma	: if DMA is included
-
-Example:
- 		axi-usb2-device@42e00000 {
-                        compatible = "xlnx,usb2-device-4.00.a";
-                        interrupts = <0x0 0x39 0x1>;
-                        reg = <0x42e00000 0x10000>;
-                        xlnx,has-builtin-dma;
-                };
-
diff --git a/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml b/Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
new file mode 100644
index 000000000000..b8acc415eaf1
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/xlnx,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/xlnx,usb2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Xilinx udc controller
+
+maintainers:
+  - Manish Narani <manish.narani@xilinx.com>
+
+properties:
+  compatible:
+    const: xlnx,usb2-device-4.00.a
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  xlnx,has-builtin-dma:
+    description:
+      If present, hardware has dma capability.
+    type: boolean
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    axi-usb2-device@42e00000 {
+        compatible = "xlnx,usb2-device-4.00.a";
+        interrupts = <0x0 0x39 0x1>;
+        reg = <0xee000000 0xc00>;
+        xlnx,has-builtin-dma;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-binding: usb: xilinx: Convert binding to YAML
  2021-08-26  5:34 [PATCH] dt-binding: usb: xilinx: Convert binding to YAML Shubhrajyoti Datta
@ 2021-09-03 17:44 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-09-03 17:44 UTC (permalink / raw)
  To: Shubhrajyoti Datta; +Cc: git, linux-usb, devicetree, manish.narani

On Thu, 26 Aug 2021 11:04:33 +0530, Shubhrajyoti Datta wrote:
> Convert the current udc xilinx binding from text format to YAML
> format/DT schema, and delete the legacy text binding file.
> 
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
> ---
>  .../devicetree/bindings/usb/udc-xilinx.txt    | 18 --------
>  .../devicetree/bindings/usb/xlnx,usb2.yaml    | 41 +++++++++++++++++++
>  2 files changed, 41 insertions(+), 18 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/usb/udc-xilinx.txt
>  create mode 100644 Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-03 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26  5:34 [PATCH] dt-binding: usb: xilinx: Convert binding to YAML Shubhrajyoti Datta
2021-09-03 17:44 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).