forked from torvalds/linux
-
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: Add documentation for AM62 USB Wrapper module
Add bindings for the TI's AM62 wrapper module for the Synopsys USBSS-DRD controller. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Aswath Govindraju <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
1 parent
9244020
commit ee11ae3
Showing
1 changed file
with
103 additions
and
0 deletions.
There are no files selected for viewing
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,103 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/usb/ti,am62-usb.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: TI's AM62 wrapper module for the Synopsys USBSS-DRD controller | ||
|
||
maintainers: | ||
- Aswath Govindraju <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
const: ti,am62-usb | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
ranges: true | ||
|
||
power-domains: | ||
description: | ||
PM domain provider node and an args specifier containing | ||
the USB ISO device id value. See, | ||
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml | ||
maxItems: 1 | ||
|
||
clocks: | ||
description: Clock phandle to usb2_refclk | ||
maxItems: 1 | ||
|
||
clock-names: | ||
items: | ||
- const: ref | ||
|
||
ti,vbus-divider: | ||
description: | ||
Should be present if USB VBUS line is connected to the | ||
VBUS pin of the SoC via a 1/3 voltage divider. | ||
type: boolean | ||
|
||
ti,syscon-phy-pll-refclk: | ||
$ref: /schemas/types.yaml#/definitions/phandle-array | ||
items: | ||
- items: | ||
- description: Phandle to the SYSCON entry | ||
- description: USB phy control register offset within SYSCON | ||
description: | ||
Specifier for conveying frequency of ref clock input, for the | ||
operation of USB2PHY. | ||
|
||
'#address-cells': | ||
const: 2 | ||
|
||
'#size-cells': | ||
const: 2 | ||
|
||
patternProperties: | ||
"^usb@[0-9a-f]+$": | ||
$ref: snps,dwc3.yaml# | ||
description: Required child node | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- power-domains | ||
- clocks | ||
- clock-names | ||
- ti,syscon-phy-pll-refclk | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/soc/ti,sci_pm_domain.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
bus { | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
usbss1: usb@f910000 { | ||
compatible = "ti,am62-usb"; | ||
reg = <0x00 0x0f910000 0x00 0x800>; | ||
clocks = <&k3_clks 162 3>; | ||
clock-names = "ref"; | ||
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; | ||
power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
usb@31100000 { | ||
compatible = "snps,dwc3"; | ||
reg =<0x00 0x31100000 0x00 0x50000>; | ||
interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */ | ||
<GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */ | ||
interrupt-names = "host", "peripheral"; | ||
maximum-speed = "high-speed"; | ||
dr_mode = "otg"; | ||
}; | ||
}; | ||
}; |