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.
Merge tag 'usb-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/gregkh/usb Pull USB updates from Greg KH: "Here's the big USB patchset for 3.18-rc1. Also in here is the PHY tree, as it seems to fit well with the USB tree for various reasons... Anyway, lots of little changes in here, all over the place, full details in the changelog All have been in the linux-next tree for a while with no issues" * tag 'usb-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (244 commits) USB: host: st: fix typo 'CONFIG_USB_EHCI_HCD_ST' uas: Reduce number of function arguments for uas_alloc_foo functions xhci: Allow xHCI drivers to be built as separate modules xhci: Export symbols used by host-controller drivers xhci: Check for XHCI_COMP_MODE_QUIRK when disabling D3cold xhci: Introduce xhci_init_driver() usb: hcd: add generic PHY support usb: rename phy to usb_phy in HCD usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo USB: host: st: fix ehci/ohci driver selection usb: host: ehci-exynos: Remove unnecessary usb-phy support usb: core: return -ENOTSUPP for all targeted hosts USB: Remove .owner field for driver usb: core: log higher level message on malformed LANGID descriptor usb: Add LED triggers for USB activity usb: Rename usb-common.c usb: gadget: Refactor request completion usb: gadget: Introduce usb_gadget_giveback_request() usb: dwc2/gadget: move phy bus legth initialization phy: remove .owner field for drivers using module_platform_driver ...
- Loading branch information
Showing
258 changed files
with
9,501 additions
and
4,546 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,12 @@ | ||
What: /config/usb-gadget/gadget/functions/uac1.name | ||
Date: Sep 2014 | ||
KernelVersion: 3.18 | ||
Description: | ||
The attributes: | ||
|
||
audio_buf_size - audio buffer size | ||
fn_cap - capture pcm device file name | ||
fn_cntl - control device file name | ||
fn_play - playback pcm device file name | ||
req_buf_size - ISO OUT endpoint request buffer size | ||
req_count - ISO OUT endpoint request count |
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,12 @@ | ||
What: /config/usb-gadget/gadget/functions/uac2.name | ||
Date: Sep 2014 | ||
KernelVersion: 3.18 | ||
Description: | ||
The attributes: | ||
|
||
c_chmask - capture channel mask | ||
c_srate - capture sampling rate | ||
c_ssize - capture sample size (bytes) | ||
p_chmask - playback channel mask | ||
p_srate - playback sampling rate | ||
p_ssize - playback sample size (bytes) |
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 |
---|---|---|
|
@@ -43,6 +43,19 @@ Description: | |
Reading returns the currently active channel, or -1 if | ||
the radio controller is not beaconing. | ||
|
||
What: /sys/class/uwb_rc/uwbN/ASIE | ||
Date: August 2014 | ||
KernelVersion: 3.18 | ||
Contact: [email protected] | ||
Description: | ||
|
||
The application-specific information element (ASIE) | ||
included in this device's beacon, in space separated | ||
hex octets. | ||
|
||
Reading returns the current ASIE. Writing replaces | ||
the current ASIE with the one written. | ||
|
||
What: /sys/class/uwb_rc/uwbN/scan | ||
Date: July 2008 | ||
KernelVersion: 2.6.27 | ||
|
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
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,30 @@ | ||
ST STiH407 USB PHY controller | ||
|
||
This file documents the dt bindings for the usb picoPHY driver which is the PHY for both USB2 and USB3 | ||
host controllers (when controlling usb2/1.1 devices) available on STiH407 SoC family from STMicroelectronics. | ||
|
||
Required properties: | ||
- compatible : should be "st,stih407-usb2-phy" | ||
- reg : contain the offset and length of the system configuration registers | ||
used as glue logic to control & parameter phy | ||
- reg-names : the names of the system configuration registers in "reg", should be "param" and "reg" | ||
- st,syscfg : sysconfig register to manage phy parameter at driver level | ||
- resets : list of phandle and reset specifier pairs. There should be two entries, one | ||
for the whole phy and one for the port | ||
- reset-names : list of reset signal names. Should be "global" and "port" | ||
See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt | ||
See: Documentation/devicetree/bindings/reset/reset.txt | ||
|
||
Example: | ||
|
||
usb2_picophy0: usbpicophy@f8 { | ||
compatible = "st,stih407-usb2-phy"; | ||
reg = <0xf8 0x04>, /* syscfg 5062 */ | ||
<0xf4 0x04>; /* syscfg 5061 */ | ||
reg-names = "param", "ctrl"; | ||
#phy-cells = <0>; | ||
st,syscfg = <&syscfg_core>; | ||
resets = <&softreset STIH407_PICOPHY_SOFTRESET>, | ||
<&picophyreset STIH407_PICOPHY0_RESET>; | ||
reset-names = "global", "port"; | ||
}; |
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,24 @@ | ||
STMicroelectronics STiH41x USB PHY binding | ||
------------------------------------------ | ||
|
||
This file contains documentation for the usb phy found in STiH415/6 SoCs from | ||
STMicroelectronics. | ||
|
||
Required properties: | ||
- compatible : should be "st,stih416-usb-phy" or "st,stih415-usb-phy" | ||
- st,syscfg : should be a phandle of the syscfg node | ||
- clock-names : must contain "osc_phy" | ||
- clocks : must contain an entry for each name in clock-names. | ||
See: Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
- #phy-cells : must be 0 for this phy | ||
See: Documentation/devicetree/bindings/phy/phy-bindings.txt | ||
|
||
Example: | ||
|
||
usb2_phy: usb2phy@0 { | ||
compatible = "st,stih416-usb-phy"; | ||
#phy-cell = <0>; | ||
st,syscfg = <&syscfg_rear>; | ||
clocks = <&clk_sysin>; | ||
clock-names = "osc_phy"; | ||
}; |
39 changes: 39 additions & 0 deletions
39
Documentation/devicetree/bindings/phy/qcom-dwc3-usb-phy.txt
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,39 @@ | ||
Qualcomm DWC3 HS AND SS PHY CONTROLLER | ||
-------------------------------------- | ||
|
||
DWC3 PHY nodes are defined to describe on-chip Synopsis Physical layer | ||
controllers. Each DWC3 PHY controller should have its own node. | ||
|
||
Required properties: | ||
- compatible: should contain one of the following: | ||
- "qcom,dwc3-hs-usb-phy" for High Speed Synopsis PHY controller | ||
- "qcom,dwc3-ss-usb-phy" for Super Speed Synopsis PHY controller | ||
- reg: offset and length of the DWC3 PHY controller register set | ||
- #phy-cells: must be zero | ||
- clocks: a list of phandles and clock-specifier pairs, one for each entry in | ||
clock-names. | ||
- clock-names: Should contain "ref" for the PHY reference clock | ||
|
||
Optional clocks: | ||
"xo" External reference clock | ||
|
||
Example: | ||
phy@100f8800 { | ||
compatible = "qcom,dwc3-hs-usb-phy"; | ||
reg = <0x100f8800 0x30>; | ||
clocks = <&gcc USB30_0_UTMI_CLK>; | ||
clock-names = "ref"; | ||
#phy-cells = <0>; | ||
|
||
status = "ok"; | ||
}; | ||
|
||
phy@100f8830 { | ||
compatible = "qcom,dwc3-ss-usb-phy"; | ||
reg = <0x100f8830 0x30>; | ||
clocks = <&gcc USB30_0_MASTER_CLK>; | ||
clock-names = "ref"; | ||
#phy-cells = <0>; | ||
|
||
status = "ok"; | ||
}; |
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,51 @@ | ||
* Renesas R-Car generation 2 USB PHY | ||
|
||
This file provides information on what the device node for the R-Car generation | ||
2 USB PHY contains. | ||
|
||
Required properties: | ||
- compatible: "renesas,usb-phy-r8a7790" if the device is a part of R8A7790 SoC. | ||
"renesas,usb-phy-r8a7791" if the device is a part of R8A7791 SoC. | ||
- reg: offset and length of the register block. | ||
- #address-cells: number of address cells for the USB channel subnodes, must | ||
be <1>. | ||
- #size-cells: number of size cells for the USB channel subnodes, must be <0>. | ||
- clocks: clock phandle and specifier pair. | ||
- clock-names: string, clock input name, must be "usbhs". | ||
|
||
The USB PHY device tree node should have the subnodes corresponding to the USB | ||
channels. These subnodes must contain the following properties: | ||
- reg: the USB controller selector; see the table below for the values. | ||
- #phy-cells: see phy-bindings.txt in the same directory, must be <1>. | ||
|
||
The phandle's argument in the PHY specifier is the USB controller selector for | ||
the USB channel; see the selector meanings below: | ||
|
||
+-----------+---------------+---------------+ | ||
|\ Selector | | | | ||
+ --------- + 0 | 1 | | ||
| Channel \| | | | ||
+-----------+---------------+---------------+ | ||
| 0 | PCI EHCI/OHCI | HS-USB | | ||
| 2 | PCI EHCI/OHCI | xHCI | | ||
+-----------+---------------+---------------+ | ||
|
||
Example (Lager board): | ||
|
||
usb-phy@e6590100 { | ||
compatible = "renesas,usb-phy-r8a7790"; | ||
reg = <0 0xe6590100 0 0x100>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
clocks = <&mstp7_clks R8A7790_CLK_HSUSB>; | ||
clock-names = "usbhs"; | ||
|
||
usb-channel@0 { | ||
reg = <0>; | ||
#phy-cells = <1>; | ||
}; | ||
usb-channel@2 { | ||
reg = <2>; | ||
#phy-cells = <1>; | ||
}; | ||
}; |
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
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
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
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,68 @@ | ||
ST DWC3 glue logic | ||
|
||
This file documents the parameters for the dwc3-st driver. | ||
This driver controls the glue logic used to configure the dwc3 core on | ||
STiH407 based platforms. | ||
|
||
Required properties: | ||
- compatible : must be "st,stih407-dwc3" | ||
- reg : glue logic base address and USB syscfg ctrl register offset | ||
- reg-names : should be "reg-glue" and "syscfg-reg" | ||
- st,syscon : should be phandle to system configuration node which | ||
encompasses the glue registers | ||
- resets : list of phandle and reset specifier pairs. There should be two entries, one | ||
for the powerdown and softreset lines of the usb3 IP | ||
- reset-names : list of reset signal names. Names should be "powerdown" and "softreset" | ||
See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt | ||
See: Documentation/devicetree/bindings/reset/reset.txt | ||
|
||
- #address-cells, #size-cells : should be '1' if the device has sub-nodes | ||
with 'reg' property | ||
|
||
- pinctl-names : A pinctrl state named "default" must be defined | ||
See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt | ||
|
||
- pinctrl-0 : Pin control group | ||
See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt | ||
|
||
- ranges : allows valid 1:1 translation between child's address space and | ||
parent's address space | ||
|
||
Sub-nodes: | ||
The dwc3 core should be added as subnode to ST DWC3 glue as shown in the | ||
example below. The DT binding details of dwc3 can be found in: | ||
Documentation/devicetree/bindings/usb/dwc3.txt | ||
|
||
NB: The dr_mode property described in [1] is NOT optional for this driver, as the default value | ||
is "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host" | ||
or "device". | ||
|
||
[1] Documentation/devicetree/bindings/usb/generic.txt | ||
|
||
Example: | ||
|
||
st_dwc3: dwc3@8f94000 { | ||
status = "disabled"; | ||
compatible = "st,stih407-dwc3"; | ||
reg = <0x08f94000 0x1000>, <0x110 0x4>; | ||
reg-names = "reg-glue", "syscfg-reg"; | ||
st,syscfg = <&syscfg_core>; | ||
resets = <&powerdown STIH407_USB3_POWERDOWN>, | ||
<&softreset STIH407_MIPHY2_SOFTRESET>; | ||
reset-names = "powerdown", | ||
"softreset"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_usb3>; | ||
ranges; | ||
|
||
dwc3: dwc3@9900000 { | ||
compatible = "snps,dwc3"; | ||
reg = <0x09900000 0x100000>; | ||
interrupts = <GIC_SPI 155 IRQ_TYPE_NONE>; | ||
dr_mode = "host"; | ||
phys-names = "usb2-phy", "usb3-phy"; | ||
phys = <&usb2_picophy2>, <&phy_port2 MIPHY_TYPE_USB>; | ||
}; | ||
}; |
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,39 @@ | ||
ST USB EHCI controller | ||
|
||
Required properties: | ||
- compatible : must be "st,st-ehci-300x" | ||
- reg : physical base addresses of the controller and length of memory mapped | ||
region | ||
- interrupts : one EHCI interrupt should be described here | ||
- pinctrl-names : a pinctrl state named "default" must be defined | ||
- pinctrl-0 : phandle referencing pin configuration of the USB controller | ||
See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt | ||
- clocks : phandle list of usb clocks | ||
- clock-names : should be "ic" for interconnect clock and "clk48" | ||
See: Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
- phys : phandle for the PHY device | ||
- phy-names : should be "usb" | ||
- resets : phandle + reset specifier pairs to the powerdown and softreset lines | ||
of the USB IP | ||
- reset-names : should be "power" and "softreset" | ||
See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt | ||
See: Documentation/devicetree/bindings/reset/reset.txt | ||
|
||
Example: | ||
|
||
ehci1: usb@0xfe203e00 { | ||
compatible = "st,st-ehci-300x"; | ||
reg = <0xfe203e00 0x100>; | ||
interrupts = <GIC_SPI 148 IRQ_TYPE_NONE>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_usb1>; | ||
clocks = <&clk_s_a1_ls 0>; | ||
phys = <&usb2_phy>; | ||
phy-names = "usb"; | ||
status = "okay"; | ||
|
||
resets = <&powerdown STIH416_USB1_POWERDOWN>, | ||
<&softreset STIH416_USB1_SOFTRESET>; | ||
reset-names = "power", "softreset"; | ||
}; |
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
Oops, something went wrong.