Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05db0dcc authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Greg Kroah-Hartman
Browse files

dt-bindings: usb: add the documentation for USB HCDs



A USB HCD may have several PHYs which need to be configured before the
the HCD starts working.
This adds the documentation for such a USB HCD as well as a reference to
the new "usb-hcd.txt" from all bindings that implement a USB HCD which
support one USB PHY per port.

Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Tested-by: default avatarYixun Lan <yixun.lan@amlogic.com>
Tested-by: default avatarNeil Armstrong <narmstrong@baylibre.con>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01812ba3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ Required properties:
	"mcu_ck": mcu_bus clock for register access,
	"dma_ck": dma_bus clock for data transfer by DMA

 - phys : a list of phandle + phy specifier pairs
 - phys : see usb-hcd.txt in the current directory

Optional properties:
 - wakeup-source : enable USB remote wakeup;
@@ -52,6 +52,9 @@ Optional properties:
	See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
 - imod-interval-ns: default interrupt moderation interval is 5000ns

additionally the properties from usb-hcd.txt (in the current directory) are
supported.

Example:
usb30: usb@11270000 {
	compatible = "mediatek,mt8173-xhci";
+4 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ Required properties:
 - clock-names : must contain "sys_ck" for clock of controller,
	the following clocks are optional:
	"ref_ck", "mcu_ck" and "dam_ck";
 - phys : a list of phandle + phy specifier pairs
 - phys : see usb-hcd.txt in the current directory
 - dr_mode : should be one of "host", "peripheral" or "otg",
	refer to usb/generic.txt

@@ -53,6 +53,9 @@ Optional properties:
 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
	bit1 for u3port1, ... etc;

additionally the properties from usb-hcd.txt (in the current directory) are
supported.

Sub-nodes:
The xhci should be added as subnode to mtu3 as shown in the following example
if host mode is enabled. The DT binding details of xhci can be found in:
+4 −2
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@ Optional properties:
 - has-transaction-translator : boolean, set this if EHCI have a Transaction
				Translator built into the root hub.
 - clocks : a list of phandle + clock specifier pairs
 - phys : phandle + phy specifier pair
 - phy-names : "usb"
 - phys : see usb-hcd.txt in the current directory
 - resets : phandle + reset specifier pair

additionally the properties from usb-hcd.txt (in the current directory) are
supported.

Example (Sequoia 440EPx):
    ehci@e0000300 {
	   compatible = "ibm,usb-ehci-440epx", "usb-ehci";
+9 −0
Original line number Diff line number Diff line
Generic USB HCD (Host Controller Device) Properties

Optional properties:
- phys: a list of all USB PHYs on this HCD

Example:
	&usb1 {
		phys = <&usb2_phy1>, <&usb3_phy1>;
	};
+4 −2
Original line number Diff line number Diff line
@@ -13,10 +13,12 @@ Optional properties:
- remote-wakeup-connected: remote wakeup is wired on the platform
- num-ports : u32, to override the detected port count
- clocks : a list of phandle + clock specifier pairs
- phys : phandle + phy specifier pair
- phy-names : "usb"
- phys : see usb-hcd.txt in the current directory
- resets : a list of phandle + reset specifier pairs

additionally the properties from usb-hcd.txt (in the current directory) are
supported.

Example:

	ohci0: usb@1c14400 {
Loading