Skip to content

Commit e09bf86

Browse files
committed
Merge tag 'usb-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB / Thunderbolt updates from Greg KH: "Here is the big set of USB and Thunderbolt changes for 6.9-rc1. Lots of tiny changes and forward progress to support new hardware and better support for existing devices. Included in here are: - Thunderbolt (i.e. USB4) updates for newer hardware and uses as more people start to use the hardware - default USB authentication mode Kconfig and documentation update to make it more obvious what is going on - USB typec updates and enhancements - usual dwc3 driver updates - usual xhci driver updates - function USB (i.e. gadget) driver updates and additions - new device ids for lots of drivers - loads of other small updates, full details in the shortlog All of these, including a "last minute regression fix" have been in linux-next with no reported issues" * tag 'usb-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (185 commits) usb: usb-acpi: Fix oops due to freeing uninitialized pld pointer usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic phy: tegra: xusb: Add API to retrieve the port number of phy USB: gadget: pxa27x_udc: Remove unused of_gpio.h usb: gadget/snps_udc_plat: Remove unused of_gpio.h usb: ohci-pxa27x: Remove unused of_gpio.h usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined usb: Clarify expected behavior of dev_bin_attrs_are_visible() xhci: Allow RPM on the USB controller (1022:43f7) by default usb: isp1760: remove SLAB_MEM_SPREAD flag usage usb: misc: onboard_hub: use pointer consistently in the probe function usb: gadget: fsl: Increase size of name buffer for endpoints usb: gadget: fsl: Add of device table to enable module autoloading usb: typec: tcpm: add support to set tcpc connector orientatition usb: typec: tcpci: add generic tcpci fallback compatible dt-bindings: usb: typec-tcpci: add tcpci fallback binding usb: gadget: fsl-udc: Replace custom log wrappers by dev_{err,warn,dbg,vdbg} usb: core: Set connect_type of ports based on DT node dt-bindings: usb: Add downstream facing ports to realtek binding ...
2 parents 2ac2b16 + a788e53 commit e09bf86

File tree

178 files changed

+9128
-2484
lines changed

Some content is hidden

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

178 files changed

+9128
-2484
lines changed

Documentation/ABI/testing/configfs-usb-gadget-ffs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ KernelVersion: 3.13
44
Description: The purpose of this directory is to create and remove it.
55

66
A corresponding USB function instance is created/removed.
7-
There are no attributes here.
87

9-
All parameters are set through FunctionFS.
8+
All attributes are read only:
9+
10+
============= ============================================
11+
ready 1 if the function is ready to be used, E.G.
12+
if userspace has written descriptors and
13+
strings to ep0, so the gadget can be
14+
enabled - 0 otherwise.
15+
============= ============================================
16+
17+
All other parameters are set through FunctionFS.

Documentation/ABI/testing/sysfs-bus-usb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,16 @@ What: /sys/bus/usb/devices/usbX/descriptors
442442
Description:
443443
Contains the interface descriptors, in binary.
444444

445+
What: /sys/bus/usb/devices/usbX/bos_descriptors
446+
Date: March 2024
447+
Contact: Elbert Mai <[email protected]>
448+
Description:
449+
Binary file containing the cached binary device object store (BOS)
450+
of the device. This consists of the BOS descriptor followed by the
451+
set of device capability descriptors. All descriptors read from
452+
this file are in bus-endian format. Note that the kernel will not
453+
request the BOS from a device if its bcdUSB is less than 0x0201.
454+
445455
What: /sys/bus/usb/devices/usbX/idProduct
446456
Description:
447457
Product ID, in hexadecimal.

Documentation/ABI/testing/sysfs-class-usb_role

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ Description:
1919
- none
2020
- host
2121
- device
22+
23+
What: /sys/class/usb_role/<switch>/connector
24+
Date: Feb 2024
25+
Contact: Heikki Krogerus <[email protected]>
26+
Description:
27+
Optional symlink to the USB Type-C connector.

Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- enum:
2727
- qcom,pm4125-vbus-reg
2828
- qcom,pm6150-vbus-reg
29+
- qcom,pmi632-vbus-reg
2930
- const: qcom,pm8150b-vbus-reg
3031

3132
reg:

Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ properties:
2323
oneOf:
2424
- items:
2525
- enum:
26+
- qcom,qcm6490-pmic-glink
2627
- qcom,sc8180x-pmic-glink
2728
- qcom,sc8280xp-pmic-glink
2829
- qcom,sm8350-pmic-glink
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/qcom,q6usb.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm ASoC DPCM USB backend DAI
8+
9+
maintainers:
10+
- Wesley Cheng <[email protected]>
11+
12+
description:
13+
The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM
14+
backend DAI will communicate the required settings to initialize the
15+
XHCI host controller properly for enabling the offloaded audio stream.
16+
Parameters defined under this node will carry settings, which will be
17+
passed along during the QMI stream enable request and configuration of
18+
the XHCI host controller.
19+
20+
allOf:
21+
- $ref: dai-common.yaml#
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- qcom,q6usb
27+
28+
iommus:
29+
maxItems: 1
30+
31+
"#sound-dai-cells":
32+
const: 1
33+
34+
qcom,usb-audio-intr-idx:
35+
description:
36+
Desired XHCI interrupter number to use. Depending on the audio DSP
37+
on the platform, it will operate on a specific XHCI interrupter.
38+
$ref: /schemas/types.yaml#/definitions/uint16
39+
maximum: 8
40+
41+
required:
42+
- compatible
43+
- "#sound-dai-cells"
44+
- qcom,usb-audio-intr-idx
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
dais {
51+
compatible = "qcom,q6usb";
52+
#sound-dai-cells = <1>;
53+
iommus = <&apps_smmu 0x180f 0x0>;
54+
qcom,usb-audio-intr-idx = /bits/ 16 <2>;
55+
};

Documentation/devicetree/bindings/usb/analogix,anx7411.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,11 @@ properties:
2323
connector:
2424
type: object
2525
$ref: ../connector/usb-connector.yaml
26-
unevaluatedProperties: false
27-
28-
description:
29-
Properties for usb c connector.
3026

3127
properties:
3228
compatible:
3329
const: usb-c-connector
3430

35-
power-role: true
36-
37-
data-role: true
38-
39-
try-power-role: true
40-
41-
required:
42-
- compatible
43-
4431
required:
4532
- compatible
4633
- reg

Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ properties:
313313

314314
usb-phy:
315315
description: phandle for the PHY device. Use "phys" instead.
316-
$ref: /schemas/types.yaml#/definitions/phandle
316+
maxItems: 1
317317
deprecated: true
318318

319319
fsl,usbphy:

Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ properties:
2727
vcc-supply:
2828
description: power supply (2.7V-5.5V)
2929

30-
mode-switch:
31-
description: Flag the port as possible handle of altmode switching
32-
type: boolean
33-
34-
orientation-switch:
35-
description: Flag the port as possible handler of orientation switching
36-
type: boolean
30+
mode-switch: true
31+
orientation-switch: true
3732

3833
port:
3934
$ref: /schemas/graph.yaml#/$defs/port-base
@@ -79,6 +74,9 @@ required:
7974
- reg
8075
- port
8176

77+
allOf:
78+
- $ref: usb-switch.yaml#
79+
8280
additionalProperties: false
8381

8482
examples:

Documentation/devicetree/bindings/usb/generic-ehci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ properties:
7777
- const: usb-ehci
7878
- enum:
7979
- generic-ehci
80+
- marvell,ac5-ehci
8081
- marvell,armada-3700-ehci
8182
- marvell,orion-ehci
8283
- nuvoton,npcm750-ehci

Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,8 @@ properties:
3333
vcc-supply:
3434
description: power supply
3535

36-
mode-switch:
37-
description: Flag the port as possible handle of altmode switching
38-
type: boolean
39-
40-
orientation-switch:
41-
description: Flag the port as possible handler of orientation switching
42-
type: boolean
36+
mode-switch: true
37+
orientation-switch: true
4338

4439
port:
4540
$ref: /schemas/graph.yaml#/properties/port
@@ -54,6 +49,9 @@ required:
5449
- orientation-switch
5550
- port
5651

52+
allOf:
53+
- $ref: usb-switch.yaml#
54+
5755
additionalProperties: false
5856

5957
examples:
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/hisilicon,hi3798mv200-dwc3.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: HiSilicon Hi3798MV200 DWC3 USB SoC controller
8+
9+
maintainers:
10+
- Yang Xiwen <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: hisilicon,hi3798mv200-dwc3
15+
16+
'#address-cells':
17+
const: 1
18+
19+
'#size-cells':
20+
const: 1
21+
22+
ranges: true
23+
24+
clocks:
25+
items:
26+
- description: Controller bus clock
27+
- description: Controller suspend clock
28+
- description: Controller reference clock
29+
- description: Controller gm clock
30+
- description: Controller gs clock
31+
- description: Controller utmi clock
32+
- description: Controller pipe clock
33+
34+
clock-names:
35+
items:
36+
- const: bus
37+
- const: suspend
38+
- const: ref
39+
- const: gm
40+
- const: gs
41+
- const: utmi
42+
- const: pipe
43+
44+
resets:
45+
maxItems: 1
46+
47+
reset-names:
48+
const: soft
49+
50+
patternProperties:
51+
'^usb@[0-9a-f]+$':
52+
$ref: snps,dwc3.yaml#
53+
54+
required:
55+
- compatible
56+
- ranges
57+
- '#address-cells'
58+
- '#size-cells'
59+
- clocks
60+
- clock-names
61+
- resets
62+
- reset-names
63+
64+
additionalProperties: false
65+
66+
examples:
67+
- |
68+
#include <dt-bindings/interrupt-controller/arm-gic.h>
69+
70+
usb {
71+
compatible = "hisilicon,hi3798mv200-dwc3";
72+
ranges;
73+
#address-cells = <1>;
74+
#size-cells = <1>;
75+
clocks = <&clk_bus>,
76+
<&clk_suspend>,
77+
<&clk_ref>,
78+
<&clk_gm>,
79+
<&clk_gs>,
80+
<&clk_utmi>,
81+
<&clk_pipe>;
82+
clock-names = "bus", "suspend", "ref", "gm", "gs", "utmi", "pipe";
83+
resets = <&crg 0xb0 12>;
84+
reset-names = "soft";
85+
86+
usb@98a0000 {
87+
compatible = "snps,dwc3";
88+
reg = <0x98a0000 0x10000>;
89+
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
90+
clocks = <&clk_bus>,
91+
<&clk_suspend>,
92+
<&clk_ref>;
93+
clock-names = "bus_early", "suspend", "ref";
94+
phys = <&usb2_phy1_port2>, <&combphy0 0>;
95+
phy-names = "usb2-phy", "usb3-phy";
96+
maximum-speed = "super-speed";
97+
dr_mode = "host";
98+
};
99+
};
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/ite,it5205.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ITE IT5202 Type-C USB Alternate Mode Passive MUX
8+
9+
maintainers:
10+
- AngeloGioacchino Del Regno <[email protected]>
11+
- Tianping Fang <[email protected]>
12+
13+
properties:
14+
compatible:
15+
const: ite,it5205
16+
17+
reg:
18+
maxItems: 1
19+
20+
vcc-supply:
21+
description: Power supply for VCC pin (3.3V)
22+
23+
mode-switch:
24+
description: Flag the port as possible handle of altmode switching
25+
type: boolean
26+
27+
orientation-switch:
28+
description: Flag the port as possible handler of orientation switching
29+
type: boolean
30+
31+
ite,ovp-enable:
32+
description: Enable Over Voltage Protection functionality
33+
type: boolean
34+
35+
port:
36+
$ref: /schemas/graph.yaml#/properties/port
37+
description:
38+
A port node to link the IT5205 to a TypeC controller for the purpose of
39+
handling altmode muxing and orientation switching.
40+
41+
required:
42+
- compatible
43+
- reg
44+
- orientation-switch
45+
- port
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/interrupt-controller/irq.h>
52+
i2c2 {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
typec-mux@48 {
57+
compatible = "ite,it5205";
58+
reg = <0x48>;
59+
60+
mode-switch;
61+
orientation-switch;
62+
63+
vcc-supply = <&mt6359_vibr_ldo_reg>;
64+
65+
port {
66+
it5205_usbss_sbu: endpoint {
67+
remote-endpoint = <&typec_controller>;
68+
};
69+
};
70+
};
71+
};
72+
...

Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ properties:
185185
2 - used by mt2712 etc, revision 2 with following IPM rule;
186186
101 - used by mt8183, specific 1.01;
187187
102 - used by mt8192, specific 1.02;
188-
enum: [1, 2, 101, 102]
188+
103 - used by mt8195, IP0, specific 1.03;
189+
105 - used by mt8195, IP2, specific 1.05;
190+
106 - used by mt8195, IP3, specific 1.06;
191+
enum: [1, 2, 101, 102, 103, 105, 106]
189192
190193
mediatek,u3p-dis-msk:
191194
$ref: /schemas/types.yaml#/definitions/uint32

0 commit comments

Comments
 (0)