Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-binding: usb: xilinx: Convert binding to YAML

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>
Link: https://lore.kernel.org/r/20210826053433.1599019-1-shubhrajyoti.datta@xilinx.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Shubhrajyoti Datta and committed by
Rob Herring
ecc4103f 6880fa6c

+41 -18
-18
Documentation/devicetree/bindings/usb/udc-xilinx.txt
··· 1 - Xilinx USB2 device controller 2 - 3 - Required properties: 4 - - compatible : Should be "xlnx,usb2-device-4.00.a" 5 - - reg : Physical base address and size of the USB2 6 - device registers map. 7 - - interrupts : Should contain single irq line of USB2 device 8 - controller 9 - - xlnx,has-builtin-dma : if DMA is included 10 - 11 - Example: 12 - axi-usb2-device@42e00000 { 13 - compatible = "xlnx,usb2-device-4.00.a"; 14 - interrupts = <0x0 0x39 0x1>; 15 - reg = <0x42e00000 0x10000>; 16 - xlnx,has-builtin-dma; 17 - }; 18 -
+41
Documentation/devicetree/bindings/usb/xlnx,usb2.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/xlnx,usb2.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Xilinx udc controller 8 + 9 + maintainers: 10 + - Manish Narani <manish.narani@xilinx.com> 11 + 12 + properties: 13 + compatible: 14 + const: xlnx,usb2-device-4.00.a 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + xlnx,has-builtin-dma: 23 + description: 24 + If present, hardware has dma capability. 25 + type: boolean 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - interrupts 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + axi-usb2-device@42e00000 { 37 + compatible = "xlnx,usb2-device-4.00.a"; 38 + interrupts = <0x0 0x39 0x1>; 39 + reg = <0xee000000 0xc00>; 40 + xlnx,has-builtin-dma; 41 + };