Skip to content

Commit c6b48da

Browse files
committed
Merge tag 'usb-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB updates from Greg KH: "Here is the big set of USB patches for 5.4-rc1. Two major chunks of code are moving out of the tree and into the staging directory, uwb and wusb (wireless USB support), because there are no devices that actually use this protocol anymore, and what we have today probably doesn't work at all given that the maintainers left many many years ago. So move it to staging where it will be removed in a few releases if no one screams. Other than that, lots of little things. The usual gadget and xhci and usb serial driver updates, along with a bunch of sysfs file cleanups due to the driver core changes to support that. Nothing really major, just constant forward progress. All of these have been in linux-next for a while with no reported issues" * tag 'usb-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (159 commits) USB: usbcore: Fix slab-out-of-bounds bug during device reset usb: cdns3: Remove redundant dev_err call in cdns3_probe() USB: rio500: Fix lockdep violation USB: rio500: simplify locking usb: mtu3: register a USB Role Switch for dual role mode usb: common: add USB GPIO based connection detection driver usb: common: create Kconfig file usb: roles: get usb-role-switch from parent usb: roles: Add fwnode_usb_role_switch_get() function device connection: Add fwnode_connection_find_match() usb: roles: Introduce stubs for the exiting functions in role.h dt-bindings: usb: mtu3: add properties about USB Role Switch dt-bindings: usb: add binding for USB GPIO based connection detection driver dt-bindings: connector: add optional properties for Type-B dt-binding: usb: add usb-role-switch property usbip: Implement SG support to vhci-hcd and stub driver usb: roles: intel: Enable static DRD mode for role switch xhci-ext-caps.c: Add property to disable Intel SW switch usb: dwc3: remove generic PHY calibrate() calls usb: core: phy: add support for PHY calibration ...
2 parents 1f7d290 + fb9617e commit c6b48da

310 files changed

Lines changed: 10289 additions & 2442 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/connector/usb-connector.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ Optional properties:
1717
- self-powered: Set this property if the usb device that has its own power
1818
source.
1919

20+
Optional properties for usb-b-connector:
21+
- id-gpios: an input gpio for USB ID pin.
22+
- vbus-gpios: an input gpio for USB VBUS pin, used to detect presence of
23+
VBUS 5V.
24+
see gpio/gpio.txt.
25+
- vbus-supply: a phandle to the regulator for USB VBUS if needed when host
26+
mode or dual role mode is supported.
27+
Particularly, if use an output GPIO to control a VBUS regulator, should
28+
model it as a regulator.
29+
see regulator/fixed-regulator.yaml
30+
- pinctrl-names : a pinctrl state named "default" is optional
31+
- pinctrl-0 : pin control group
32+
see pinctrl/pinctrl-bindings.txt
33+
2034
Optional properties for usb-c-connector:
2135
- power-role: should be one of "source", "sink" or "dual"(DRP) if typec
2236
connector has power support.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Binding for the Cadence USBSS-DRD controller
2+
3+
Required properties:
4+
- reg: Physical base address and size of the controller's register areas.
5+
Controller has 3 different regions:
6+
- HOST registers area
7+
- DEVICE registers area
8+
- OTG/DRD registers area
9+
- reg-names - register memory area names:
10+
"xhci" - for HOST registers space
11+
"dev" - for DEVICE registers space
12+
"otg" - for OTG/DRD registers space
13+
- compatible: Should contain: "cdns,usb3"
14+
- interrupts: Interrupts used by cdns3 controller:
15+
"host" - interrupt used by XHCI driver.
16+
"peripheral" - interrupt used by device driver
17+
"otg" - interrupt used by DRD/OTG part of driver
18+
19+
Optional properties:
20+
- maximum-speed : valid arguments are "super-speed", "high-speed" and
21+
"full-speed"; refer to usb/generic.txt
22+
- dr_mode: Should be one of "host", "peripheral" or "otg".
23+
- phys: reference to the USB PHY
24+
- phy-names: from the *Generic PHY* bindings;
25+
Supported names are:
26+
- cdns3,usb2-phy
27+
- cdns3,usb3-phy
28+
29+
- cdns,on-chip-buff-size : size of memory intended as internal memory for endpoints
30+
buffers expressed in KB
31+
32+
Example:
33+
usb@f3000000 {
34+
compatible = "cdns,usb3";
35+
interrupts = <GIC_USB_IRQ 7 IRQ_TYPE_LEVEL_HIGH>,
36+
<GIC_USB_IRQ 7 IRQ_TYPE_LEVEL_HIGH>,
37+
<GIC_USB_IRQ 8 IRQ_TYPE_LEVEL_HIGH>;
38+
interrupt-names = "host", "peripheral", "otg";
39+
reg = <0xf3000000 0x10000>, /* memory area for HOST registers */
40+
<0xf3010000 0x10000>, /* memory area for DEVICE registers */
41+
<0xf3020000 0x10000>; /* memory area for OTG/DRD registers */
42+
reg-names = "xhci", "dev", "otg";
43+
phys = <&usb2_phy>, <&usb3_phy>;
44+
phy-names = "cdns3,usb2-phy", "cnds3,usb3-phy";
45+
};

‎Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Required properties:
1010
"fsl,imx6sx-usb"
1111
"fsl,imx6ul-usb"
1212
"fsl,imx7d-usb"
13+
"fsl,imx7ulp-usb"
1314
"lsi,zevio-usb"
1415
"qcom,ci-hdrc"
1516
"chipidea,usb2"

‎Documentation/devicetree/bindings/usb/exynos-usb.txt‎

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ Required properties:
1212
- interrupts: interrupt number to the cpu.
1313
- clocks: from common clock binding: handle to usb clock.
1414
- clock-names: from common clock binding: Shall be "usbhost".
15-
- port: if in the SoC there are EHCI phys, they should be listed here.
16-
One phy per port. Each port should have following entries:
17-
- reg: port number on EHCI controller, e.g
18-
On Exynos5250, port 0 is USB2.0 otg phy
19-
port 1 is HSIC phy0
20-
port 2 is HSIC phy1
21-
- phys: from the *Generic PHY* bindings; specifying phy used by port.
15+
- phys: from the *Generic PHY* bindings; array specifying phy(s) used
16+
by the root port.
17+
- phy-names: from the *Generic PHY* bindings; array of the names for
18+
each phy for the root ports, must be a subset of the following:
19+
"host", "hsic0", "hsic1".
2220

2321
Optional properties:
2422
- samsung,vbus-gpio: if present, specifies the GPIO that
@@ -35,12 +33,8 @@ Example:
3533
clocks = <&clock 285>;
3634
clock-names = "usbhost";
3735

38-
#address-cells = <1>;
39-
#size-cells = <0>;
40-
port@0 {
41-
reg = <0>;
42-
phys = <&usb2phy 1>;
43-
};
36+
phys = <&usb2phy 1>;
37+
phy-names = "host";
4438
};
4539

4640
OHCI
@@ -52,13 +46,11 @@ Required properties:
5246
- interrupts: interrupt number to the cpu.
5347
- clocks: from common clock binding: handle to usb clock.
5448
- clock-names: from common clock binding: Shall be "usbhost".
55-
- port: if in the SoC there are OHCI phys, they should be listed here.
56-
One phy per port. Each port should have following entries:
57-
- reg: port number on OHCI controller, e.g
58-
On Exynos5250, port 0 is USB2.0 otg phy
59-
port 1 is HSIC phy0
60-
port 2 is HSIC phy1
61-
- phys: from the *Generic PHY* bindings, specifying phy used by port.
49+
- phys: from the *Generic PHY* bindings; array specifying phy(s) used
50+
by the root port.
51+
- phy-names: from the *Generic PHY* bindings; array of the names for
52+
each phy for the root ports, must be a subset of the following:
53+
"host", "hsic0", "hsic1".
6254

6355
Example:
6456
usb@12120000 {
@@ -69,13 +61,8 @@ Example:
6961
clocks = <&clock 285>;
7062
clock-names = "usbhost";
7163

72-
#address-cells = <1>;
73-
#size-cells = <0>;
74-
port@0 {
75-
reg = <0>;
76-
phys = <&usb2phy 1>;
77-
};
78-
64+
phys = <&usb2phy 1>;
65+
phy-names = "host";
7966
};
8067

8168
DWC3

‎Documentation/devicetree/bindings/usb/fcs,fusb302.txt‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ Required sub-node:
1111

1212
Documentation/devicetree/bindings/connector/usb-connector.txt
1313

14-
Deprecated properties :
15-
- fcs,max-sink-microvolt : Maximum sink voltage accepted by port controller
16-
- fcs,max-sink-microamp : Maximum sink current accepted by port controller
17-
- fcs,max-sink-microwatt : Maximum sink power accepted by port controller
18-
- fcs,operating-sink-microwatt : Minimum amount of power accepted from a sink
19-
when negotiating
20-
2114

2215
Example:
2316

‎Documentation/devicetree/bindings/usb/generic.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Optional properties:
3030
optional for OTG device.
3131
- adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is
3232
optional for OTG device.
33+
- usb-role-switch: boolean, indicates that the device is capable of assigning
34+
the USB data role (USB host or USB device) for a given
35+
USB connector, such as Type-C, Type-B(micro).
36+
see connector/usb-connector.txt.
3337

3438
This is an attribute to a USB controller such as:
3539

‎Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Required properties:
3030
the following ones are optional:
3131
"ref_ck": reference clock used by low power mode etc,
3232
"mcu_ck": mcu_bus clock for register access,
33-
"dma_ck": dma_bus clock for data transfer by DMA
33+
"dma_ck": dma_bus clock for data transfer by DMA,
34+
"xhci_ck": controller clock
3435

3536
- phys : see usb-hcd.txt in the current directory
3637

@@ -100,7 +101,7 @@ Required properties:
100101
- clocks : a list of phandle + clock-specifier pairs, one for each
101102
entry in clock-names
102103
- clock-names : must contain "sys_ck", and the following ones are optional:
103-
"ref_ck", "mcu_ck" and "dma_ck"
104+
"ref_ck", "mcu_ck" and "dma_ck", "xhci_ck"
104105

105106
Optional properties:
106107
- vbus-supply : reference to the VBUS regulator;

‎Documentation/devicetree/bindings/usb/mediatek,mtu3.txt‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Required properties:
1616
entry in clock-names
1717
- clock-names : must contain "sys_ck" for clock of controller,
1818
the following clocks are optional:
19-
"ref_ck", "mcu_ck" and "dam_ck";
19+
"ref_ck", "mcu_ck" and "dma_ck";
2020
- phys : see usb-hcd.txt in the current directory
2121
- dr_mode : should be one of "host", "peripheral" or "otg",
2222
refer to usb/generic.txt
@@ -28,8 +28,13 @@ Optional properties:
2828
parent's address space
2929
- extcon : external connector for vbus and idpin changes detection, needed
3030
when supports dual-role mode.
31+
it's considered valid for compatibility reasons, not allowed for
32+
new bindings, and use "usb-role-switch" property instead.
3133
- vbus-supply : reference to the VBUS regulator, needed when supports
3234
dual-role mode.
35+
it's considered valid for compatibility reasons, not allowed for
36+
new bindings, and put into a usb-connector node.
37+
see connector/usb-connector.txt.
3338
- pinctrl-names : a pinctrl state named "default" is optional, and need be
3439
defined if auto drd switch is enabled, that means the property dr_mode
3540
is set as "otg", and meanwhile the property "mediatek,enable-manual-drd"
@@ -39,6 +44,8 @@ Optional properties:
3944

4045
- maximum-speed : valid arguments are "super-speed", "high-speed" and
4146
"full-speed"; refer to usb/generic.txt
47+
- usb-role-switch : use USB Role Switch to support dual-role switch, but
48+
not extcon; see usb/generic.txt.
4249
- enable-manual-drd : supports manual dual-role switch via debugfs; usually
4350
used when receptacle is TYPE-A and also wants to support dual-role
4451
mode.
@@ -61,6 +68,9 @@ The xhci should be added as subnode to mtu3 as shown in the following example
6168
if host mode is enabled. The DT binding details of xhci can be found in:
6269
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
6370

71+
The port would be added as subnode if use "usb-role-switch" property.
72+
see graph.txt
73+
6474
Example:
6575
ssusb: usb@11271000 {
6676
compatible = "mediatek,mt8173-mtu3";

Documentation/devicetree/bindings/usb/renesas,usb3.txt renamed to Documentation/devicetree/bindings/usb/renesas,usb3-peri.txt

File renamed without changes.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
USB GPIO Based Connection Detection
2+
3+
This is typically used to switch dual role mode from the USB ID pin connected
4+
to an input GPIO, and also used to enable/disable device mode from the USB
5+
Vbus pin connected to an input GPIO.
6+
7+
Required properties:
8+
- compatible : should include "gpio-usb-b-connector" and "usb-b-connector".
9+
- id-gpios, vbus-gpios : input gpios, either one of them must be present,
10+
and both can be present as well.
11+
see connector/usb-connector.txt
12+
13+
Optional properties:
14+
- vbus-supply : can be present if needed when supports dual role mode.
15+
see connector/usb-connector.txt
16+
17+
- Sub-nodes:
18+
- port : can be present.
19+
see graph.txt
20+
21+
Example:
22+
23+
&mtu3 {
24+
connector {
25+
compatible = "gpio-usb-b-connector", "usb-b-connector";
26+
type = "micro";
27+
id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
28+
vbus-supply = <&usb_p0_vbus>;
29+
};
30+
};

0 commit comments

Comments
 (0)