Home
last modified time | relevance | path

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

12

/linux/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
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 …]
/linux/drivers/usb/phy/
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 …]
/linux/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
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 …]
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
25 #include <linux/dma-mapping.h>
34 /* USB 2.0 OTG module registers */
48 #define DA8XX_USB_GENERIC_RNDIS_EP_SIZE_REG(n) (0x50 + (((n) - 1) << 2))
78 * - not read/write INTRUSB/INTRUSBE (except during
80 * - use INTSET/INTCLR instead.
84 * da8xx_musb_enable - enable interrupts
[all …]
H A Dmusb_dsps.c1 // SPDX-License-Identifier: GPL-2.0
21 #include <linux/dma-mapping.h>
25 #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 …]
/linux/arch/arm/boot/dts/ti/omap/
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.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/bus/ti-sysc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/pinctrl/am33xx.h>
11 #include <dt-bindings/clock/am3.h>
15 interrupt-parent = <&intc>;
16 #address-cells = <1>;
17 #size-cells = <1>;
30 d-can0 = &dcan0;
[all …]
H A Ddm814x.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include <dt-bindings/bus/ti-sysc.h>
4 #include <dt-bindings/clock/dm814.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/dm814x.h>
10 interrupt-parent = <&intc>;
11 #address-cells = <1>;
12 #size-cells = <1>;
30 #address-cells = <1>;
31 #size-cells = <0>;
[all …]
H A Domap5-l4.dtsi2 compatible = "ti,omap5-l4-cfg", "simple-pm-bus";
3 power-domains = <&prm_core>;
5 clock-names = "fck";
9 reg-names = "ap", "la", "ia0";
10 #address-cells = <1>;
11 #size-cells = <1>;
21 compatible = "simple-pm-bus";
22 #address-cells = <1>;
23 #size-cells = <1>;
55 target-module@2000 { /* 0x4a002000, ap 3 44.0 */
[all …]
H A Dam57xx-idk-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
6 #include "am57xx-industrial-grade.dtsi"
16 stdout-path = &uart3;
19 vmain: fixedregulator-vmain {
20 compatible = "regulator-fixed";
21 regulator-name = "VMAIN";
22 regulator-min-microvolt = <5000000>;
23 regulator-max-microvolt = <5000000>;
24 regulator-always-on;
[all …]
/linux/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 …]
/linux/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>
25 #include <asm/mach-au1x00/au1000.h>
26 #include <asm/mach-au1x00/au1100_mmc.h>
27 #include <asm/mach-au1x00/au1xxx_dbdma.h>
28 #include <asm/mach-au1x00/au1xxx_psc.h>
29 #include <asm/mach-au1x00/au1200fb.h>
30 #include <asm/mach-au1x00/au1550_spi.h>
31 #include <asm/mach-db1x00/bcsr.h>
[all …]
/linux/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>
22 * cdns_set_mode - change mode of OTG Core
39 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns_set_mode()
41 if (cdns->version == CDNSP_CONTROLLER_V2) in cdns_set_mode()
42 override_reg = &cdns->otg_cdnsp_regs->override; in cdns_set_mode()
43 else if (cdns->version == CDNS3_CONTROLLER_V1) in cdns_set_mode()
44 override_reg = &cdns->otg_v1_regs->override; in cdns_set_mode()
46 override_reg = &cdns->otg_v0_regs->ctrl1; in cdns_set_mode()
[all …]
/linux/arch/arm64/boot/dts/renesas/
H A Dhihope-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the HiHope RZ/G2H Rev.4.0 and
4 * HiHope RZ/G2[MN] Rev.[2.0/3.0/4.0] main board common parts
9 #include <dt-bindings/gpio/gpio.h>
30 stdout-path = "serial0:115200n8";
33 hdmi0-out {
34 compatible = "hdmi-connector";
39 remote-endpoint = <&rcar_dw_hdmi0_out>;
45 compatible = "gpio-leds";
64 reg_1p8v: regulator-1p8v {
[all …]
/linux/drivers/power/supply/
H A Dmax77976_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 * max77976_charger.c - Driver for the Maxim MAX77976 battery charger
14 #define MAX77976_DRIVER_NAME "max77976-charger"
20 /* --------------------------------------------------------------------------
110 /* --------------------------------------------------------------------------
120 /* --------------------------------------------------------------------------
129 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_status()
167 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_charge_type()
205 err = regmap_field_read(chg->rfield[BAT_DTLS], &regval); in max77976_get_health()
239 err = regmap_field_read(chg->rfield[CHGIN_OK], &regval); in max77976_get_online()
[all …]
/linux/arch/arm/boot/dts/allwinner/
H A Dsun4i-a10-inet97fv2.dts6 * This file is dual-licensed: you can use it either under the terms
45 /dts-v1/;
46 #include "sun4i-a10.dtsi"
47 #include "sunxi-common-regulators.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/input/input.h>
51 #include <dt-bindings/interrupt-controller/irq.h>
54 model = "INet-97F Rev 02";
55 compatible = "primux,inet97fv2", "allwinner,sun4i-a10";
62 stdout-path = "serial0:115200n8";
[all …]
H A Dsun4i-a10-inet9f-rev03.dts4 * This file is dual-licensed: you can use it either under the terms
43 /dts-v1/;
44 #include "sun4i-a10.dtsi"
45 #include "sunxi-common-regulators.dtsi"
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
51 model = "iNet-9F Rev 03";
52 compatible = "inet-tek,inet9f-rev03", "allwinner,sun4i-a10";
59 stdout-path = "serial0:115200n8";
[all …]
/linux/drivers/usb/host/
H A Dehci-fsl.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2005-2009 MontaVista Software, Inc.
9 * Jerry Huang <Chang-Ming.Huang@freescale.com> and
22 #include <linux/usb/otg.h>
29 #include "ehci-fsl.h"
32 #define DRV_NAME "fsl-ehci"
40 * fsl_ehci_drv_probe - initialize FSL-based HCDs
56 pr_debug("initializing FSL-SOC USB Controller\n"); in fsl_ehci_drv_probe()
59 pdata = dev_get_platdata(&pdev->dev); in fsl_ehci_drv_probe()
61 dev_err(&pdev->dev, in fsl_ehci_drv_probe()
[all …]
/linux/drivers/usb/gadget/udc/
H A Domap_udc.c1 // SPDX-License-Identifier: GPL-2.0+
3 * omap_udc.c -- for OMAP full speed udc; most chips support OTG.
6 * Copyright (C) 2004-2005 David Brownell
31 #include <linux/usb/otg.h>
32 #include <linux/dma-mapping.h>
41 #include <asm/mach-types.h>
43 #include <linux/omap-dma.h>
44 #include <linux/platform_data/usb-omap1.h>
46 #include <linux/soc/ti/omap1-usb.h>
47 #include <linux/soc/ti/omap1-soc.h>
[all …]
H A Dsnps_udc_core.c1 // SPDX-License-Identifier: GPL-2.0+
3 * amd5536.c -- AMD 5536 UDC high/full speed USB device controller
5 * Copyright (C) 2005-2007 AMD (https://www.amd.com)
11 * on Synopsys device controller IP (different than HS OTG IP) that is either
76 /* set_rde -- Is used to control enabling of RX DMA. Problem is
85 * set_rde -1 == not used, means it is alloed to be set to 0 or 1
90 static int set_rde = -1;
111 EP_INFO("ep1in-int",
113 EP_INFO("ep2in-bulk",
115 EP_INFO("ep3in-bulk",
[all …]
/linux/arch/arm/boot/dts/st/
H A Dstm32mp151.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/stm32mp1-clks.h>
8 #include <dt-bindings/reset/stm32mp1-resets.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "arm,cortex-a7";
[all …]
H A Dstm32mp131.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/stm32mp13-clks.h>
8 #include <dt-bindings/reset/stm32mp13-resets.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "arm,cortex-a7";
[all …]
/linux/drivers/bus/
H A Dti-sysc.c1 // SPDX-License-Identifier: GPL-2.0
3 * ti-sysc.c - Texas Instruments sysc interconnect target driver
8 * Copyright (C) 2017-2024 Texas Instruments Incorporated - https://www.ti.com/
13 * Copyright (C) 2009-2011 Nokia Corporation
14 * Copyright (C) 2011-2021 Texas Instruments Incorporated - https://www.ti.com/
35 #include <linux/platform_data/ti-sysc.h>
37 #include <dt-bindings/bus/ti-sysc.h>
97 static const char * const reg_names[] = { "rev", "sysc", "syss", };
107 * struct sysc - TI sysc interconnect target module registers and capabilities
113 * @mdata: ti-sysc to hwmod translation data for a module
[all …]
/linux/drivers/usb/isp1760/
H A Disp1760-hcd.c1 // SPDX-License-Identifier: GPL-2.0
6 * - ISO
7 * - OTG
33 #include "isp1760-core.h"
34 #include "isp1760-hcd.h"
35 #include "isp1760-regs.h"
46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv()
150 /* the rest is HCD-private */
158 /* QTD_XFER_STARTED: valid ptd has been written to isp176x - only
204 return isp1760_field_read(priv->fields, field); in isp1760_hcd_read()
[all …]
/linux/drivers/regulator/
H A Dqcom_spmi-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
8 #include <linux/devm-helpers.h>
57 * struct spmi_regulator_init_data - spmi-regulator initialization data
365 * struct spmi_voltage_range - regulator set point voltage mapping description
380 * (max_uV - min_uV) % step_uV == 0
381 * (set_point_min_uV - min_uV) % step_uV == 0*
382 * (set_point_max_uV - min_uV) % step_uV == 0*
383 * n_voltages = (set_point_max_uV - set_point_min_uV) / step_uV + 1
478 ((_set_point_max_uV - _set_point_min_uV) / _step_uV) + 1 : \
[all …]

12