/openbmc/u-boot/doc/imx/misc/ |
H A D | sdp.txt | 1 ------------- 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 …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_sdp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_sdp.c -- USB HID Serial Download Protocol 8 * This file implements the Serial Download Protocol (SDP) as specified in 9 * the i.MX 6 Reference Manual. The SDP is a USB HID based protocol and 11 * works with the imx_loader (imx_usb) USB client software on host side. 24 #include <linux/usb/ch9.h> 25 #include <linux/usb/gadget.h> 26 #include <linux/usb/composite.h> 30 #include <sdp.h> 216 * static strings, in UTF-8 [all …]
|
H A D | Kconfig | 2 # 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 …]
|
/openbmc/u-boot/board/bticino/mamoj/ |
H A D | README | 10 This will generate the SPL image called SPL and the u-boot-dtb.img. 14 1. USB SDP boot 20 1. USB SDP boot: 21 --------------- 23 - Build imx_usb_loader 29 - Build the BSP and copy SPL, u-boot-dtb.img in imx_usb_loader directory 31 - Put the board in "Serial Download Mode" 33 - Plug-in USB-to-Serial, Open minicom 1152008N1 and USB OTG cables to Host 35 - Turn-on board 37 - Identify VID/PID using lsusb [all …]
|
/openbmc/u-boot/common/spl/ |
H A D | spl_sdp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <usb.h> 11 #include <sdp.h> 24 pr_err("SDP init failed: %d\n", ret); in spl_sdp_load_image() 25 return -ENODEV; in spl_sdp_load_image() 30 pr_err("SDP ended\n"); in spl_sdp_load_image() 32 return -EINVAL; in spl_sdp_load_image() 34 SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image);
|
/openbmc/u-boot/cmd/ |
H A D | usb_gadget_sdp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * cmd_sdp.c -- sdp command 11 #include <sdp.h> 12 #include <usb.h> 30 pr_err("SDP init failed: %d\n", ret); in do_sdp() 36 pr_err("SDP ended\n"); in do_sdp() 45 U_BOOT_CMD(sdp, 2, 1, do_sdp, 48 " - serial downloader protocol via <USB_controller>\n"
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | gpio-charger.yaml | 1 # 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 D | charger-manager.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 18 const: charger-manager 20 cm-chargers: 22 $ref: /schemas/types.yaml#/definitions/string-array 24 cm-num-chargers: 28 cm-fuel-gauge: [all …]
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy.c | 1 // 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> 57 if (phy->type != type) in __usb_find_phy() 63 return ERR_PTR(-ENODEV); in __usb_find_phy() 71 return ERR_PTR(-ENODEV); in __of_usb_find_phy() 74 if (node != phy->dev->of_node) in __of_usb_find_phy() 80 return ERR_PTR(-EPROBE_DEFER); in __of_usb_find_phy() 88 if (usb_phy->dev == dev) in __device_to_usb_phy() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | sd.c | 1 // 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 …]
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-intel-cht-wc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved. 10 #include <linux/extcon-provider.h> 22 #include <linux/usb/role.h> 24 #include "extcon-intel.h" 67 /* 0 - open drain, 1 - regular push-pull output */ 69 /* 0 - pin is controlled by SW, 1 - by HW */ 125 * According to the spec. we should read the USB-ID pin ADC value here in cht_wc_extcon_get_id() 126 * to determine the resistance of the used pull-down resister and then in cht_wc_extcon_get_id() 129 * a combination of a charging port with one or more USB-A ports, so in cht_wc_extcon_get_id() [all …]
|
/openbmc/u-boot/board/toradex/colibri-imx6ull/ |
H A D | colibri-imx6ull.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <asm/arch/imx-regs.h> 9 #include <asm/arch-mx6/clock.h> 10 #include <asm/arch-mx6/imx-regs.h> 11 #include <asm/arch-mx6/mx6ull_pins.h> 14 #include <asm/mach-imx/boot_mode.h> 15 #include <asm/mach-imx/iomux-v3.h> 29 #include <usb.h> 30 #include <usb/ehci-ci.h> 31 #include "../common/tdx-common.h" [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | ti_omap4_common.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 27 * Total Size Environment - 128k 33 * the timings to use or use pre-determined timings (based on using the 50 #define CONFIG_SYS_NS16550_REG_SIZE (-4) 59 /* USB */ 61 /* USB device configuration */ 108 "setenv fdtfile omap4-sdp.dtb; fi; " \ 110 "setenv fdtfile omap4-panda.dtb; fi;" \ 111 "if test $board_name = panda-a4; then " \ 112 "setenv fdtfile omap4-panda-a4.dtb; fi;" \ [all …]
|
H A D | omap3_evm.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/ 9 * Derived from Beagle Board and 3430 SDP code by 10 * Richard Woodruff <r-woodruff2@ti.com> 61 #define CONFIG_PREBOOT "usb start" 127 "env import -t ${loadaddr} ${filesize}\0" \ 133 "if test -n $uenvcmd; then " \ 145 "bootm ${loadaddr} - ${fdtaddr}; " \ 148 "bootz ${loadaddr} - ${fdtaddr}; " \ 161 "bootm ${loadaddr} - ${fdtaddr}; " \
|
/openbmc/u-boot/board/logicpd/omap3som/ |
H A D | omap3logic.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Derived from Beagle Board and 3430 SDP code by 10 * Richard Woodruff <r-woodruff2@ti.com> 28 #include <asm/mach-types.h> 32 #include <linux/usb/ch9.h> 33 #include <linux/usb/gadget.h> 34 #include <linux/usb/musb.h> 37 #include <usb.h> 38 #include <asm/ehci-omap.h> 62 /* break into full u-boot on 'c' */ in spl_start_uboot() [all …]
|
/openbmc/linux/Documentation/scsi/ |
H A D | scsi_mid_low_api.rst | 1 .. 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 …]
|
/openbmc/linux/drivers/usb/typec/tipd/ |
H A D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Driver for TI TPS6598x USB Power Delivery controller family 89 { TPS_STATUS_CONN_STATE_CONN_WITH_R_A, "conn-Ra" }, \ 90 { TPS_STATUS_CONN_STATE_CONN_NO_R_A, "conn-no-Ra" }, \ 91 { TPS_STATUS_CONN_STATE_NO_CONN_R_A, "no-conn-Ra" }, \ 95 { TPS_STATUS_CONN_STATE_NO_CONN, "no-conn" }) 107 { TPS_STATUS_POWER_SOURCE_VIN_3P3, "vin-3p3" }, \ 108 { TPS_STATUS_POWER_SOURCE_DEAD_BAT, "dead-battery" }, \ 120 { TPS_STATUS_USB_HOST_PRESENT_PD_USB, "pd-usb" }, \ 121 { TPS_STATUS_USB_HOST_PRESENT_NO_PD, "no-pd" }, \ [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 5 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 …]
|
/openbmc/linux/include/linux/ |
H A D | extcon.h | 1 /* 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 */ 44 * When one SDP charger connector was reported, we should also report 45 * the USB connector, which means EXTCON_CHG_USB_SDP should always 60 #define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */ 73 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ 74 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ 78 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */ [all …]
|
/openbmc/u-boot/board/pandora/ |
H A D | pandora.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Derived from Beagle Board, 3430 SDP, and OMAP3EVM code by 7 * Richard Woodruff <r-woodruff2@ti.com> 12 * (C) Copyright 2004-2008 25 #include <asm/mach-types.h> 58 gd->bd->bi_arch_number = MACH_TYPE_OMAP3_PANDORA; in board_init() 60 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100); in board_init() 90 /* set up dual-voltage GPIOs to 1.8V */ in misc_init_r() 91 pbias_lite = readl(&t2_base->pbias_lite); in misc_init_r() 94 writel(pbias_lite, &t2_base->pbias_lite); in misc_init_r() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | max8997_charger.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max8997_charger.c - Power supply consumer driver for the Maxim 8997/8966 15 #include <linux/mfd/max8997-private.h> 17 #include <linux/devm-helpers.h> 55 struct i2c_client *i2c = charger->iodev->i2c; in max8997_battery_get_property() 61 val->intval = 0; in max8997_battery_get_property() 66 val->intval = POWER_SUPPLY_STATUS_FULL; in max8997_battery_get_property() 68 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8997_battery_get_property() 70 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in max8997_battery_get_property() 74 val->intval = 0; in max8997_battery_get_property() [all …]
|
H A D | gpio-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 18 #include <linux/power/gpio-charger.h> 59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit() 60 struct gpio_desc **gpios = gpio_charger->current_limit_gpios->desc; in set_charge_current_limit() 63 if (!gpio_charger->current_limit_map_size) in set_charge_current_limit() 64 return -EINVAL; in set_charge_current_limit() 66 for (i = 0; i < gpio_charger->current_limit_map_size; i++) { in set_charge_current_limit() 67 if (gpio_charger->current_limit_map[i].limit_ua <= val) in set_charge_current_limit() 75 if (i >= gpio_charger->current_limit_map_size) in set_charge_current_limit() [all …]
|
H A D | axp288_charger.c | 1 // 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> 134 /* SDP/CDP/DCP USB charging cable notifications */ 160 else if (cc > info->max_cc) in axp288_charger_set_cc() 161 cc = info->max_cc; in axp288_charger_set_cc() 163 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc() 167 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc() 171 info->cc = cc; in axp288_charger_set_cc() [all …]
|
/openbmc/linux/Documentation/userspace-api/ioctl/ |
H A D | ioctl-number.rst | 33 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 …]
|
/openbmc/u-boot/board/ti/evm/ |
H A D | evm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2004-2011 9 * Derived from Beagle Board and 3430 SDP code by 10 * Richard Woodruff <r-woodruff2@ti.com> 25 #include <asm/mach-types.h> 28 #include <linux/usb/ch9.h> 29 #include <linux/usb/gadget.h> 30 #include <linux/usb/musb.h> 34 #include <usb.h> 35 #include <asm/ehci-omap.h> [all …]
|