-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: usb: Convert jz4740-musb doc to YAML
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
Showing
2 changed files
with
76 additions
and
32 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; |