linux-xiaomi-chiron/include/linux/usb
Hans de Goede 7b458a4c5d usb: typec: Add typec_port_register_altmodes()
This can be used by Type-C controller drivers which use a standard
usb-connector fwnode, with altmodes sub-node, to describe the available
altmodes.

Note there are is no devicetree bindings documentation for the altmodes
node, this is deliberate. ATM the fwnodes used to register the altmodes
are only used internally to pass platform info from a drivers/platform/x86
driver to the type-c subsystem.

When a devicetree user of this functionally comes up and the dt-bindings
have been hashed out the internal use can be adjusted to match the
dt-bindings.

Currently the typec_port_register_altmodes() function expects
an "altmodes" child fwnode on port->dev with this "altmodes" fwnode having
child fwnodes itself with each child containing 2 integer properties:

1. A "svid" property, which sets the id of the altmode, e.g. displayport
altmode has a svid of 0xff01.

2. A "vdo" property, typically used as a bitmask describing the
capabilities of the altmode, the bits in the vdo are specified in the
specification of the altmode.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210409134033.105834-2-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-09 16:07:41 +02:00
..
audio-v2.h
audio-v3.h
audio.h
c67x00.h
ccid.h
cdc-wdm.h
cdc.h
cdc_ncm.h net: usb: cdc_ncm: use new API for bh tasklet 2021-02-03 14:22:21 -08:00
ch9.h usb: common: move function's kerneldoc next to its definition 2021-03-10 09:37:17 +01:00
chipidea.h usb: chipidea: tegra: Support host mode 2021-01-13 11:26:34 +01:00
composite.h Kbuild updates for v5.12 2021-02-25 10:17:31 -08:00
ehci-dbgp.h
ehci_def.h
ehci_pdriver.h usb: ehci: add spurious flag to disable overcurrent checking 2021-03-23 12:36:17 +01:00
ezusb.h
functionfs.h
g_hid.h
gadget.h usb: gadget: Introduce udc_set_ssp_rate() for SSP 2021-01-18 18:40:08 +01:00
gadget_configfs.h
hcd.h usb: hcd.h: Remove RUN_CONTEXT 2020-11-14 11:24:49 +01:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
musb-ux500.h
musb.h
net2280.h
of.h
ohci_pdriver.h
otg-fsm.h
otg.h
pd.h usb: typec: tcpm: Create legacy PDOs for PD2 connection 2021-01-25 11:33:59 +01:00
pd_ado.h
pd_bdo.h
pd_ext_sdb.h
pd_vdo.h usb: pd: Make SVDM Version configurable in VDM header 2021-02-09 11:48:54 +01:00
phy.h
phy_companion.h
quirks.h
r8a66597.h
r8152.h net/usb/r8153_ecm: support ECM mode for RTL8153 2020-11-05 16:58:48 -08:00
renesas_usbhs.h
rndis_host.h
role.h
serial.h USB: serial: make remove callback return void 2021-02-09 13:13:58 +01:00
sl811.h
storage.h
tcpm.h usb: typec: tcpm: Add Callback to Usb Communication capable partner 2021-02-02 17:38:05 +01:00
tegra_usb_phy.h usb: phy: tegra: Support waking up from a low power mode 2021-01-13 11:26:34 +01:00
typec.h usb: typec: Add typec_port_register_altmodes() 2021-04-09 16:07:41 +02:00
typec_altmode.h usb: typec: Manage SVDM version 2021-02-09 11:48:54 +01:00
typec_dp.h
typec_mux.h
typec_tbt.h usb: typec: Remove one bit support for the Thunderbolt rounded/non-rounded cable 2020-11-18 12:53:45 +01:00
uas.h
ulpi.h
usb338x.h
usb_phy_generic.h
usbnet.h net: usb: cdc_ncm: don't spew notifications 2021-01-20 09:01:55 -08:00
xhci-dbgp.h