Home
last modified time | relevance | path

Searched +full:otg +full:- +full:rev (Results 1 – 25 of 93) sorted by relevance

1234

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/
Dusb-drd.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/usb/usb-drd.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic USB OTG Controller
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 otg-rev:
15 Tells usb driver the release number of the OTG and EH supplement with
16 which the device and its descriptors are compliant, in binary-coded
17 decimal (i.e. 2.0 is 0200H). This property is used if any real OTG
[all …]
Ddwc2.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: DesignWare HS OTG USB 2.0 controller
10 - Rob Herring <robh@kernel.org>
13 - $ref: usb-drd.yaml#
14 - $ref: usb-hcd.yaml#
19 - const: brcm,bcm2835-usb
20 - const: hisilicon,hi6220-usb
21 - const: ingenic,jz4775-otg
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Dgeneric.txt4 - maximum-speed: tells USB controllers we want to work up to a certain
5 speed. Valid arguments are "super-speed-plus",
6 "super-speed", "high-speed", "full-speed" and
7 "low-speed". In case this isn't passed via DT, USB
10 - dr_mode: tells Dual-Role USB controllers that we want to work on a
12 "peripheral" and "otg". In case this attribute isn't
14 OTG.
15 - phy_type: tells USB controllers that we want to configure the core to support
16 a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is
20 - otg-rev: tells usb driver the release number of the OTG and EH supplement
[all …]
/kernel/linux/linux-5.10/drivers/usb/phy/
Dphy-ulpi.c1 // SPDX-License-Identifier: GPL-2.0+
17 #include <linux/usb/otg.h>
47 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
51 * ULPI Specification rev.1.1 default in ulpi_set_otg_flags()
54 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
57 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
60 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
71 * ULPI Specification rev.1.1 default in ulpi_set_fc_flags()
74 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags()
76 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags()
[all …]
Dphy-omap-otg.c1 // SPDX-License-Identifier: GPL-2.0
3 * OMAP OTG controller driver
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>
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 …]
Dphy-ab8500-usb.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010-2013 ST-Ericsson AB
13 #include <linux/usb/otg.h>
22 #include <linux/usb/musb-ux500.h>
121 /* Driver is using the ab-iddet driver*/
152 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
159 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
167 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
177 ret = regulator_enable(ab->v_ape); in ab8500_usb_regulator_enable()
179 dev_err(ab->dev, "Failed to enable v-ape\n"); in ab8500_usb_regulator_enable()
[all …]
/kernel/linux/linux-6.6/drivers/usb/phy/
Dphy-ulpi.c1 // SPDX-License-Identifier: GPL-2.0+
17 #include <linux/usb/otg.h>
47 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
51 * ULPI Specification rev.1.1 default in ulpi_set_otg_flags()
54 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
57 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
60 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
71 * ULPI Specification rev.1.1 default in ulpi_set_fc_flags()
74 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags()
76 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags()
[all …]
Dphy-omap-otg.c1 // SPDX-License-Identifier: GPL-2.0
3 * OMAP OTG controller driver
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>
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 …]
Dphy-ab8500-usb.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010-2013 ST-Ericsson AB
13 #include <linux/usb/otg.h>
22 #include <linux/usb/musb-ux500.h>
121 /* Driver is using the ab-iddet driver*/
152 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
159 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
167 abx500_set_register_interruptible(ab->dev, in ab8500_usb_wd_workaround()
177 ret = regulator_enable(ab->v_ape); in ab8500_usb_regulator_enable()
179 dev_err(ab->dev, "Failed to enable v-ape\n"); in ab8500_usb_regulator_enable()
[all …]
/kernel/linux/linux-5.10/drivers/usb/musb/
Dtusb6010.c1 // SPDX-License-Identifier: GPL-2.0
3 * TUSB6010 USB 2.0 OTG Dual Role controller
9 * - Driver assumes that interface to external host (main CPU) is
24 #include <linux/dma-mapping.h>
46 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision()
48 u8 rev; in tusb_get_revision() local
50 rev = musb_readl(tbase, TUSB_DMA_CTRL_REV) & 0xff; in tusb_get_revision()
51 if (TUSB_REV_MAJOR(rev) == 3) { in tusb_get_revision()
55 rev |= 1; in tusb_get_revision()
58 return rev; in tusb_get_revision()
[all …]
Dda8xx.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments DA8xx/OMAP-L1x "glue layer"
5 * Copyright (c) 2008-2009 MontaVista Software, Inc. <source@mvista.com>
8 * Copyright (C) 2005-2006 by Texas Instruments
23 #include <linux/dma-mapping.h>
32 /* USB 2.0 OTG module registers */
46 #define DA8XX_USB_GENERIC_RNDIS_EP_SIZE_REG(n) (0x50 + (((n) - 1) << 2))
76 * - not read/write INTRUSB/INTRUSBE (except during
78 * - use INTSET/INTCLR instead.
82 * da8xx_musb_enable - enable interrupts
[all …]
Dam35x.c1 // SPDX-License-Identifier: GPL-2.0
9 * Copyright (c) 2008-2009, MontaVista Software, Inc. <source@mvista.com>
19 #include <linux/dma-mapping.h>
21 #include <linux/platform_data/usb-omap.h>
28 /* USB 2.0 OTG module registers */
79 * am35x_musb_enable - enable interrupts
83 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
87 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) | in am35x_musb_enable()
88 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT); in am35x_musb_enable()
99 * am35x_musb_disable - disable HDRC and flush interrupts
[all …]
/kernel/linux/linux-6.6/drivers/usb/musb/
Dtusb6010.c1 // SPDX-License-Identifier: GPL-2.0
3 * TUSB6010 USB 2.0 OTG Dual Role controller
9 * - Driver assumes that interface to external host (main CPU) is
27 #include <linux/dma-mapping.h>
51 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision()
53 u8 rev; in tusb_get_revision() local
55 rev = musb_readl(tbase, TUSB_DMA_CTRL_REV) & 0xff; in tusb_get_revision()
56 if (TUSB_REV_MAJOR(rev) == 3) { in tusb_get_revision()
60 rev |= 1; in tusb_get_revision()
63 return rev; in tusb_get_revision()
[all …]
Dda8xx.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments DA8xx/OMAP-L1x "glue layer"
5 * Copyright (c) 2008-2009 MontaVista Software, Inc. <source@mvista.com>
8 * Copyright (C) 2005-2006 by Texas Instruments
23 #include <linux/dma-mapping.h>
32 /* USB 2.0 OTG module registers */
46 #define DA8XX_USB_GENERIC_RNDIS_EP_SIZE_REG(n) (0x50 + (((n) - 1) << 2))
76 * - not read/write INTRUSB/INTRUSBE (except during
78 * - use INTSET/INTCLR instead.
82 * da8xx_musb_enable - enable interrupts
[all …]
/kernel/linux/linux-6.6/drivers/phy/ti/
Dphy-dm816x-usb.c1 // SPDX-License-Identifier: GPL-2.0-only
23 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at
24 * least dm816x rev c ignores writes to USB_CTRL register, but the TI
53 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
55 otg->host = host; in dm816x_usb_phy_set_host()
57 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
62 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
65 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
67 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
77 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init()
[all …]
/kernel/linux/linux-5.10/drivers/phy/ti/
Dphy-dm816x-usb.c32 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at
33 * least dm816x rev c ignores writes to USB_CTRL register, but the TI
62 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
64 otg->host = host; in dm816x_usb_phy_set_host()
66 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
71 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
74 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
76 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
86 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init()
87 dev_warn(phy->dev, "nonstandard phy refclk\n"); in dm816x_usb_phy_init()
[all …]
/kernel/linux/linux-6.6/drivers/usb/common/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
7 * compiled-in as well. Otherwise, if either of the two stacks is
17 #include <linux/usb/otg.h>
30 * usb_ep_type_string() - Returns human readable-name of the endpoint type.
31 * @ep_type: The endpoint type to return human-readable name for. If it's not
71 [USB_SPEED_LOW] = "low-speed",
72 [USB_SPEED_FULL] = "full-speed",
73 [USB_SPEED_HIGH] = "high-speed",
75 [USB_SPEED_SUPER] = "super-speed",
76 [USB_SPEED_SUPER_PLUS] = "super-speed-plus",
[all …]
/kernel/linux/linux-5.10/drivers/usb/common/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
7 * compiled-in as well. Otherwise, if either of the two stacks is
16 #include <linux/usb/otg.h>
29 * usb_ep_type_string() - Returns human readable-name of the endpoint type.
30 * @ep_type: The endpoint type to return human-readable name for. If it's not
70 [USB_SPEED_LOW] = "low-speed",
71 [USB_SPEED_FULL] = "full-speed",
72 [USB_SPEED_HIGH] = "high-speed",
74 [USB_SPEED_SUPER] = "super-speed",
75 [USB_SPEED_SUPER_PLUS] = "super-speed-plus",
[all …]
/kernel/linux/linux-5.10/Documentation/usb/
Dchipidea.rst5 1. How to test OTG FSM(HNP and SRP)
6 -----------------------------------
8 To show how to demo OTG HNP and SRP functions via sys input files
11 1.1 How to enable OTG FSM
12 -------------------------
18 variables for otg fsm, mount debugfs, there are 2 files
19 which can show otg fsm variables and some controller registers value::
21 cat /sys/kernel/debug/ci_hdrc.0/otg
29 otg-rev = <0x0200>;
30 adp-disable;
[all …]
/kernel/linux/linux-6.6/Documentation/usb/
Dchipidea.rst5 1. How to test OTG FSM(HNP and SRP)
6 -----------------------------------
8 To show how to demo OTG HNP and SRP functions via sys input files
11 1.1 How to enable OTG FSM
12 -------------------------
18 variables for otg fsm, mount debugfs, there are 2 files
19 which can show otg fsm variables and some controller registers value::
21 cat /sys/kernel/debug/ci_hdrc.0/otg
29 otg-rev = <0x0200>;
30 adp-disable;
[all …]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dci.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ci.h - common structures, functions, and macros of the ChipIdea driver
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
17 #include <linux/usb/otg-fsm.h>
18 #include <linux/usb/otg.h>
75 * struct ci_hw_ep - endpoint representation
126 * struct ci_role_driver - host/gadget role driver
140 * struct hw_bank - hardware register mapping representation
160 * struct ci_hdrc - chipidea device representation
167 * @is_otg: if the device is otg-capable
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Ddra74x.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com/
16 compatible = "arm,cortex-a15";
18 operating-points-v2 = <&cpu0_opp_table>;
21 clock-names = "cpu";
23 clock-latency = <300000>; /* From omap-cpufreq driver */
26 #cooling-cells = <2>; /* min followed by max */
28 vbb-supply = <&abb_mpu>;
40 compatible = "arm,cortex-a15-pmu";
41 interrupt-parent = <&wakeupgen>;
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/
Ddra74x.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com/
16 compatible = "arm,cortex-a15";
18 operating-points-v2 = <&cpu0_opp_table>;
21 clock-names = "cpu";
23 clock-latency = <300000>; /* From omap-cpufreq driver */
26 #cooling-cells = <2>; /* min followed by max */
28 vbb-supply = <&abb_mpu>;
40 compatible = "arm,cortex-a15-pmu";
41 interrupt-parent = <&wakeupgen>;
[all …]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
Dci.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ci.h - common structures, functions, and macros of the ChipIdea driver
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
17 #include <linux/usb/otg-fsm.h>
18 #include <linux/usb/otg.h>
77 * struct ci_hw_ep - endpoint representation
128 * struct ci_role_driver - host/gadget role driver
146 * struct hw_bank - hardware register mapping representation
166 * struct ci_hdrc - chipidea device representation
173 * @is_otg: if the device is otg-capable
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * core.c - ChipIdea USB IP core family device controller
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
12 * - Four transfers are supported, usbtest is passed
13 * - USB Certification for gadget: CH9 and Mass Storage are passed
14 * - Low power mode
15 * - USB wakeup
19 #include <linux/dma-mapping.h>
33 #include <linux/usb/otg.h>
44 #include "otg.h"
[all …]

1234