forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 5
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-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/…
…git/gregkh/usb Pull USB/Thunderbolt/PHY driver updates from Greg KH: "Here is the big USB and Thunderbolt and PHY driver updates for 5.6-rc1. With the advent of USB4, "Thunderbolt" has really become USB4, so the renaming of the Kconfig option and starting to share subsystem code has begun, hence both subsystems coming in through the same tree here. PHY driver updates also touched USB drivers, so that is coming in through here as well. Major stuff included in here are: - USB 4 initial support added (i.e. Thunderbolt) - musb driver updates - USB gadget driver updates - PHY driver updates - USB PHY driver updates - lots of USB serial stuff fixed up - USB typec updates - USB-IP fixes - lots of other smaller USB driver updates All of these have been in linux-next for a while now (the usb-serial tree is already tested in linux-next on its own before merged into here), with no reported issues" [ Removed an incorrect compile test enablement for PHY_EXYNOS5250_SATA that causes configuration warnings - Linus ] * tag 'usb-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (207 commits) Doc: ABI: add usb charger uevent usb: phy: show USB charger type for user usb: cdns3: fix spelling mistake and rework grammar in text usb: phy: phy-gpio-vbus-usb: Convert to GPIO descriptors USB: serial: cyberjack: fix spelling mistake "To" -> "Too" USB: serial: ir-usb: simplify endpoint check USB: serial: ir-usb: make set_termios synchronous USB: serial: ir-usb: fix IrLAP framing USB: serial: ir-usb: fix link-speed handling USB: serial: ir-usb: add missing endpoint sanity check usb: typec: fusb302: fix "op-sink-microwatt" default that was in mW usb: typec: wcove: fix "op-sink-microwatt" default that was in mW usb: dwc3: pci: add ID for the Intel Comet Lake -V variant usb: typec: tcpci: mask event interrupts when remove driver usb: host: xhci-tegra: set MODULE_FIRMWARE for tegra186 usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined usb: chipidea: handle single role for usb role class usb: musb: fix spelling mistake: "periperal" -> "peripheral" phy: ti: j721e-wiz: Fix build error without CONFIG_OF_ADDRESS USB: usbfs: Always unlink URBs in reverse order ...
- Loading branch information
Showing
199 changed files
with
9,923 additions
and
2,466 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
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,46 @@ | ||
What: Raise a uevent when a USB charger is inserted or removed | ||
Date: 2020-01-14 | ||
KernelVersion: 5.6 | ||
Contact: linux-usb@vger.kernel.org | ||
Description: There are two USB charger states: | ||
USB_CHARGER_ABSENT | ||
USB_CHARGER_PRESENT | ||
There are five USB charger types: | ||
USB_CHARGER_UNKNOWN_TYPE: Charger type is unknown | ||
USB_CHARGER_SDP_TYPE: Standard Downstream Port | ||
USB_CHARGER_CDP_TYPE: Charging Downstream Port | ||
USB_CHARGER_DCP_TYPE: Dedicated Charging Port | ||
USB_CHARGER_ACA_TYPE: Accessory Charging Adapter | ||
https://www.usb.org/document-library/battery-charging-v12-spec-and-adopters-agreement | ||
|
||
Here are two examples taken using udevadm monitor -p when | ||
USB charger is online: | ||
UDEV change /devices/soc0/usbphynop1 (platform) | ||
ACTION=change | ||
DEVPATH=/devices/soc0/usbphynop1 | ||
DRIVER=usb_phy_generic | ||
MODALIAS=of:Nusbphynop1T(null)Cusb-nop-xceiv | ||
OF_COMPATIBLE_0=usb-nop-xceiv | ||
OF_COMPATIBLE_N=1 | ||
OF_FULLNAME=/usbphynop1 | ||
OF_NAME=usbphynop1 | ||
SEQNUM=2493 | ||
SUBSYSTEM=platform | ||
USB_CHARGER_STATE=USB_CHARGER_PRESENT | ||
USB_CHARGER_TYPE=USB_CHARGER_SDP_TYPE | ||
USEC_INITIALIZED=227422826 | ||
|
||
USB charger is offline: | ||
KERNEL change /devices/soc0/usbphynop1 (platform) | ||
ACTION=change | ||
DEVPATH=/devices/soc0/usbphynop1 | ||
DRIVER=usb_phy_generic | ||
MODALIAS=of:Nusbphynop1T(null)Cusb-nop-xceiv | ||
OF_COMPATIBLE_0=usb-nop-xceiv | ||
OF_COMPATIBLE_N=1 | ||
OF_FULLNAME=/usbphynop1 | ||
OF_NAME=usbphynop1 | ||
SEQNUM=2494 | ||
SUBSYSTEM=platform | ||
USB_CHARGER_STATE=USB_CHARGER_ABSENT | ||
USB_CHARGER_TYPE=USB_CHARGER_UNKNOWN_TYPE |
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
4 changes: 2 additions & 2 deletions
4
Documentation/devicetree/bindings/connector/usb-connector.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
135 changes: 135 additions & 0 deletions
135
Documentation/devicetree/bindings/phy/allwinner,sun9i-a80-usb-phy.yaml
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,135 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/phy/allwinner,sun9i-a80-usb-phy.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Allwinner A80 USB PHY Device Tree Bindings | ||
|
||
maintainers: | ||
- Chen-Yu Tsai <wens@csie.org> | ||
- Maxime Ripard <mripard@kernel.org> | ||
|
||
properties: | ||
"#phy-cells": | ||
const: 0 | ||
|
||
compatible: | ||
const: allwinner,sun9i-a80-usb-phy | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
anyOf: | ||
- description: Main PHY Clock | ||
|
||
- items: | ||
- description: Main PHY clock | ||
- description: HSIC 12MHz clock | ||
- description: HSIC 480MHz clock | ||
|
||
clock-names: | ||
oneOf: | ||
- const: phy | ||
|
||
- items: | ||
- const: phy | ||
- const: hsic_12M | ||
- const: hsic_480M | ||
|
||
resets: | ||
anyOf: | ||
- description: Normal USB PHY reset | ||
|
||
- items: | ||
- description: Normal USB PHY reset | ||
- description: HSIC Reset | ||
|
||
reset-names: | ||
oneOf: | ||
- const: phy | ||
|
||
- items: | ||
- const: phy | ||
- const: hsic | ||
|
||
phy_type: | ||
const: hsic | ||
description: | ||
When absent, the PHY type will be assumed to be normal USB. | ||
|
||
phy-supply: | ||
description: | ||
Regulator that powers VBUS | ||
|
||
required: | ||
- "#phy-cells" | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- resets | ||
- reset-names | ||
|
||
additionalProperties: false | ||
|
||
if: | ||
properties: | ||
phy_type: | ||
const: hsic | ||
|
||
required: | ||
- phy_type | ||
|
||
then: | ||
properties: | ||
clocks: | ||
maxItems: 3 | ||
|
||
clock-names: | ||
maxItems: 3 | ||
|
||
resets: | ||
maxItems: 2 | ||
|
||
reset-names: | ||
maxItems: 2 | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/sun9i-a80-usb.h> | ||
#include <dt-bindings/reset/sun9i-a80-usb.h> | ||
usbphy1: phy@a00800 { | ||
compatible = "allwinner,sun9i-a80-usb-phy"; | ||
reg = <0x00a00800 0x4>; | ||
clocks = <&usb_clocks CLK_USB0_PHY>; | ||
clock-names = "phy"; | ||
resets = <&usb_clocks RST_USB0_PHY>; | ||
reset-names = "phy"; | ||
phy-supply = <®_usb1_vbus>; | ||
#phy-cells = <0>; | ||
}; | ||
- | | ||
#include <dt-bindings/clock/sun9i-a80-usb.h> | ||
#include <dt-bindings/reset/sun9i-a80-usb.h> | ||
usbphy3: phy@a02800 { | ||
compatible = "allwinner,sun9i-a80-usb-phy"; | ||
reg = <0x00a02800 0x4>; | ||
clocks = <&usb_clocks CLK_USB2_PHY>, | ||
<&usb_clocks CLK_USB_HSIC>, | ||
<&usb_clocks CLK_USB2_HSIC>; | ||
clock-names = "phy", | ||
"hsic_12M", | ||
"hsic_480M"; | ||
resets = <&usb_clocks RST_USB2_PHY>, | ||
<&usb_clocks RST_USB2_HSIC>; | ||
reset-names = "phy", | ||
"hsic"; | ||
phy_type = "hsic"; | ||
phy-supply = <®_usb3_vbus>; | ||
#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
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.