/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb-xhci.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/usb/usb-xhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mathias Nyman <mathias.nyman@intel.com> 13 - $ref: usb-hcd.yaml# 16 usb2-lpm-disable: 17 description: Indicates if we don't want to enable USB2 HW LPM 20 usb3-lpm-capable: 21 description: Determines if platform is USB3 LPM capable [all …]
|
H A D | hisilicon,histb-xhci.txt | 6 - compatible: should be "hisilicon,hi3798cv200-xhci" 7 - reg: specifies physical base address and size of the registers 8 - interrupts : interrupt used by the controller 9 - clocks: a list of phandle + clock-specifier pairs, one for each 10 entry in clock-names 11 - clock-names: must contain 16 - resets: a list of phandle and reset specifier pairs as listed in 17 reset-names property. 18 - reset-names: must contain 20 - phys: a list of phandle + phy specifier pairs [all …]
|
H A D | mediatek,mtk-xhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: MediaTek USB3 xHCI 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 - $ref: usb-xhci.yaml 19 case 2: supports dual-role mode, and the host is based on xHCI driver. 25 - enum: 26 - mediatek,mt2701-xhci [all …]
|
H A D | snps,dwc3.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Synopsys DesignWare USB3 Controller 10 - Felipe Balbi <balbi@kernel.org> 14 be presented as a standalone DT node with an optional vendor-specific 18 - $ref: usb-drd.yaml# 19 - if: 25 - dr_mode 29 $ref: usb-xhci.yaml# [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-usb | 10 This allows to avoid side-effects with drivers 28 drivers, non-authorized one are not. By default, wired 33 Contact: linux-usb@vger.kernel.org 67 What: /sys/bus/usb-serial/drivers/.../new_id 69 Contact: linux-usb@vger.kernel.org 72 extra bus folder "usb-serial" in sysfs; apart from that 97 If CONFIG_PM is set and a USB 2.0 lpm-capable device is plugged 98 in to a xHCI host which support link PM, it will perform a LPM 99 test; if the test is passed and host supports USB2 hardware LPM 100 (xHCI 1.0 feature), USB2 hardware LPM will be enabled for the [all …]
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | host.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * host.c - DesignWare USB3 DRD Controller Host Glue 5 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com 16 #include "../host/xhci-plat.h" 27 pdev = to_platform_device(hcd->self.controller); in dwc3_xhci_plat_start() 28 dwc = dev_get_drvdata(pdev->dev.parent); in dwc3_xhci_plat_start() 40 struct platform_device *pdev = to_platform_device(dwc->dev); in dwc3_host_fill_xhci_irq_res() 41 struct device_node *np = dev_of_node(&pdev->dev); in dwc3_host_fill_xhci_irq_res() 43 dwc->xhci_resources[1].start = irq; in dwc3_host_fill_xhci_irq_res() 44 dwc->xhci_resources[1].end = irq; in dwc3_host_fill_xhci_irq_res() [all …]
|
H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * core.h - DesignWare USB3 DRD Core Header 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 20 #include <linux/dma-mapping.h> 310 /* Global USB3 PIPE Control Register */ 666 * struct dwc3_event_buffer - Software event buffer representation 700 * struct dwc3_ep - device side endpoint representation 713 * @number: endpoint number (1 - 15) 718 * @name: a human readable name e.g. ep1out-bulk 762 * anything larger than 256 - I can't see why people would want to do [all …]
|
H A D | gadget.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 20 #include <linux/dma-mapping.h> 30 #define DWC3_ALIGN_FRAME(d, n) (((d)->frame_number + ((d)->interval * (n))) \ 31 & ~((d)->interval - 1)) 34 * dwc3_gadget_set_test_mode - enables usb2 test modes 39 * success or -EINVAL if wrong Test Selector is passed. 45 reg = dwc3_readl(dwc->regs, DWC3_DCTL); in dwc3_gadget_set_test_mode() 57 return -EINVAL; in dwc3_gadget_set_test_mode() [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 67 ---------------------- 85 -------------------------- 101 ------------------- [all …]
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdns3-gadget.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2018-2019 Cadence. 6 * Copyright (C) 2017-2018 NXP 15 #include <linux/dma-direction.h> 18 * USBSS-DEV register interface. 23 * struct cdns3_usb_regs - device controller registers. 53 * @buf_addr: Address for On-chip Buffer operations. 54 * @buf_data: Data for On-chip Buffer operations. 55 * @buf_ctrl: On-chip Buffer Access Control. 123 /* USB_CONF - bitmasks */ [all …]
|
H A D | cdnsp-gadget.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/io-64-nonatomic-lo-hi.h> 19 /* Max number slots - only 1 is allowed. */ 43 * struct cdnsp_cap_regs - CDNSP Registers. 46 * @hcs_params1: HCSPARAMS1 - Structural Parameters 1 47 * @hcs_params2: HCSPARAMS2 - Structural Parameters 2 48 * @hcs_params3: HCSPARAMS3 - Structural Parameters 3 49 * @hcc_params: HCCPARAMS - Capability Parameters 50 * @db_off: DBOFF - Doorbell array offset 51 * @run_regs_off: RTSOFF - Runtime register space offset [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-histb.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017-2018 HiSilicon Co., Ltd. http://www.hisilicon.com 11 #include <linux/dma-mapping.h> 46 return dev_get_drvdata(hcd->self.controller); in hcd_to_histb() 51 struct device_node *np = histb->dev->of_node; in xhci_histb_config() 54 if (of_property_match_string(np, "phys-names", "inno") >= 0) { in xhci_histb_config() 56 regval = readl(histb->ctrl + REG_GUSB2PHYCFG0); in xhci_histb_config() 60 writel(regval, histb->ctrl + REG_GUSB2PHYCFG0); in xhci_histb_config() 63 if (of_property_match_string(np, "phys-names", "combo") >= 0) { in xhci_histb_config() 68 * GUSB3PIPECTL0[2:1] = 01 : Tx Deemphasis = -3.5dB, in xhci_histb_config() [all …]
|
H A D | xhci-plat.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * xhci-plat.c - xHCI host controller driver platform Bus Glue. 5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com 12 #include <linux/dma-mapping.h> 25 #include "xhci-plat.h" 26 #include "xhci-mvebu.h" 43 if (priv->plat_start) in xhci_priv_plat_start() 44 priv->plat_start(hcd); in xhci_priv_plat_start() 51 if (!priv->init_quirk) in xhci_priv_init_quirk() 54 return priv->init_quirk(hcd); in xhci_priv_init_quirk() [all …]
|
H A D | xhci-mtk.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/dma-mapping.h> 25 #include "xhci-mtk.h" 141 struct device *dev = mtk->dev; in xhci_mtk_set_frame_interval() 142 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_set_frame_interval() 145 if (!of_device_is_compatible(dev->of_node, "mediatek,mt8195-xhci")) in xhci_mtk_set_frame_interval() 148 value = readl(hcd->regs + HFCNTR_CFG); in xhci_mtk_set_frame_interval() 151 writel(value, hcd->regs + HFCNTR_CFG); in xhci_mtk_set_frame_interval() 153 value = readl(hcd->regs + LS_EOF_CFG); in xhci_mtk_set_frame_interval() 156 writel(value, hcd->regs + LS_EOF_CFG); in xhci_mtk_set_frame_interval() [all …]
|
H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <linux/dma-mapping.h> 23 #include "xhci-trace.h" 24 #include "xhci-debugfs.h" 25 #include "xhci-dbgcap.h" 43 struct xhci_segment *seg = ring->first_seg; in td_on_ring() 45 if (!td || !td->start_seg) in td_on_ring() 48 if (seg == td->start_seg) in td_on_ring() 50 seg = seg->next; in td_on_ring() 51 } while (seg && seg != ring->first_seg); in td_on_ring() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1046a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1046A family SoC. 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/gpio/gpio.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 37 #address-cells = <1>; [all …]
|
H A D | fsl-ls1043a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1043A family SoC. 5 * Copyright 2014-2015 Freescale Semiconductor, Inc. 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/thermal/thermal.h> 13 #include <dt-bindings/interrupt-controller/arm-gic.h> 14 #include <dt-bindings/gpio/gpio.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; [all …]
|
H A D | fsl-lx2160a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 // Device Tree Include file for Layerscape-LX2160A family SoC. 5 // Copyright 2018-2020 NXP 7 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; [all …]
|
/openbmc/linux/include/linux/ |
H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <linux/errno.h> /* for -ENODEV */ 29 /*-------------------------------------------------------------------------*/ 32 * Host-side wrappers for standard USB descriptors ... these are parsed 36 * - devices have one (usually) or more configs; 37 * - configs have one (often) or more interfaces; 38 * - interfaces have one (usually) or more settings; 39 * - each interface setting has zero or (usually) more endpoints. 40 * - a SuperSpeed endpoint has a companion descriptor 44 * Devices may also have class-specific or vendor-specific descriptors. [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 69 /* Protect struct usb_device->state and ->children members 70 * Note: Both are also protected by ->dev.sem, except that ->state can 78 /* synchronize hub-port add/remove and peering operations */ 88 * 10 seconds to send reply for the initial 64-byte descriptor request. 90 /* define initial 64-byte descriptor request timeout in milliseconds */ 94 "initial 64-byte descriptor request timeout in milliseconds " 95 "(default 5000 - 5.0 seconds)"); 139 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 141 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
/openbmc/linux/include/linux/usb/ |
H A D | gadget.h | 1 // SPDX-License-Identifier: GPL-2.0 5 * We call the USB code inside a Linux-based peripheral device a "gadget" 6 * driver, except for the hardware-specific bus glue. One USB host can 11 * (C) Copyright 2002-2004 by David Brownell 34 * struct usb_request - describes one i/o request 40 * @sg: a scatterlist for SG-capable controllers. 44 * @stream_id: The stream id, when USB3.0 bulk streams are being used 56 * its buffer may be re-used. The function will always be called with 71 * Code "-ESHUTDOWN" indicates completion caused by device disconnect, 78 * reside in a device-side FIFO when the request is reported as [all …]
|
/openbmc/u-boot/drivers/usb/dwc3/ |
H A D | gadget.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link 5 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com 10 * Taken from Linux Kernel v3.19-rc1 (drivers/usb/dwc3/gadget.c) and ported 13 * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier 18 #include <asm/dma-mapping.h> 29 #include "linux-compat.h" 32 * dwc3_gadget_set_test_mode - Enables USB2 Test Modes 37 * return 0 on success or -EINVAL if wrong Test Selector 44 reg = dwc3_readl(dwc->regs, DWC3_DCTL); in dwc3_gadget_set_test_mode() [all …]
|
/openbmc/linux/drivers/usb/gadget/ |
H A D | composite.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * composite.c - infrastructure for Composite USB Gadgets 5 * Copyright (C) 2006-2008 David Brownell 27 * struct usb_os_string - represents OS String to be reported by a gadget 46 * with the relevant device-wide data. 52 return (struct usb_gadget_strings **)uc->stash; in get_containers_gs() 56 * function_descriptors() - get function descriptors for speed 75 descriptors = f->ssp_descriptors; in function_descriptors() 80 descriptors = f->ss_descriptors; in function_descriptors() 85 descriptors = f->hs_descriptors; in function_descriptors() [all …]
|