/Linux-v6.1/drivers/extcon/ |
D | extcon-usb-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver 5 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com 9 #include <linux/extcon-provider.h> 44 * "USB" = VBUS and "USB-HOST" = !ID, so we have: 45 * Both "USB" and "USB-HOST" can't be set as active at the 46 * same time so if "USB-HOST" is active (i.e. ID is 0) we keep "USB" inactive 47 * even if VBUS is on. 49 * State | ID | VBUS 50 * ---------------------------------------- [all …]
|
/Linux-v6.1/drivers/usb/common/ |
D | usb-conn-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB GPIO Based Connection Detection Driver 9 * Some code borrowed from drivers/extcon/extcon-usb-gpio.c 22 #include <linux/usb/role.h> 34 struct regulator *vbus; member 48 * "DEVICE" = VBUS and "HOST" = !ID, so we have: 51 * even if VBUS is on. 53 * Role | ID | VBUS 54 * ------------------------------------ 61 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/usb/ |
D | usb-nop-xceiv.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/usb/usb-nop-xceiv.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: USB NOP PHY 10 - Rob Herring <robh@kernel.org> 14 const: usb-nop-xceiv 19 clock-names: 22 clock-frequency: true 24 '#phy-cells': [all …]
|
D | atmel-usb.txt | 1 Atmel SOC USB controllers 6 - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers 8 - reg: Address and length of the register set for the device 9 - interrupts: Should contain ohci interrupt 10 - clocks: Should reference the peripheral, host and system clocks 11 - clock-names: Should contain three strings 15 - num-ports: Number of ports. 16 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 18 - atmel,oc-gpio: If present, specifies a gpio that needs to be 22 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; [all …]
|
D | ohci-da8xx.txt | 1 DA8XX USB OHCI controller 5 - compatible: Should be "ti,da830-ohci" 6 - reg: Should contain one register range i.e. start and length 7 - interrupts: Description of the interrupt line 8 - phys: Phandle for the PHY device 9 - phy-names: Should be "usb-phy" 12 - vbus-supply: phandle of regulator that controls vbus power / over-current 16 ohci: usb@225000 { 17 compatible = "ti,da830-ohci"; 21 phy-names = "usb-phy"; [all …]
|
D | ci-hdrc-usb2.txt | 1 * USB2 ChipIdea USB controller for ci13xxx 4 - compatible: should be one of: 5 "fsl,imx23-usb" 6 "fsl,imx27-usb" 7 "fsl,imx28-usb" 8 "fsl,imx6q-usb" 9 "fsl,imx6sl-usb" 10 "fsl,imx6sx-usb" 11 "fsl,imx6ul-usb" 12 "fsl,imx7d-usb" [all …]
|
/Linux-v6.1/drivers/phy/allwinner/ |
D | phy-sun4i-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Allwinner sun4i USB phy driver 5 * Copyright (C) 2014-2015 Hans de Goede <hdegoede@redhat.com> 18 #include <linux/extcon-provider.h> 30 #include <linux/phy/phy-sun4i-usb.h> 36 #include <linux/usb/of.h> 60 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */ 97 * otherwise we get Vbus errors 134 struct regulator *vbus; member 158 container_of((phy), struct sun4i_usb_phy_data, phys[(phy)->index]) [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/connector/ |
D | usb-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: USB Connector 10 - Rob Herring <robh@kernel.org> 13 A USB connector node represents a physical USB connector. It should be a child 14 of a USB interface controller or a separate node when it is attached to both 15 MUX and USB interface controller. 20 - enum: [all …]
|
/Linux-v6.1/drivers/phy/motorola/ |
D | phy-cpcap-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Motorola CPCAP PMIC USB PHY driver 7 * board-mapphone-usb.c and cpcap-usb-det.c: 8 * Copyright (C) 2007 - 2011 Motorola, Inc. 26 #include <linux/mfd/motorola-cpcap.h> 30 #include <linux/usb/musb.h> 110 CPCAP_UNKNOWN_DISABLED, /* Seems to disable USB lines */ 124 struct iio_channel *vbus; member 136 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 140 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/extcon/ |
D | extcon-usb-gpio.txt | 1 USB GPIO Extcon device 3 This is a virtual device used to generate USB cable states from the USB ID pin 7 - compatible: Should be "linux,extcon-usb-gpio" 9 Either one of id-gpio or vbus-gpio must be present. Both can be present as well. 10 - id-gpio: gpio for USB ID pin. See gpio binding. 11 - vbus-gpio: gpio for USB VBUS pin. 13 Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below: 15 compatible = "linux,extcon-usb-gpio"; 16 id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
|
/Linux-v6.1/drivers/usb/phy/ |
D | phy-generic.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NOP USB transceiver for all USB transceiver which are either built-in 4 * into USB IP or which are mostly autonomous. 16 #include <linux/dma-mapping.h> 17 #include <linux/usb/gadget.h> 18 #include <linux/usb/otg.h> 19 #include <linux/usb/usb_phy_generic.h> 27 #include "phy-generic.h" 48 struct usb_phy_generic *nop = dev_get_drvdata(x->dev); in nop_set_suspend() 50 if (!IS_ERR(nop->clk)) { in nop_set_suspend() [all …]
|
D | phy-omap-otg.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Based on code from tahvo-usb.c and isp1301_omap.c drivers. 7 * Copyright (C) 2005-2006 Nokia Corporation 19 #include <linux/platform_data/usb-omap1.h> 24 bool vbus; member 44 l = readl(otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl() 47 writel(l, otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl() 52 if (!otg_dev->id && otg_dev->vbus) in omap_otg_set_mode() 53 /* Set B-session valid. */ in omap_otg_set_mode() 55 else if (otg_dev->vbus) in omap_otg_set_mode() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 # Physical Layer USB driver configuration 5 menu "USB Physical Layer drivers" 12 # USB Transceiver Drivers 15 tristate "AB8500 USB Transceiver Driver" 19 Enable this to support the USB OTG transceiver in AB8500 chip. 24 tristate "Freescale USB OTG Transceiver Driver" 29 Enable this to support Freescale USB OTG transceiver. 35 depends on USB 40 USB-On-The-Go transceiver working with the OMAP OTG controller. [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/power/supply/ |
D | mt6360_charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Gene Chen <gene_chen@richtek.com> 18 const: mediatek,mt6360-chg 20 richtek,vinovp-microvolt: 25 usb-otg-vbus-regulator: 31 - compatible 36 - | 38 compatible = "mediatek,mt6360-chg"; [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/phy/ |
D | nvidia,tegra124-xusb-padctl.txt | 11 Some of the lanes are high-speed lanes, which can be used for PCIe, SATA or 12 super-speed USB. Other lanes are for various types of low-speed, full-speed 13 or high-speed USB (such as UTMI, ULPI and HSIC). The XUSB pad controller 14 contains a software-configurable mux that sits between the I/O controller 17 In addition to per-lane configuration, USB 3.0 ports may require additional 18 settings on a per-board basis. 20 Pads will be represented as children of the top-level XUSB pad controller 23 PHY bindings, as described by the phy-bindings.txt file in this directory. 27 "port" is typically used to denote the physical USB receptacle. The device 29 abstraction of the signals that are routed to a USB receptacle (i.e. a PHY [all …]
|
D | allwinner,sun8i-v3s-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun8i-v3s-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner V3s USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 18 const: allwinner,sun8i-v3s-usb-phy 22 - description: PHY Control registers [all …]
|
D | allwinner,sun50i-a64-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun50i-a64-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A64 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 19 - allwinner,sun20i-d1-usb-phy 20 - allwinner,sun50i-a64-usb-phy [all …]
|
D | allwinner,sun8i-a23-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun8i-a23-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A23 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 19 - allwinner,sun8i-a23-usb-phy 20 - allwinner,sun8i-a33-usb-phy [all …]
|
D | allwinner,sun5i-a13-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun5i-a13-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A13 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 18 const: allwinner,sun5i-a13-usb-phy 22 - description: PHY Control registers [all …]
|
D | allwinner,sun6i-a31-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun6i-a31-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A31 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 18 const: allwinner,sun6i-a31-usb-phy 22 - description: PHY Control registers [all …]
|
D | allwinner,sun8i-r40-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun8i-r40-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner R40 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 18 const: allwinner,sun8i-r40-usb-phy 22 - description: PHY Control registers [all …]
|
D | allwinner,sun50i-h6-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun50i-h6-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner H6 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 18 const: allwinner,sun50i-h6-usb-phy 22 - description: PHY Control registers [all …]
|
D | allwinner,sun4i-a10-usb-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/allwinner,sun4i-a10-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A10 USB PHY 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#phy-cells": 19 - allwinner,sun4i-a10-usb-phy 20 - allwinner,sun7i-a20-usb-phy [all …]
|
/Linux-v6.1/drivers/phy/freescale/ |
D | phy-fsl-imx8mq-usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 38 struct regulator *vbus; member 46 value = readl(imx_phy->base + PHY_CTRL1); in imx8mq_usb_phy_init() 50 writel(value, imx_phy->base + PHY_CTRL1); in imx8mq_usb_phy_init() 52 value = readl(imx_phy->base + PHY_CTRL0); in imx8mq_usb_phy_init() 54 writel(value, imx_phy->base + PHY_CTRL0); in imx8mq_usb_phy_init() 56 value = readl(imx_phy->base + PHY_CTRL2); in imx8mq_usb_phy_init() 58 writel(value, imx_phy->base + PHY_CTRL2); in imx8mq_usb_phy_init() 60 value = readl(imx_phy->base + PHY_CTRL1); in imx8mq_usb_phy_init() 62 writel(value, imx_phy->base + PHY_CTRL1); in imx8mq_usb_phy_init() [all …]
|
/Linux-v6.1/Documentation/firmware-guide/acpi/ |
D | extcon-intel-int3496.rst | 6 devices with an acpi-id of INT3496, such as found for example on 9 This ACPI device describes how the OS can read the id-pin of the devices' 10 USB-otg port, as well as how it optionally can enable Vbus output on the 12 between an USB host and an USB peripheral controller. 18 Index 0 The input gpio for the id-pin, this is always present and valid 19 Index 1 The output gpio for enabling Vbus output from the device to the otg 20 port, write 1 to enable the Vbus output (this gpio descriptor may 22 Index 2 The output gpio for muxing of the data pins between the USB host and 23 the USB peripheral controller, write 1 to mux to the peripheral 31 vbus index 1
|