Home
last modified time | relevance | path

Searched +full:hnp +full:- +full:disable (Results 1 – 25 of 83) sorted by relevance

1234

/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#
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 otg-rev:
16 which the device and its descriptors are compliant, in binary-coded
18 features (HNP/SRP/ADP) is enabled. If ADP is required, otg-rev should be
24 Tells Dual-Role USB controllers that we want to work on a particular
30 hnp-disable:
[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
12 -------------------------
29 otg-rev = <0x0200>;
30 adp-disable;
33 -------------------
41 The A-device(with micro A plug inserted) should enumerate B-device.
45 On B-device::
49 B-device should take host role and enumerate A-device.
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/dwc2/
H A Dcore_intr.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * core_intr.c - DesignWare HS OTG Controller common interrupt handling
5 * Copyright (C) 2004-2013 Synopsys, Inc.
16 * 3. The names of the above-listed copyright holders may not be used
46 #include <linux/dma-mapping.h>
59 switch (hsotg->op_state) { in dwc2_op_state_str()
76 * dwc2_handle_usb_port_intr - handles OTG PRTINT interrupts.
93 * dwc2_handle_mode_mismatch_intr() - Logs a mode mismatch warning message
102 dev_warn(hsotg->dev, "Mode Mismatch Interrupt: currently in %s mode\n", in dwc2_handle_mode_mismatch_intr()
107 * dwc2_handle_otg_intr() - Handles the OTG Interrupts. It reads the OTG
[all …]
H A Dcore.h1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
3 * core.h - DesignWare HS OTG Controller common declarations
5 * Copyright (C) 2004-2013 Synopsys, Inc.
16 * 3. The names of the above-listed copyright holders may not be used
50 * - no_printk: Disable tracing
51 * - pr_info: Print this info to the console
52 * - trace_printk: Print this info to trace buffer (good for verbose logging)
61 dev_name(hsotg->dev), ##__VA_ARGS__)
66 dev_name(hsotg->dev), ##__VA_ARGS__)
71 /* dwc2-hsotg declarations */
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dimx7ulp-com.dts1 // SPDX-License-Identifier: GPL-2.0
5 /dts-v1/;
8 #include <dt-bindings/input/input.h>
12 compatible = "ea,imx7ulp-com", "fsl,imx7ulp";
15 stdout-path = &lpuart4;
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinctrl_lpuart4>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&pinctrl_usbotg1_id>;
33 srp-disable;
[all …]
H A Dimx7ulp-evk.dts1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright 2017-2018 NXP
8 /dts-v1/;
14 compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp";
17 stdout-path = &lpuart4;
26 compatible = "pwm-backlight";
28 brightness-levels = <0 20 25 30 35 40 100>;
29 default-brightness-level = <6>;
33 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
34 compatible = "regulator-fixed";
[all …]
H A Dimx7d-mba7.dts1 // SPDX-License-Identifier: GPL-2.0 OR X11
6 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
10 /dts-v1/;
12 #include "imx7d-tqma7.dtsi"
13 #include "imx7-mba7.dtsi"
17 compatible = "tq,imx7d-mba7", "fsl,imx7d";
21 pinctrl-names = "default";
22 pinctrl-0 = <&pinctrl_enet2>;
23 phy-mode = "rgmii-id";
24 phy-reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
[all …]
H A Dimx6q-var-dt6customboard.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Support for Variscite DART-MX6 Carrier-board
9 /dts-v1/;
12 #include "imx6qdl-var-dart.dtsi"
13 #include <dt-bindings/input/linux-event-codes.h>
16 model = "Variscite DART-MX6 Carrier-board";
20 compatible = "pwm-backlight";
22 brightness-levels = <0 4 8 16 32 64 128 248>;
23 default-brightness-level = <7>;
27 gpio-keys {
[all …]
H A Dqcom-apq8074-dragonboard.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.dtsi"
8 compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
17 stdout-path = "serial0:115200n8";
26 bus-width = <8>;
27 non-removable;
30 vmmc-supply = <&pm8941_l20>;
31 vqmmc-supply = <&pm8941_s3>;
[all …]
H A De60k02.dtsi1 // SPDX-License-Identifier: GPL-2.0
11 * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
14 #include <dt-bindings/input/input.h>
19 stdout-path = &uart1;
22 gpio_keys: gpio-keys {
23 compatible = "gpio-keys";
29 wakeup-source;
36 linux,input-type = <EV_SW>;
37 wakeup-source;
42 compatible = "gpio-leds";
[all …]
H A Dimx6ul-kontron-n6x1x-s.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/gpio/gpio.h>
11 gpio-leds {
12 compatible = "gpio-leds";
13 pinctrl-names = "default";
14 pinctrl-0 = <&pinctrl_gpio_leds>;
17 label = "debug-led1";
19 default-state = "off";
20 linux,default-trigger = "heartbeat";
24 label = "debug-led2";
[all …]
H A Dqcom-msm8974-fairphone-fp2.dts1 #include "qcom-msm8974.dtsi"
2 #include "qcom-pm8841.dtsi"
3 #include "qcom-pm8941.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
18 stdout-path = "serial0:115200n8";
21 gpio-keys {
22 compatible = "gpio-keys";
23 input-name = "gpio-keys";
[all …]
H A Dqcom-msm8974-sony-xperia-honami.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
11 compatible = "sony,xperia-honami", "qcom,msm8974";
18 stdout-path = "serial0:115200n8";
21 gpio-keys {
[all …]
H A Dqcom-msm8974-sony-xperia-amami.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
11 compatible = "sony,xperia-amami", "qcom,msm8974";
18 stdout-path = "serial0:115200n8";
21 gpio-keys {
[all …]
H A Dqcom-msm8974-samsung-klte.dts1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "qcom-pma8084.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
17 stdout-path = "serial0:115200n8";
23 pma8084-regulators {
24 compatible = "qcom,rpm-pma8084-regulators";
28 regulator-min-microvolt = <675000>;
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/musb-new/
H A Dmusb_core.c5 * Copyright (C) 2005-2006 by Texas Instruments
6 * Copyright (C) 2006-2007 Nokia Corporation
8 * SPDX-License-Identifier: GPL-2.0
12 * Inventra (Multipoint) Dual-Role Controller Driver for Linux.
16 * in the works. These are normal Linux-USB controller drivers which
30 * - Lack of host-side transaction scheduling, for all transfer types.
36 * includes DaVinci EVM in a common non-OTG mode.
60 * - Kconfig for everything user-configurable
61 * - platform_device for addressing, irq, and platform_data
62 * - platform_data is mostly for board-specific informarion
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmusb_core.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
11 * Inventra (Multipoint) Dual-Role Controller Driver for Linux.
15 * in the works. These are normal Linux-USB controller drivers which
29 * - Lack of host-side transaction scheduling, for all transfer types.
35 * includes DaVinci EVM in a common non-OTG mode.
59 * - Kconfig for everything user-configurable
60 * - platform_device for addressing, irq, and platform_data
61 * - platform_data is mostly for board-specific information
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/
H A Dimx8mm-var-som-symphony.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "imx8mm-var-som.dtsi"
11 model = "Variscite VAR-SOM-MX8MM Symphony evaluation board";
12 compatible = "variscite,var-som-mx8mm-symphony", "variscite,var-som-mx8mm", "fsl,imx8mm";
14 reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
15 compatible = "regulator-fixed";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
18 regulator-name = "VSD_3V3";
[all …]
H A Dimx8mn-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/usb/pd.h>
11 stdout-path = &uart2;
14 gpio-leds {
15 compatible = "gpio-leds";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_gpio_led>;
22 default-state = "on";
31 reg_usdhc2_vmmc: regulator-usdhc2 {
32 compatible = "regulator-fixed";
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg.c3 * Designware DWC2 on-chip full/high speed USB OTG 2.0 device controllers
9 * git://git.kernel.org/pub/scm/linux/kernel/git/kki_ap/linux-2.6-samsung.git
14 * Ported to u-boot:
18 * SPDX-License-Identifier: GPL-2.0+
24 #include <generic-phy.h>
39 #include <asm/mach-types.h>
77 static const char driver_name[] = "dwc2-udc";
78 static const char ep0name[] = "ep0-control";
124 the_controller->gadget.dev.device_data = p; in set_udc_gadget_private_data()
129 return gadget->dev.device_data; in get_udc_gadget_private_data()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
3 * drd.c - DesignWare USB3 DRD Controller Dual-role support
5 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com
21 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_disable_events()
24 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_disable_events()
29 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_enable_events()
32 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_enable_events()
37 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVT); in dwc3_otg_clear_events()
39 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_clear_events()
56 spin_lock(&dwc->lock); in dwc3_otg_thread_irq()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Ddwc2.c5 * SPDX-License-Identifier: GPL-2.0+
51 * The hnp/srp capability must be disabled if the platform
52 * does't support hnp/srp. Otherwise the force mode can't work.
61 /* We need cacheline-aligned buffers for DMA transfers and dcache support */
90 uint32_t hwcfg2 = readl(&regs->ghwcfg2); in init_fslspclksel()
100 clrsetbits_le32(&regs->host_regs.hcfg, in init_fslspclksel()
116 &regs->grstctl); in dwc_otg_flush_tx_fifo()
117 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_TXFFLSH, in dwc_otg_flush_tx_fifo()
135 writel(DWC2_GRSTCTL_RXFFLSH, &regs->grstctl); in dwc_otg_flush_rx_fifo()
136 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_RXFFLSH, in dwc_otg_flush_rx_fifo()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dstm32mp157a-dk1-u-boot.dtsi1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
6 #include <dt-bindings/clock/stm32mp1-clksrc.h>
7 #include "stm32mp157-u-boot.dtsi"
8 #include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi"
17 u-boot,boot-led = "heartbeat";
18 u-boot,error-led = "error";
25 default-state = "off";
30 default-state = "on";
36 pinctrl-names = "default";
37 pinctrl-0 = <&adc12_usb_pwr_pins_a>;
[all …]
/OK3568_Linux_fs/u-boot/include/usb/
H A Dfotg210.h5 * Dante Su <dantesu@faraday-tech.com>
7 * SPDX-License-Identifier: GPL-2.0+
17 } hccr; /* 0x00 - 0x0f: hccr */
20 } hcor; /* 0x10 - 0x33: hcor */
51 uint32_t rxzlp; /* 0x150: Receive Zero-Length-Packet Register */
52 uint32_t txzlp; /* 0x154: Transfer Zero-Length-Packet Register */
55 uint32_t iep[8]; /* 0x160 - 0x17f: IN Endpoint Register */
56 uint32_t oep[8]; /* 0x180 - 0x19f: OUT Endpoint Register */
61 uint32_t fifocsr[4];/* 0x1b0 - 0x1bf: FIFO Control Status Register */
82 #define OTGCSR_DEV_A (0 << 21) /* Acts as A-device */
[all …]
/OK3568_Linux_fs/u-boot/include/linux/usb/
H A Dgadget.h4 * We call the USB code inside a Linux-based peripheral device a "gadget"
5 * driver, except for the hardware-specific bus glue. One USB host can
9 * (C) Copyright 2002-2004 by David Brownell
14 * Ported to U-Boot by: Thomas Smits <ts.smits@gmail.com> and
29 * struct usb_request - describes one i/o request
45 * its buffer may be re-used.
57 * Code "-ESHUTDOWN" indicates completion caused by device disconnect,
64 * reside in a device-side FIFO when the request is reported as
68 * hardware's driver can add extra per-request data to the memory it returns,
79 * transfers. interrupt-only endpoints can be much less functional.
[all …]

1234