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-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/gregkh/usb Pull USB/PHY updates from Greg KH: "Here is the big set of USB and PHY driver patches for 4.17-rc1. Lots of USB typeC work happened this round, with code moving from the staging directory into the "real" part of the kernel, as well as new infrastructure being added to be able to handle the different types of "roles" that typeC requires. There is also the normal huge set of USB gadget controller and driver updates, along with XHCI changes, and a raft of other tiny fixes all over the USB tree. And the PHY driver updates are merged in here as well as they interacted with the USB drivers in some places. All of these have been in linux-next for a while with no reported issues" * tag 'usb-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (250 commits) Revert "USB: serial: ftdi_sio: add Id for Physik Instrumente E-870" usb: musb: gadget: misplaced out of bounds check usb: chipidea: imx: Fix ULPI on imx53 usb: chipidea: imx: Cleanup ci_hdrc_imx_platform_flag usb: chipidea: usbmisc: small clean up usb: chipidea: usbmisc: evdo can be set e/o reset usb: chipidea: usbmisc: evdo is only specific to OTG port USB: serial: ftdi_sio: add Id for Physik Instrumente E-870 usb: dwc3: gadget: never call ->complete() from ->ep_queue() usb: gadget: udc: core: update usb_ep_queue() documentation usb: host: Remove the deprecated ATH79 USB host config options usb: roles: Fix return value check in intel_xhci_usb_probe() USB: gadget: f_midi: fixing a possible double-free in f_midi usb: core: Add USB_QUIRK_DELAY_CTRL_MSG to usbcore quirks usb: core: Copy parameter string correctly and remove superfluous null check USB: announce bcdDevice as well as idVendor, idProduct. USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw usb: hub: Reduce warning to notice on power loss USB: serial: ftdi_sio: add support for Harman FirmwareHubEmulator USB: serial: cp210x: add ELDAT Easywave RX09 id ...
- Loading branch information
Showing
203 changed files
with
9,264 additions
and
3,082 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 |
---|---|---|
|
@@ -189,6 +189,16 @@ Description: | |
The file will read "hotplug", "wired" and "not used" if the | ||
information is available, and "unknown" otherwise. | ||
|
||
What: /sys/bus/usb/devices/.../(hub interface)/portX/over_current_count | ||
Date: February 2018 | ||
Contact: Richard Leitner <[email protected]> | ||
Description: | ||
Most hubs are able to detect over-current situations on their | ||
ports and report them to the kernel. This attribute is to expose | ||
the number of over-current situation occurred on a specific port | ||
to user space. This file will contain an unsigned 32 bit value | ||
which wraps to 0 after its maximum is reached. | ||
|
||
What: /sys/bus/usb/devices/.../(hub interface)/portX/usb3_lpm_permit | ||
Date: November 2015 | ||
Contact: Lu Baolu <[email protected]> | ||
|
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,21 @@ | ||
What: /sys/class/usb_role/ | ||
Date: Jan 2018 | ||
Contact: Heikki Krogerus <[email protected]> | ||
Description: | ||
Place in sysfs for USB Role Switches. USB Role Switch is a | ||
device that can select the data role (host or device) for USB | ||
port. | ||
|
||
What: /sys/class/usb_role/<switch>/role | ||
Date: Jan 2018 | ||
Contact: Heikki Krogerus <[email protected]> | ||
Description: | ||
The current role of the switch. This attribute can be used for | ||
requesting role swapping with non-USB Type-C ports. With USB | ||
Type-C ports, the ABI defined for USB Type-C connector class | ||
must be used. | ||
|
||
Valid values: | ||
- none | ||
- host | ||
- device |
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
31 changes: 31 additions & 0 deletions
31
Documentation/devicetree/bindings/phy/meson-gxl-usb3-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,31 @@ | ||
* Amlogic Meson GXL and GXM USB3 PHY and OTG detection binding | ||
|
||
Required properties: | ||
- compatible: Should be "amlogic,meson-gxl-usb3-phy" | ||
- #phys-cells: must be 0 (see phy-bindings.txt in this directory) | ||
- reg: The base address and length of the registers | ||
- interrupts: the interrupt specifier for the OTG detection | ||
- clocks: phandles to the clocks for | ||
- the USB3 PHY | ||
- and peripheral mode/OTG detection | ||
- clock-names: must contain "phy" and "peripheral" | ||
- resets: phandle to the reset lines for: | ||
- the USB3 PHY and | ||
- peripheral mode/OTG detection | ||
- reset-names: must contain "phy" and "peripheral" | ||
|
||
Optional properties: | ||
- phy-supply: see phy-bindings.txt in this directory | ||
|
||
|
||
Example: | ||
usb3_phy0: phy@78080 { | ||
compatible = "amlogic,meson-gxl-usb3-phy"; | ||
#phy-cells = <0>; | ||
reg = <0x0 0x78080 0x0 0x20>; | ||
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clkc CLKID_USB_OTG>, <&clkc_AO CLKID_AO_CEC_32K>; | ||
clock-names = "phy", "peripheral"; | ||
resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>; | ||
reset-names = "phy", "peripheral"; | ||
}; |
59 changes: 59 additions & 0 deletions
59
Documentation/devicetree/bindings/phy/phy-hi3798cv200-combphy.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,59 @@ | ||
HiSilicon STB PCIE/SATA/USB3 PHY | ||
|
||
Required properties: | ||
- compatible: Should be "hisilicon,hi3798cv200-combphy" | ||
- reg: Should be the address space for COMBPHY configuration and state | ||
registers in peripheral controller, e.g. PERI_COMBPHY0_CFG and | ||
PERI_COMBPHY0_STATE for COMBPHY0 Hi3798CV200 SoC. | ||
- #phy-cells: Should be 1. The cell number is used to select the phy mode | ||
as defined in <dt-bindings/phy/phy.h>. | ||
- clocks: The phandle to clock provider and clock specifier pair. | ||
- resets: The phandle to reset controller and reset specifier pair. | ||
|
||
Refer to phy/phy-bindings.txt for the generic PHY binding properties. | ||
|
||
Optional properties: | ||
- hisilicon,fixed-mode: If the phy device doesn't support mode select | ||
but a fixed mode setting, the property should be present to specify | ||
the particular mode. | ||
- hisilicon,mode-select-bits: If the phy device support mode select, | ||
this property should be present to specify the register bits in | ||
peripheral controller, as a 3 integers tuple: | ||
<register_offset bit_shift bit_mask>. | ||
|
||
Notes: | ||
- Between hisilicon,fixed-mode and hisilicon,mode-select-bits, one and only | ||
one of them should be present. | ||
- The device node should be a child of peripheral controller that contains | ||
COMBPHY configuration/state and PERI_CTRL register used to select PHY mode. | ||
Refer to arm/hisilicon/hisilicon.txt for the parent peripheral controller | ||
bindings. | ||
|
||
Examples: | ||
|
||
perictrl: peripheral-controller@8a20000 { | ||
compatible = "hisilicon,hi3798cv200-perictrl", "syscon", | ||
"simple-mfd"; | ||
reg = <0x8a20000 0x1000>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x0 0x8a20000 0x1000>; | ||
|
||
combphy0: phy@850 { | ||
compatible = "hisilicon,hi3798cv200-combphy"; | ||
reg = <0x850 0x8>; | ||
#phy-cells = <1>; | ||
clocks = <&crg HISTB_COMBPHY0_CLK>; | ||
resets = <&crg 0x188 4>; | ||
hisilicon,fixed-mode = <PHY_TYPE_USB3>; | ||
}; | ||
|
||
combphy1: phy@858 { | ||
compatible = "hisilicon,hi3798cv200-combphy"; | ||
reg = <0x858 0x8>; | ||
#phy-cells = <1>; | ||
clocks = <&crg HISTB_COMBPHY1_CLK>; | ||
resets = <&crg 0x188 12>; | ||
hisilicon,mode-select-bits = <0x0008 11 (0x3 << 11)>; | ||
}; | ||
}; |
71 changes: 71 additions & 0 deletions
71
Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.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,71 @@ | ||
Device tree bindings for HiSilicon INNO USB2 PHY | ||
|
||
Required properties: | ||
- compatible: Should be one of the following strings: | ||
"hisilicon,inno-usb2-phy", | ||
"hisilicon,hi3798cv200-usb2-phy". | ||
- reg: Should be the address space for PHY configuration register in peripheral | ||
controller, e.g. PERI_USB0 for USB 2.0 PHY01 on Hi3798CV200 SoC. | ||
- clocks: The phandle and clock specifier pair for INNO USB2 PHY device | ||
reference clock. | ||
- resets: The phandle and reset specifier pair for INNO USB2 PHY device reset | ||
signal. | ||
- #address-cells: Must be 1. | ||
- #size-cells: Must be 0. | ||
|
||
The INNO USB2 PHY device should be a child node of peripheral controller that | ||
contains the PHY configuration register, and each device suppports up to 2 PHY | ||
ports which are represented as child nodes of INNO USB2 PHY device. | ||
|
||
Required properties for PHY port node: | ||
- reg: The PHY port instance number. | ||
- #phy-cells: Defined by generic PHY bindings. Must be 0. | ||
- resets: The phandle and reset specifier pair for PHY port reset signal. | ||
|
||
Refer to phy/phy-bindings.txt for the generic PHY binding properties | ||
|
||
Example: | ||
|
||
perictrl: peripheral-controller@8a20000 { | ||
compatible = "hisilicon,hi3798cv200-perictrl", "simple-mfd"; | ||
reg = <0x8a20000 0x1000>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x0 0x8a20000 0x1000>; | ||
|
||
usb2_phy1: usb2-phy@120 { | ||
compatible = "hisilicon,hi3798cv200-usb2-phy"; | ||
reg = <0x120 0x4>; | ||
clocks = <&crg HISTB_USB2_PHY1_REF_CLK>; | ||
resets = <&crg 0xbc 4>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
usb2_phy1_port0: phy@0 { | ||
reg = <0>; | ||
#phy-cells = <0>; | ||
resets = <&crg 0xbc 8>; | ||
}; | ||
|
||
usb2_phy1_port1: phy@1 { | ||
reg = <1>; | ||
#phy-cells = <0>; | ||
resets = <&crg 0xbc 9>; | ||
}; | ||
}; | ||
|
||
usb2_phy2: usb2-phy@124 { | ||
compatible = "hisilicon,hi3798cv200-usb2-phy"; | ||
reg = <0x124 0x4>; | ||
clocks = <&crg HISTB_USB2_PHY2_REF_CLK>; | ||
resets = <&crg 0xbc 6>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
usb2_phy2_port0: phy@0 { | ||
reg = <0>; | ||
#phy-cells = <0>; | ||
resets = <&crg 0xbc 10>; | ||
}; | ||
}; | ||
}; |
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/phy/phy-mapphone-mdm6600.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,29 @@ | ||
Device tree binding documentation for Motorola Mapphone MDM6600 USB PHY | ||
|
||
Required properties: | ||
- compatible Must be "motorola,mapphone-mdm6600" | ||
- enable-gpios GPIO to enable the USB PHY | ||
- power-gpios GPIO to power on the device | ||
- reset-gpios GPIO to reset the device | ||
- motorola,mode-gpios Two GPIOs to configure MDM6600 USB start-up mode for | ||
normal mode versus USB flashing mode | ||
- motorola,cmd-gpios Three GPIOs to control the power state of the MDM6600 | ||
- motorola,status-gpios Three GPIOs to read the power state of the MDM6600 | ||
|
||
Example: | ||
|
||
usb-phy { | ||
compatible = "motorola,mapphone-mdm6600"; | ||
enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; | ||
power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; | ||
reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; | ||
motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>, | ||
<&gpio5 21 GPIO_ACTIVE_HIGH>; | ||
motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>, | ||
<&gpio4 8 GPIO_ACTIVE_HIGH>, | ||
<&gpio5 14 GPIO_ACTIVE_HIGH>; | ||
motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>, | ||
<&gpio2 21 GPIO_ACTIVE_HIGH>, | ||
<&gpio2 23 GPIO_ACTIVE_HIGH>; | ||
#phy-cells = <0>; | ||
}; |
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.