Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A 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 Device Tree Bindings
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 …]
/OK3568_Linux_fs/kernel/drivers/usb/phy/
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dmusb_dsps.c1 // SPDX-License-Identifier: GPL-2.0
20 #include <linux/dma-mapping.h>
24 #include <linux/platform_data/usb-omap.h>
136 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_mod_timer()
140 wait = msecs_to_jiffies(glue->wrp->poll_timeout); in dsps_mod_timer()
144 mod_timer(&musb->dev_timer, jiffies + wait); in dsps_mod_timer()
152 if (glue->vbus_irq) in dsps_mod_timer_optional()
155 dsps_mod_timer(glue, -1); in dsps_mod_timer_optional()
166 * dsps_musb_enable - enable interrupts
170 struct device *dev = musb->controller; in dsps_musb_enable()
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/ti/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/common/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A 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 …]
H A Dam33xx.dtsi4 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/pinctrl/am33xx.h>
14 #include <dt-bindings/clock/am3.h>
18 interrupt-parent = <&intc>;
19 #address-cells = <1>;
20 #size-cells = <1>;
33 d-can0 = &dcan0;
34 d-can1 = &dcan1;
[all …]
/OK3568_Linux_fs/kernel/Documentation/usb/
H A 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 …]
/OK3568_Linux_fs/u-boot/drivers/usb/musb-new/
H A Dam35x.c7 * Copyright (c) 2008-2009, MontaVista Software, Inc. <source@mvista.com>
11 * SPDX-License-Identifier: GPL-2.0
22 #include <linux/dma-mapping.h>
28 #include "linux-compat.h"
36 /* USB 2.0 OTG module registers */
84 #define glue_to_musb(g) platform_get_drvdata(g->musb)
87 * am35x_musb_enable - enable interrupts
95 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
99 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) | in am35x_musb_enable()
100 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT); in am35x_musb_enable()
[all …]
H A Dmusb_dsps.c10 * SPDX-License-Identifier: GPL-2.0
23 #include <linux/dma-mapping.h>
35 #include "linux-compat.h"
143 * dsps_musb_enable - enable interrupts
152 struct device *dev = musb->controller; in dsps_musb_enable()
153 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_enable()
155 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable()
159 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_enable()
163 epmask = ((musb->epmask & wrp->txep_mask) << wrp->txep_shift) | in dsps_musb_enable()
164 ((musb->epmask & wrp->rxep_mask) << wrp->rxep_shift); in dsps_musb_enable()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-omap1/
H A Dboard-innovator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-innovator.c
5 * Board specific inits for OMAP-1510 and OMAP-1610 Innovator
27 #include <asm/mach-types.h>
34 #include <linux/platform_data/keypad-omap.h>
59 /* bootloader (U-Boot, etc) in first sector */
64 .mask_flags = MTD_WRITEABLE, /* force read-only */
84 .size = SZ_16M - SZ_2M - 2 * SZ_128K,
105 .end = OMAP_CS0_PHYS + SZ_32M - 1,
110 .name = "physmap-flash",
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/cdns3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2018-2019 Cadence.
17 #include <linux/usb/otg.h>
26 * cdns3_set_mode - change mode of OTG Core
43 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns3_set_mode()
44 if (cdns->version == CDNS3_CONTROLLER_V1) { in cdns3_set_mode()
45 reg = readl(&cdns->otg_v1_regs->override); in cdns3_set_mode()
47 writel(reg, &cdns->otg_v1_regs->override); in cdns3_set_mode()
49 reg = readl(&cdns->otg_v0_regs->ctrl1); in cdns3_set_mode()
51 writel(reg, &cdns->otg_v0_regs->ctrl1); in cdns3_set_mode()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/alchemy/devboards/
H A Ddb1200.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2008-2011 Manuel Lauss
9 #include <linux/dma-mapping.h>
26 #include <asm/mach-au1x00/au1000.h>
27 #include <asm/mach-au1x00/au1100_mmc.h>
28 #include <asm/mach-au1x00/au1xxx_dbdma.h>
29 #include <asm/mach-au1x00/au1xxx_psc.h>
30 #include <asm/mach-au1x00/au1200fb.h>
31 #include <asm/mach-au1x00/au1550_spi.h>
32 #include <asm/mach-db1x00/bcsr.h>
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/cdns3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2018-2020 Cadence.
16 #include <linux/usb/otg.h>
24 * cdns3_set_mode - change mode of OTG Core
41 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns3_set_mode()
43 if (cdns->version == CDNSP_CONTROLLER_V2) in cdns3_set_mode()
44 override_reg = &cdns->otg_cdnsp_regs->override; in cdns3_set_mode()
45 else if (cdns->version == CDNS3_CONTROLLER_V1) in cdns3_set_mode()
46 override_reg = &cdns->otg_v1_regs->override; in cdns3_set_mode()
48 override_reg = &cdns->otg_v0_regs->ctrl1; in cdns3_set_mode()
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/ls2080ardb/
H A DREADME2 --------
3 The LS2080A Reference Design (RDB) is a high-performance computing,
7 The LS2081A Reference Design (RDB) is a high-performance computing,
12 --------------------------------------
13 Please refer arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc for LS2080A,
17 -----------------------
18 - SERDES Connections, 16 lanes supporting:
19 - PCI Express - 3.0
20 - SATA 3.0
21 - XFI
[all …]
/OK3568_Linux_fs/u-boot/board/freescale/ls2080aqds/
H A DREADME2 --------
3 The LS2080A Development System (QDS) is a high-performance computing,
10 --------------------
11 Please refer arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc for LS2080A,
15 -----------------------
16 - SERDES Connections, 16 lanes supporting:
17 - PCI Express - 3.0
18 - SGMII, SGMII 2.5
19 - QSGMII
20 - SATA 3.0
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/bus/
H A Dti-sysc.txt20 - compatible shall be one of the following generic types:
23 "ti,sysc-omap2"
24 "ti,sysc-omap4"
25 "ti,sysc-omap4-simple"
30 "ti,sysc-omap2-timer"
31 "ti,sysc-omap4-timer"
32 "ti,sysc-omap3430-sr"
33 "ti,sysc-omap3630-sr"
34 "ti,sysc-omap4-sr"
35 "ti,sysc-omap3-sham"
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dbq25890_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
264 * Most of the val -> idx conversions can be computed, given the minimum,
335 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
345 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
362 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
365 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx()
370 return idx - 1; in bq25890_find_idx()
384 return (rtbl->min + idx * rtbl->step); in bq25890_find_val()
424 mutex_lock(&bq->lock); in bq25890_power_supply_get_property()
427 state = bq->state; in bq25890_power_supply_get_property()
[all …]

123