Commit e4ee8b85 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull USB/PHY updates from Greg KH:
 "Here is the big USB and PHY driver update for 4.16-rc1.

  Along with the normally expected XHCI, MUSB, and Gadget driver
  patches, there are some PHY driver fixes, license cleanups, sysfs
  attribute cleanups, usbip changes, and a raft of other smaller fixes
  and additions.

  Full details are in the shortlog.

  All of these have been in the linux-next tree for a long time with no
  reported issues"

* tag 'usb-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (137 commits)
  USB: serial: pl2303: new device id for Chilitag
  USB: misc: fix up some remaining DEVICE_ATTR() usages
  USB: musb: fix up one odd DEVICE_ATTR() usage
  USB: atm: fix up some remaining DEVICE_ATTR() usage
  USB: move many drivers to use DEVICE_ATTR_WO
  USB: move many drivers to use DEVICE_ATTR_RO
  USB: move many drivers to use DEVICE_ATTR_RW
  USB: misc: chaoskey: Use true and false for boolean values
  USB: storage: remove old wording about how to submit a change
  USB: storage: remove invalid URL from drivers
  usb: ehci-omap: don't complain on -EPROBE_DEFER when no PHY found
  usbip: list: don't list devices attached to vhci_hcd
  usbip: prevent bind loops on devices attached to vhci_hcd
  USB: serial: remove redundant initializations of 'mos_parport'
  usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()
  usb: gadget: compress return logic into one line
  usbip: vhci_hcd: update 'status' file header and format
  USB: serial: simple: add Motorola Tetra driver
  CDC-ACM: apply quirk for card reader
  usb: option: Add support for FS040U modem
  ...
parents 7109a04e d08dd3f3
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
What:		/sys/bus/pci/drivers/xhci_hcd/.../dbc
Date:		June 2017
Contact:	Lu Baolu <baolu.lu@linux.intel.com>
Description:
		xHCI compatible USB host controllers (i.e. super-speed
		USB3 controllers) are often implemented with the Debug
		Capability (DbC). It can present a debug device which
		is fully compliant with the USB framework and provides
		the equivalent of a very high performance full-duplex
		serial link for debug purpose.

		The DbC debug device shares a root port with xHCI host.
		When the DbC is enabled, the root port will be assigned
		to the Debug Capability. Otherwise, it will be assigned
		to xHCI.

		Writing "enable" to this attribute will enable the DbC
		functionality and the shared root port will be assigned
		to the DbC device. Writing "disable" to this attribute
		will disable the DbC functionality and the shared root
		port will roll back to the xHCI.

		Reading this attribute gives the state of the DbC. It
		can be one of the following states: disabled, enabled,
		initialized, connected, configured and stalled.
+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ Optional properties:
			from P0 to P1/P2/P3 without delay.
 - snps,dis-tx-ipgap-linecheck-quirk: when set, disable u2mac linestate check
			during HS transmit.
 - snps,dis_metastability_quirk: when set, disable metastability workaround.
			CAUTION: use only if you are absolutely sure of it.
 - snps,is-utmi-l1-suspend: true when DWC3 asserts output signal
			utmi_l1_suspend_n, false when asserts utmi_sleep_n
 - snps,hird-threshold: HIRD threshold
+12 −6
Original line number Diff line number Diff line
@@ -35,10 +35,14 @@ Required properties:
 - phys : a list of phandle + phy specifier pairs

Optional properties:
 - mediatek,wakeup-src : 1: ip sleep wakeup mode; 2: line state wakeup
	mode;
 - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
	control register, it depends on "mediatek,wakeup-src".
 - wakeup-source : enable USB remote wakeup;
 - mediatek,syscon-wakeup : phandle to syscon used to access the register
	of the USB wakeup glue layer between xHCI and SPM; it depends on
	"wakeup-source", and has two arguments:
	- the first one : register base address of the glue layer in syscon;
	- the second one : hardware version of the glue layer
		- 1 : used by mt8173 etc
		- 2 : used by mt2712 etc
 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
	bit1 for u3port1, ... etc;
 - vbus-supply : reference to the VBUS regulator;
@@ -46,6 +50,7 @@ Optional properties:
 - pinctrl-names : a pinctrl state named "default" must be defined
 - pinctrl-0 : pin control group
	See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
 - imod-interval-ns: default interrupt moderation interval is 5000ns

Example:
usb30: usb@11270000 {
@@ -64,8 +69,9 @@ usb30: usb@11270000 {
	vusb33-supply = <&mt6397_vusb_reg>;
	vbus-supply = <&usb_p1_vbus>;
	usb3-lpm-capable;
	mediatek,syscon-wakeup = <&pericfg>;
	mediatek,wakeup-src = <1>;
	mediatek,syscon-wakeup = <&pericfg 0x400 1>;
	wakeup-source;
	imod-interval-ns = <10000>;
};

2nd: dual-role mode with xHCI driver
+10 −5
Original line number Diff line number Diff line
@@ -42,9 +42,14 @@ Optional properties:
 - enable-manual-drd : supports manual dual-role switch via debugfs; usually
	used when receptacle is TYPE-A and also wants to support dual-role
	mode.
 - mediatek,enable-wakeup : supports ip sleep wakeup used by host mode
 - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
	control register, it depends on "mediatek,enable-wakeup".
 - wakeup-source: enable USB remote wakeup of host mode.
 - mediatek,syscon-wakeup : phandle to syscon used to access the register
	of the USB wakeup glue layer between SSUSB and SPM; it depends on
	"wakeup-source", and has two arguments:
	- the first one : register base address of the glue layer in syscon;
	- the second one : hardware version of the glue layer
		- 1 : used by mt8173 etc
		- 2 : used by mt2712 etc
 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
	bit1 for u3port1, ... etc;

@@ -71,8 +76,8 @@ ssusb: usb@11271000 {
	vbus-supply = <&usb_p0_vbus>;
	extcon = <&extcon_usb>;
	dr_mode = "otg";
	mediatek,enable-wakeup;
	mediatek,syscon-wakeup = <&pericfg>;
	wakeup-source;
	mediatek,syscon-wakeup = <&pericfg 0x400 1>;
	#address-cells = <2>;
	#size-cells = <2>;
	ranges;
+2 −0
Original line number Diff line number Diff line
@@ -13,8 +13,10 @@ Required properties:
	- "renesas,usbhs-r8a7795" for r8a7795 (R-Car H3) compatible device
	- "renesas,usbhs-r8a7796" for r8a7796 (R-Car M3-W) compatible device
	- "renesas,usbhs-r8a77995" for r8a77995 (R-Car D3) compatible device
	- "renesas,usbhs-r7s72100" for r7s72100 (RZ/A1) compatible device
	- "renesas,rcar-gen2-usbhs" for R-Car Gen2 or RZ/G1 compatible devices
	- "renesas,rcar-gen3-usbhs" for R-Car Gen3 compatible device
	- "renesas,rza1-usbhs" for RZ/A1 compatible device

	When compatible with the generic version, nodes must list the
	SoC-specific version corresponding to the platform first followed
Loading