Skip to content

Commit

Permalink
dt-bindings: usb: Convert jz4740-musb doc to YAML
Browse files Browse the repository at this point in the history
Convert ingenic,jz4740-musb.txt to ingenic,musb.yaml, and add the
new ingenic,jz4770-musb and ingenic,jz4725b-musb compatible strings
in the process.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200316211136.2274-3-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Paul Cercueil authored and Greg Kroah-Hartman committed Mar 17, 2020
1 parent c87c273 commit 2f6a0e6
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 32 deletions.
32 changes: 0 additions & 32 deletions Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt

This file was deleted.

76 changes: 76 additions & 0 deletions Documentation/devicetree/bindings/usb/ingenic,musb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/ingenic,musb.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Ingenic JZ47xx USB IP DT bindings

maintainers:
- Paul Cercueil <paul@crapouillou.net>

properties:
$nodename:
pattern: '^usb@.*'

compatible:
oneOf:
- enum:
- ingenic,jz4770-musb
- ingenic,jz4740-musb
- items:
- const: ingenic,jz4725b-musb
- const: ingenic,jz4740-musb

reg:
maxItems: 1

clocks:
maxItems: 1

clock-names:
items:
- const: udc

interrupts:
maxItems: 1

interrupt-names:
items:
- const: mc

phys:
description: PHY specifier for the USB PHY

required:
- compatible
- reg
- clocks
- clock-names
- interrupts
- interrupt-names
- phys

additionalProperties: false

examples:
- |
#include <dt-bindings/clock/jz4740-cgu.h>
usb_phy: usb-phy@0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
udc: usb@13040000 {
compatible = "ingenic,jz4740-musb";
reg = <0x13040000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <24>;
interrupt-names = "mc";
clocks = <&cgu JZ4740_CLK_UDC>;
clock-names = "udc";
phys = <&usb_phy>;
};

0 comments on commit 2f6a0e6

Please sign in to comment.