Home
last modified time | relevance | path

Searched +full:usb +full:- +full:sdp (Results 1 – 25 of 74) sorted by relevance

123

/OK3568_Linux_fs/u-boot/doc/
H A DREADME.sdp1 -------------
2 SDP in U-Boot
3 -------------
5 SDP stands for serial download protocol. It is the protocol used in NXP's
7 image to the chip over USB and UART serial connection.
9 The implementation in U-Boot uses the USB Downloader Gadget (g_dnl) to
10 provide a SDP implementation over USB. This allows to download program
11 images to the target in SPL/U-Boot using the same protocol/tooling the
14 The SDP protocol over USB is a USB HID class protocol. USB HID class
15 protocols allow to access a USB device without OS specific drivers. The
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Df_sdp.c2 * f_sdp.c -- USB HID Serial Download Protocol
7 * This file implements the Serial Download Protocol (SDP) as specified in
8 * the i.MX 6 Reference Manual. The SDP is a USB HID based protocol and
10 * works with the imx_loader (imx_usb) USB client software on host side.
17 * SPDX-License-Identifier: GPL-2.0+
25 #include <linux/usb/ch9.h>
26 #include <linux/usb/gadget.h>
27 #include <linux/usb/composite.h>
31 #include <sdp.h>
217 * static strings, in UTF-8
[all …]
H A DKconfig2 # USB Gadget support on a system involves
6 # NOTE: Gadget support ** DOES NOT ** depend on host-side CONFIG_USB !!
8 # - Host systems (like PCs) need CONFIG_USB (with "A" jacks).
9 # - Peripherals (like PDAs) need CONFIG_USB_GADGET (with "B" jacks).
10 # - Some systems have both kinds of controllers.
12 # With help from a special transceiver and a "Mini-AB" jack, systems with
13 # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
17 bool "USB Gadget Support"
19 USB is a master/slave protocol, organized with one master
21 The USB hardware is asymmetric, which makes it easier to set up:
[all …]
/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_sdp.c5 * SPDX-License-Identifier: GPL-2.0+
10 #include <usb.h>
12 #include <sdp.h>
27 pr_err("SDP init failed: %d\n", ret); in spl_sdp_load_image()
28 return -ENODEV; in spl_sdp_load_image()
37 debug("SDP ended\n"); in spl_sdp_load_image()
41 SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image);
H A DKconfig35 default "arch/$(ARCH)/cpu/u-boot-spl.lds"
38 The SPL stage will usually require a different linker-script
40 U-Boot stage. Set this to the path of the linker-script to
44 bool "Call board-specific initialization in SPL"
46 If this option is enabled, U-Boot will call the function
54 ROM for loading the next boot-stage after performing basic setup
58 BOOT_DEVICE_BOOTROM (or fall-through to the next boot device in the
85 usage as the *_simple malloc functions do not re-use free-ed mem.
94 usage as the *_simple malloc functions do not re-use free-ed mem.
103 location for the SPL stack. U-Boot SPL switches to this after
[all …]
/OK3568_Linux_fs/u-boot/cmd/
H A Dusb_gadget_sdp.c2 * cmd_sdp.c -- sdp command
7 * SPDX-License-Identifier: GPL-2.0+
12 #include <sdp.h>
13 #include <usb.h>
31 pr_err("SDP init failed: %d\n", ret); in do_sdp()
37 pr_err("SDP ended\n"); in do_sdp()
46 U_BOOT_CMD(sdp, 2, 1, do_sdp,
49 " - serial downloader protocol via <USB_controller>\n"
H A DKconfig4 bool "Support U-Boot commands"
7 Enable U-Boot's command-line functions. This provides a means
8 to enter commands into U-Boot for a wide variety of purposes. It
12 substantially to the size of U-Boot.
37 This function is used to support some special U-Boot commands with
56 U-Boot automatic booting process and bring the device
57 to the U-Boot prompt for user input.
88 autoboot starts booting, U-Boot gives a command prompt. The
89 U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
101 U-Boot gives a command prompt. The U-Boot prompt never
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dgpio-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
19 const: gpio-charger
21 charger-type:
23 - unknown
24 - battery
25 - ups
[all …]
H A Dcharger-manager.txt1 charger-manager bindings
5 - compatible : "charger-manager"
6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
9 - subnode <regulator> :
10 - cm-regulator-name : name of charger regulator
11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
13 SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT,
[all …]
H A Dbq24190.txt1 TI BQ24190 Li-Ion Battery Charger
4 - compatible: contains one of the following:
9 - reg: integer, I2C address of the charger.
10 - interrupts[-extended]: configuration for charger INT pin.
13 - monitored-battery: phandle of battery characteristics devicetree node
15 + precharge-current-microamp: maximum charge current during precharge
17 + charge-term-current-microamp: a charge cycle terminates when the
21 - ti,system-minimum-microvolt: when power is connected and the battery is below
25 - usb-otg-vbus:
28 either USB host mode or for charging on the OTG port.
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/phy/
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0+
3 * phy.c -- USB phy handling
5 * Copyright (C) 2004-2013 Texas Instruments
15 #include <linux/usb/phy.h>
51 if (phy->type != type) in __usb_find_phy()
57 return ERR_PTR(-ENODEV); in __usb_find_phy()
65 return ERR_PTR(-ENODEV); in __of_usb_find_phy()
68 if (node != phy->dev->of_node) in __of_usb_find_phy()
74 return ERR_PTR(-EPROBE_DEFER); in __of_usb_find_phy()
79 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current()
[all …]
/OK3568_Linux_fs/kernel/include/linux/power/
H A Drk_usbbc.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* USB Charger Types */
18 * USB Port Type
20 * 1 : SDP - pc
21 * 2 : DCP - charger
22 * 3 : CDP - pc with big currect charge
35 return -EINVAL; in rk_bc_detect_notifier_register()
40 return -EINVAL; in rk_bc_detect_notifier_unregister()
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dsd.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - Drew Eckhardt <drew@colorado.edu> original
11 * - Eric Youngdale <eric@andante.org> add scatter-gather, multiple
13 * Support loadable low-level scsi drivers.
14 * - Jirka Hanika <geo@ff.cuni.cz> support more scsi disks using
16 * - Richard Gooch <rgooch@atnf.csiro.au> support devfs.
17 * - Torben Mathiasen <tmm@image.dk> Resource allocation fixes in
19 * - Alex Davis <letmein@erols.com> Fix problem where partition info
22 * - Douglas Gilbert <dgilbert@interlog.com> cleanup for lk 2.5.x
23 * - Badari Pulavarty <pbadari@us.ibm.com>, Matthew Wilcox
[all …]
/OK3568_Linux_fs/kernel/drivers/extcon/
H A Dextcon-intel-cht-wc.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved.
10 #include <linux/extcon-provider.h>
20 #include "extcon-intel.h"
63 /* 0 - open drain, 1 - regular push-pull output */
65 /* 0 - pin is controlled by SW, 1 - by HW */
135 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger()
137 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger()
154 dev_warn(ext->dev, "Could not detect charger type\n"); in cht_wc_extcon_get_charger()
156 dev_warn(ext->dev, "Timeout detecting charger type\n"); in cht_wc_extcon_get_charger()
[all …]
/OK3568_Linux_fs/kernel/Documentation/scsi/
H A Dscsi_mid_low_api.rst1 .. SPDX-License-Identifier: GPL-2.0
4 SCSI mid_level - lower_level driver interface
14 (SCSI terminology, see SAM-3 at http://www.t10.org) sends SCSI commands
20 its own subsystem in Linux (e.g. USB and ieee1394). In such cases the
22 Examples are the usb-storage driver (found in the drivers/usb/storage
30 HBAs. These HBAs might be either on PCI daughter-boards or built into
33 has its own PCI device address. [The one-to-one correspondence between
49 Many LLDs are documented there (e.g. aic7xxx.txt). The SCSI mid-level is
53 scsi-generic.txt (for the sg driver).
57 about the USB mass storage driver see the
[all …]
/OK3568_Linux_fs/u-boot/include/configs/
H A Dti_omap4_common.h9 * SPDX-License-Identifier: GPL-2.0+
30 * Total Size Environment - 128k
36 * the timings to use or use pre-determined timings (based on using the
53 #define CONFIG_SYS_NS16550_REG_SIZE (-4)
63 /* USB */
67 /* USB device configuration */
95 "if test ${boot_fit} -eq 1; then " \
122 "setenv fdtfile omap4-sdp.dtb; fi; " \
124 "setenv fdtfile omap4-panda.dtb; fi;" \
125 "if test $board_name = panda-a4; then " \
[all …]
H A Domap3_evm.h4 * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
8 * Derived from Beagle Board and 3430 SDP code by
9 * Richard Woodruff <r-woodruff2@ti.com>
14 * SPDX-License-Identifier: GPL-2.0+
46 #define CONFIG_SYS_NS16550_REG_SIZE (-1)
83 /* USB EHCI */
94 #define CONFIG_PREBOOT "usb start"
116 "env import -t ${loadaddr} ${filesize}\0" \
126 "bootm ${loadaddr} - ${fdtaddr}\0" \
129 "bootz ${loadaddr} - ${fdtaddr}\0" \
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-class-power5 Contact: linux-pm@vger.kernel.org
14 Contact: linux-pm@vger.kernel.org
23 Contact: linux-pm@vger.kernel.org
32 Contact: linux-pm@vger.kernel.org
37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless"
39 **Battery and USB properties**
43 Contact: linux-pm@vger.kernel.org
52 USB:
62 batteries and for USB IBUS current.
66 Contact: linux-pm@vger.kernel.org
[all …]
/OK3568_Linux_fs/kernel/Documentation/userspace-api/ioctl/
H A Dioctl-number.rst33 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and
67 no attempt to list non-X86 architectures or ioctls from drivers/staging/.
73 0x00 00-1F linux/fs.h conflict!
74 0x00 00-1F scsi/scsi_ioctl.h conflict!
75 0x00 00-1F linux/fb.h conflict!
76 0x00 00-1F linux/wavefront.h conflict!
79 0x04 D2-DC linux/umsdos_fs.h Dead since 2.6.11, but don't r…
82 0x10 00-0F drivers/char/s390/vmcp.h
83 0x10 10-1F arch/s390/include/uapi/sclp_ctl.h
84 0x10 20-2F arch/s390/include/uapi/asm/hypfs.h
[all …]
/OK3568_Linux_fs/u-boot/board/pandora/
H A Dpandora.c5 * Derived from Beagle Board, 3430 SDP, and OMAP3EVM code by
6 * Richard Woodruff <r-woodruff2@ti.com>
11 * (C) Copyright 2004-2008
14 * SPDX-License-Identifier: GPL-2.0+
24 #include <asm/mach-types.h>
45 gd->bd->bi_arch_number = MACH_TYPE_OMAP3_PANDORA; in board_init()
47 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); in board_init()
77 /* set up dual-voltage GPIOs to 1.8V */ in misc_init_r()
78 pbias_lite = readl(&t2_base->pbias_lite); in misc_init_r()
81 writel(pbias_lite, &t2_base->pbias_lite); in misc_init_r()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dextcon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon.h for extcon consumer device driver.
26 #define EXTCON_TYPE_USB BIT(0) /* USB connector */
37 /* USB external connector */
45 * When one SDP charger connector was reported, we should also report
46 * the USB connector, which means EXTCON_CHG_USB_SDP should always
61 #define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */
74 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
75 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
79 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */
[all …]
/OK3568_Linux_fs/kernel/drivers/power/
H A Duniversal_charger.c62 struct extcon_dev *edev = cg->cable_edev; in universal_cg_bc_evt_worker()
64 const char *event[5] = {"UN", "NONE", "USB", "AC", "CDP1.5A"}; in universal_cg_bc_evt_worker()
79 dev_info(cg->dev, "receive usb notifier event: %s...\n", in universal_cg_bc_evt_worker()
81 cg->usb_charger = charger; in universal_cg_bc_evt_worker()
92 queue_delayed_work(cg->usb_charger_wq, &cg->usb_work, in universal_cg_charger_evt_notifier()
103 if (extcon_get_cable_state_(cg->cable_edev, EXTCON_USB) == 0) { in universal_cg_discnt_evt_worker()
104 dev_info(cg->dev, "receive usb notifier event: DISCNT...\n"); in universal_cg_discnt_evt_worker()
105 cg->usb_charger = USB_TYPE_NONE_CHARGER; in universal_cg_discnt_evt_worker()
115 queue_delayed_work(cg->usb_charger_wq, &cg->discnt_work, in universal_cg_discnt_evt_notfier()
123 struct device *dev = cg->dev; in universal_cg_init_usb()
[all …]
H A Dsy6982c_charger.c63 struct extcon_dev *edev = cg->cable_edev; in sy6982c_cg_bc_evt_worker()
65 const char *event[5] = {"UN", "NONE", "USB", "AC", "CDP1.5A"}; in sy6982c_cg_bc_evt_worker()
80 dev_info(cg->dev, "receive type-c notifier event: %s...\n", in sy6982c_cg_bc_evt_worker()
82 cg->usb_charger = charger; in sy6982c_cg_bc_evt_worker()
93 queue_delayed_work(cg->usb_charger_wq, &cg->usb_work, in sy6982c_cg_charger_evt_notifier()
104 if (extcon_get_cable_state_(cg->cable_edev, EXTCON_USB) == 0) { in sy6982c_cg_discnt_evt_worker()
105 dev_info(cg->dev, "receive type-c notifier event: DISCNT...\n"); in sy6982c_cg_discnt_evt_worker()
106 cg->usb_charger = USB_TYPE_NONE_CHARGER; in sy6982c_cg_discnt_evt_worker()
116 queue_delayed_work(cg->usb_charger_wq, &cg->discnt_work, in sy6982c_cg_discnt_evt_notfier()
124 struct device *dev = cg->dev; in sy6982c_cg_init_usb()
[all …]
/OK3568_Linux_fs/u-boot/board/ti/evm/
H A Devm.c2 * (C) Copyright 2004-2011
8 * Derived from Beagle Board and 3430 SDP code by
9 * Richard Woodruff <r-woodruff2@ti.com>
12 * SPDX-License-Identifier: GPL-2.0+
26 #include <asm/mach-types.h>
29 #include <linux/usb/ch9.h>
30 #include <linux/usb/gadget.h>
31 #include <linux/usb/musb.h>
35 #include <usb.h>
36 #include <asm/ehci-omap.h>
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Daxp288_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * axp288_charger.c - X-power AXP288 PMIC Charger driver
5 * Copyright (C) 2016-2017 Hans de Goede <hdegoede@redhat.com>
18 #include <linux/usb/otg.h>
130 /* SDP/CDP/DCP USB charging cable notifications */
150 else if (cc > info->max_cc) in axp288_charger_set_cc()
151 cc = info->max_cc; in axp288_charger_set_cc()
153 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc()
157 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc()
161 info->cc = cc; in axp288_charger_set_cc()
[all …]

123