/Linux-v5.10/Documentation/devicetree/bindings/power/supply/ |
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 …]
|
D | charger-manager.txt | 1 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 …]
|
D | bq24190.txt | 1 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 …]
|
/Linux-v5.10/drivers/usb/phy/ |
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> 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 …]
|
/Linux-v5.10/drivers/scsi/ |
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 …]
|
D | st.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 Copyright 1992 - 2016 Kai Makisara 16 Some small formal changes - aeb, 950809 18 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 61 is defined and non-zero. */ 158 6-byte SCSI read and write commands. */ 159 #if ST_FIXED_BUFFER_SIZE >= (2 << 24 - 1) 160 #error "Buffer size should not exceed (2 << 24 - 1) bytes!" 173 /* Remove mode bits and auto-rewind bit (7) */ 175 (iminor(x) & ((1 << ST_MODE_SHIFT)-1))) [all …]
|
/Linux-v5.10/drivers/extcon/ |
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> 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 …]
|
D | extcon-axp288.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver 5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com> 19 #include <linux/extcon-provider.h> 22 #include <linux/usb/role.h> 26 #include <asm/intel-family.h> 52 /* BC USB status register */ 136 ret = regmap_read(info->regmap, AXP288_PS_BOOT_REASON_REG, &val); in axp288_extcon_log_rsi() 138 dev_err(info->dev, "failed to read reset source indicator\n"); in axp288_extcon_log_rsi() 142 bits = val & GENMASK(ARRAY_SIZE(axp288_pwr_up_down_info) - 1, 0); in axp288_extcon_log_rsi() [all …]
|
/Linux-v5.10/Documentation/scsi/ |
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 …]
|
/Linux-v5.10/Documentation/ABI/testing/ |
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 …]
|
/Linux-v5.10/include/linux/ |
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 …]
|
/Linux-v5.10/Documentation/userspace-api/ioctl/ |
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 …]
|
/Linux-v5.10/drivers/power/supply/ |
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> 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 …]
|
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() 70 mapping = gpio_charger->current_limit_map[i]; in set_charge_current_limit() [all …]
|
D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 * a) Trickle-charge with constant current (8). 21 * b) pre-charge with constant current (6) 22 * c) fast-charge, first with constant current (5) phase. After 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . 35 * . +`/- + . 36 * . o/- -: . 38 * . .--+ `/ . [all …]
|
D | power_supply_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 51 [POWER_SUPPLY_TYPE_USB] = "USB", 64 [POWER_SUPPLY_USB_TYPE_SDP] = "SDP", 114 [POWER_SUPPLY_TECHNOLOGY_LION] = "Li-ion", 115 [POWER_SUPPLY_TECHNOLOGY_LIPO] = "Li-poly", 226 return to_ps_attr(attr) - power_supply_attrs; in dev_attr_psp() 239 for (i = 0; i < desc->num_usb_types; ++i) { in power_supply_show_usb_type() 240 usb_type = desc->usb_types[i]; in power_supply_show_usb_type() 242 if (value->intval == usb_type) { in power_supply_show_usb_type() 254 return -EINVAL; in power_supply_show_usb_type() [all …]
|
/Linux-v5.10/drivers/usb/typec/ucsi/ |
D | psy.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/usb/pd.h> 35 val->intval = UCSI_PSY_OFFLINE; in ucsi_psy_get_online() 36 if (con->status.flags & UCSI_CONSTAT_CONNECTED && in ucsi_psy_get_online() 37 (con->status.flags & UCSI_CONSTAT_PWR_DIR) == TYPEC_SINK) in ucsi_psy_get_online() 38 val->intval = UCSI_PSY_FIXED_ONLINE; in ucsi_psy_get_online() 47 switch (UCSI_CONSTAT_PWR_OPMODE(con->status.flags)) { in ucsi_psy_get_voltage_min() 49 pdo = con->src_pdos[0]; in ucsi_psy_get_voltage_min() 50 val->intval = pdo_fixed_voltage(pdo) * 1000; in ucsi_psy_get_voltage_min() 56 val->intval = UCSI_TYPEC_VSAFE5V * 1000; in ucsi_psy_get_voltage_min() [all …]
|
/Linux-v5.10/arch/mips/boot/dts/ingenic/ |
D | qi_lb60.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/clock/ingenic,tcu.h> 9 #include <dt-bindings/input/input.h> 27 stdout-path = &uart0; 31 compatible = "regulator-fixed"; 32 regulator-name = "vcc"; 34 regulator-min-microvolt = <3300000>; [all …]
|
/Linux-v5.10/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 11 #include <linux/extcon-provider.h> 28 #include <linux/usb/of.h> 29 #include <linux/usb/otg.h> 49 * enum usb_chg_state - Different states involved in USB charger detection. 50 * @USB_CHG_STATE_UNDEFINED: USB charger is not connected or detection 55 * between SDP and DCP/CDP). 58 * @USB_CHG_STATE_DETECTED: USB charger type is determined. 88 * struct rockchip_chg_det_reg - usb charger detect registers [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | omap4-sdp.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 9 #include "omap4-mcpdm.dtsi" 12 model = "TI OMAP4 SDP board"; 13 compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4"; 26 vdd_eth: fixedregulator-vdd-eth { 27 pinctrl-names = "default"; 28 pinctrl-0 = <&enet_enable_gpio>; 30 compatible = "regulator-fixed"; [all …]
|
/Linux-v5.10/drivers/usb/chipidea/ |
D | usbmisc_imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <linux/usb/otg.h> 86 /* For imx6dql, it is host-only controller, for later imx6, it is otg's */ 104 /* The default DM/DP value is pull-down */ 141 /* It's called once when probe a usb device */ 143 /* It's called once after adding a usb device */ 145 /* It's called when we need to enable/disable usb wakeup */ 151 /* usb charger detection */ 165 struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev); in usbmisc_imx25_init() 169 if (data->index > 1) in usbmisc_imx25_init() [all …]
|
/Linux-v5.10/arch/arm/ |
D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 44 once the kernel has booted up - it's a one time check. 96 1 - undefined instruction events 97 2 - system calls 98 4 - invalid data aborts 99 8 - SIGSEGV faults 100 16 - SIGBUS faults 104 bool "Kernel low-level debugging functions (read help!)" 117 prompt "Kernel low-level debugging port" 121 bool "Kernel low-level debugging messages via Alpine UART0" [all …]
|
/Linux-v5.10/drivers/mfd/ |
D | twl4030-power.c | 9 * Peter De Schrijver <peter.de-schrijver@nokia.com> 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 33 #include <asm/mach-types.h> 51 #define STARTON_USB BIT(2) /* Start on USB host */ 57 #define PHY_TO_OFF_PM_MASTER(p) (p - 0x36) 58 #define PHY_TO_OFF_PM_RECEIVER(p) (p - 0x5b) 60 /* resource - hfclk */ 222 int err = -EINVAL; in twl4030_write_script() 224 for (; len; len--, address++, script++) { in twl4030_write_script() 227 script->pmb_message, in twl4030_write_script() [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/renesas/ |
D | salvator-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for common parts of Salvator-X board variants 5 * Copyright (C) 2015-2016 Renesas Electronics Corp. 9 * SSI-AK4613 31 #include <dt-bindings/gpio/gpio.h> 32 #include <dt-bindings/input/input.h> 43 stdout-path = "serial0:115200n8"; 46 audio_clkout: audio-clkout { 49 * but needed to avoid cs2000/rcar_sound probe dead-lock 51 compatible = "fixed-clock"; [all …]
|
/Linux-v5.10/Documentation/admin-guide/ |
D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 106 3 char Pseudo-TTY slaves 112 These are the old-style (BSD) PTY devices; Unix98 115 3 block First MFM, RLL and IDE hard disk/CD-ROM interface [all …]
|