/linux/tools/testing/selftests/power_supply/ |
H A D | test_power_supply_properties.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # This test validates the power supply uAPI: namely, the files in sysfs and 7 # lines in uevent that expose the power supply properties. 9 # By default all power supplies available are tested. Optionally the name of a 10 # power supply can be passed as a parameter to test only that one instead. 11 DIR="$(dirname "$(readlink -f "$0")")" 18 SUPPLIES=$1 25 for i in $SUPPLIES; do 36 if [ $# -eq 0 ]; then 37 supplies=$(ls "$SYSFS_SUPPLIES") [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 31 tristate "ACBEL FSG032 Power Supply" 34 FSG032 Power Supply. 37 be called acbel-fsg032. 55 ADM1293, and ADM1294 Hot-Swap Controller and Digital Power Monitors. 61 tristate "Analog Devices ADP1050 digital controller for Power Supplies" 64 Devices ADP1050 digital controller for isolated power supply with 71 tristate "Bel PFE Compatible Power Supplies" 74 PFE1100 and PFE3000 Power Supplies. 77 be called bel-pfe. [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-startek-kd070fhfid015.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * - Vinay Simha BN <simhavcs@gmail.com> 9 * - Sumit Semwal <sumit.semwal@linaro.org> 10 * - Guillaume La Roque <glaroque@baylibre.com> 34 POWER = 1 enumerator 41 struct gpio_desc *enable_gpio; /* Power IC supply enable */ 44 struct regulator_bulk_data supplies[2]; member 54 struct mipi_dsi_device *dsi = stk->dsi; in stk_panel_init() 75 mipi_dsi_dcs_set_column_address_multi(&dsi_ctx, 0, stk->mode->hdisplay - 1); in stk_panel_init() 76 mipi_dsi_dcs_set_page_address_multi(&dsi_ctx, 0, stk->mode->vdisplay - 1); in stk_panel_init() [all …]
|
H A D | panel-sony-td4353-jdi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Generated with linux-mdss-dsi-panel-driver-generator with a 9 * - "JDI ID3" for Akari (XZ2) 10 * - "JDI ID4" for Apollo (XZ2 Compact) 28 * Leaving room for expansion - SONY very often uses 36 struct regulator_bulk_data supplies[3]; member 49 struct mipi_dsi_device *dsi = ctx->dsi; in sony_td4353_jdi_on() 50 struct device *dev = &dsi->dev; in sony_td4353_jdi_on() 53 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sony_td4353_jdi_on() 55 ret = mipi_dsi_dcs_set_column_address(dsi, 0x0000, 1080 - 1); in sony_td4353_jdi_on() [all …]
|
/linux/sound/soc/codecs/ |
H A D | wm8804.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8804.c -- WM8804 S/PDIF transceiver driver 5 * Copyright 2010-11 Wolfson Microelectronics plc 25 #include <sound/soc-dapm.h> 36 { 3, 0x21 }, /* R3 - PLL1 */ 37 { 4, 0xFD }, /* R4 - PLL2 */ 38 { 5, 0x36 }, /* R5 - PLL3 */ 39 { 6, 0x07 }, /* R6 - PLL4 */ 40 { 7, 0x16 }, /* R7 - PLL5 */ 41 { 8, 0x18 }, /* R8 - PLL6 */ [all …]
|
H A D | wm8523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8523.c -- WM8523 ALSA SoC Audio driver 40 struct regulator_bulk_data supplies[WM8523_NUM_SUPPLIES]; member 47 { 2, 0x0000 }, /* R2 - PSCTRL1 */ 48 { 3, 0x1812 }, /* R3 - AIF_CTRL1 */ 49 { 4, 0x0000 }, /* R4 - AIF_CTRL2 */ 50 { 5, 0x0001 }, /* R5 - DAC_CTRL3 */ 51 { 6, 0x0190 }, /* R6 - DAC_GAINL */ 52 { 7, 0x0190 }, /* R7 - DAC_GAINR */ 53 { 8, 0x0000 }, /* R8 - ZERO_DETECT */ [all …]
|
H A D | cs35l32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs35l32.c -- CS35L32 ALSA SoC audio driver 26 #include <sound/soc-dapm.h> 29 #include <dt-bindings/sound/cs35l32.h> 43 struct regulator_bulk_data supplies[CS35L32_NUM_SUPPLIES]; member 50 { 0x06, 0x04 }, /* Power Ctl 1 */ 51 { 0x07, 0xE8 }, /* Power Ctl 2 */ 153 struct snd_soc_component *component = codec_dai->component; in cs35l32_set_dai_fmt() 166 return -EINVAL; in cs35l32_set_dai_fmt() 174 struct snd_soc_component *component = dai->component; in cs35l32_set_tristate() [all …]
|
H A D | sta32x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Codec driver for ST STA32x 2.1-channel high-efficiency digital audio system 34 #include <sound/soc-dapm.h> 54 /* Power-up register defaults */ 128 /* regulator power supply names */ 132 "Vcc" /* power amp spply, 10V - 36V */ 139 struct regulator_bulk_data supplies[ARRAY_SIZE(sta32x_supply_names)]; member 153 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12700, 50, 1); 154 static const DECLARE_TLV_DB_SCALE(chvol_tlv, -7950, 50, 1); 155 static const DECLARE_TLV_DB_SCALE(tone_tlv, -120, 200, 0); [all …]
|
H A D | sta350.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Codec driver for ST STA350 2.1-channel high-efficiency digital audio system 34 #include <sound/soc-dapm.h> 54 /* Power-up register defaults */ 153 /* regulator power supply names */ 155 "vdd-dig", /* digital supply, 3.3V */ 156 "vdd-pll", /* pll supply, 3.3V */ 157 "vcc" /* power amp supply, 5V - 26V */ 163 struct regulator_bulk_data supplies[ARRAY_SIZE(sta350_supply_names)]; member 178 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12750, 50, 1); [all …]
|
H A D | cs4270.c | 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 15 * - Software mode is supported. Stand-alone mode is not supported. 16 * - Only I2C is supported, not SPI 17 * - Support for master and slave mode 18 * - The machine driver's 'startup' function must call 20 * - Only I2S and left-justified modes are supported 21 * - Power management is supported 41 #define CS4270_PWRCTL 0x02 /* Power Control */ 51 #define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1) 101 /* Power-on default values for the registers [all …]
|
H A D | pcm186x.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com 29 "avdd", /* Analog power supply. Connect to 3.3-V supply. */ 30 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 31 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */ 37 struct regulator_bulk_data supplies[PCM186x_NUM_SUPPLIES]; member 44 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0); 48 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0, 54 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0, 57 PCM186X_PGA_VAL_CH2_R, 0, -24, 80, 7, 0, [all …]
|
H A D | wm8782.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * simple, strap-pin configured 24bit 2ch ADC 26 /* regulator power supply names */ 28 "Vdda", /* analog supply, 2.7V - 3.6V */ 29 "Vdd", /* digital supply, 2.7V - 5.5V */ 33 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member 39 struct snd_pcm_runtime *runtime = sub->runtime; in wm8782_dai_startup() 41 snd_soc_component_get_drvdata(dai->component); in wm8782_dai_startup() 44 8000, priv->max_rate); in wm8782_dai_startup() 78 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_probe() [all …]
|
/linux/Documentation/driver-api/ |
H A D | regulator.rst | 1 .. Copyright 2007-2008 Wolfson Microelectronics 20 The intention is to allow systems to dynamically control regulator power 21 output in order to save power and prolong battery life. This applies to 27 ``Documentation/power/regulator``. 30 -------- 36 Electronic device that supplies power to other devices. Most regulators 42 Electronic device which consumes power provided by a regulator. These 46 Power Domain 52 Power Management Integrated Circuit (PMIC) 62 drivers use `get <#API-regulator-get>`__ and [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | cpcap-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Tony Lindgren <tony@atomide.com> 12 - Sebastian Reichel <sre@kernel.org> 17 sub-function. 20 - $ref: power-supply.yaml# 24 const: motorola,cpcap-battery 28 - description: eol interrupt [all …]
|
/linux/drivers/mfd/ |
H A D | si476x-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/mfd/si476x-i2c.c -- Core device driver for si476x MFD 21 #include <linux/mfd/si476x-core.h> 27 * si476x_core_config_pinmux() - pin function configuration function 39 dev_dbg(&core->client->dev, "Configuring pinmux\n"); in si476x_core_config_pinmux() 41 core->pinmux.dclk, in si476x_core_config_pinmux() 42 core->pinmux.dfs, in si476x_core_config_pinmux() 43 core->pinmux.dout, in si476x_core_config_pinmux() 44 core->pinmux.xout); in si476x_core_config_pinmux() 46 dev_err(&core->client->dev, in si476x_core_config_pinmux() [all …]
|
/linux/Documentation/devicetree/bindings/opp/ |
H A D | opp-v2-base.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/opp/opp-v2-base.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Viresh Kumar <viresh.kumar@linaro.org> 13 Devices work at voltage-current-frequency combinations and some implementations 25 pattern: '^opp-table(-[a-z0-9]+)?$' 27 opp-shared: 36 '^opp(-?[0-9]+)*$': 39 One or more OPP nodes describing voltage-current-frequency combinations. [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-usb_power_delivery | 5 Directory for USB Power Delivery devices. 11 File showing the USB Power Delivery Specification Revision used 19 specific revision of the USB Power Delivery Specification. In 23 What: /sys/class/usb_power_delivery/.../source-capabilities 28 set of Power Data Objects (PDO), each representing a type of 29 power supply. The order of the PDO objects is defined in the USB 30 Power Delivery Specification. Each PDO - power supply - will 33 power supply type name (":" as delimiter). 37 What: /sys/class/usb_power_delivery/.../sink-capabilities 42 of Power Data Objects (PDO) just like with source capabilities, [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (c) 2008-2009, NVIDIA Corporation. 11 * Bits taken from arch/arm/mach-dove/pcie.c 256 * Fields in PADS_REFCLK_CFG*. Those registers form an array of 16-bit 349 struct regulator_bulk_data *supplies; member 378 writel(value, pcie->afi + offset); in afi_writel() 383 return readl(pcie->afi + offset); in afi_readl() 389 writel(value, pcie->pads + offset); in pads_writel() 394 return readl(pcie->pads + offset); in pads_readl() 429 struct tegra_pcie *pcie = bus->sysdata; in tegra_pcie_map_bus() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | cirrus,lochnagar.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 15 Logic devices on mini-cards, as well as allowing connection of 17 platform. Audio system topology, clocking and power can all be 25 [2] include/dt-bindings/pinctrl/lochnagar.h 26 [3] include/dt-bindings/clock/lochnagar.h 28 And these documents for the required sub-node binding details: 35 - if: [all …]
|
/linux/Documentation/power/regulator/ |
H A D | design.rst | 9 ------ 11 - Errors in regulator configuration can have very serious consequences 13 - It is not possible to automatically determine the power configuration 14 of the system - software-equivalent variants of the same chip may 15 have different power requirements, and not all components with power 25 ------------------ 27 - The overwhelming majority of devices in a system will have no 28 requirement to do any runtime configuration of their power beyond 31 - Many of the power supplies in the system will be shared between many 38 supplies without any additional effort.
|
H A D | overview.rst | 11 The intention is to allow systems to dynamically control regulator power output 12 in order to save power and prolong battery life. This applies to both voltage 26 - Regulator 27 - Electronic device that supplies power to other devices. 31 Input Voltage -> Regulator -> Output Voltage 34 - PMIC 35 - Power Management IC. An IC that contains numerous 39 - Consumer 40 - Electronic device that is supplied power by a regulator. 41 Consumers can be classified into two types:- [all …]
|
H A D | machine.rst | 10 Regulator-1 -+-> Regulator-2 --> [Consumer A @ 1.8 - 2.0V] 12 +-> [Consumer B @ 3.3V] 15 order to control their power supplies. This mapping can be achieved in machine 21 const char *supply; /* consumer supply - e.g. "vcc" */ 34 This maps Regulator-1 to the 'Vcc' supply for Consumer B and maps Regulator-2 38 for each regulator power domain. This structure also maps the consumers 43 .name = "Regulator-1", 53 for the board for configuration of supplies for other regulators and 58 Regulator-1 supplies power to Regulator-2. This relationship must be registered 59 with the core so that Regulator-1 is also enabled when Consumer A enables its [all …]
|
/linux/drivers/power/supply/ |
H A D | wm8350_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 if (!wm8350->power.rev_g_coeff) in wm8350_charge_time_min() 45 return (((min - 30) / 15) & 0xf) << 8; in wm8350_charge_time_min() 47 return (((min - 30) / 30) & 0xf) << 8; in wm8350_charge_time_min() 53 int supplies = 0; in wm8350_get_supplies() local 72 supplies = WM8350_USB_SUPPLY; in wm8350_get_supplies() 77 supplies = WM8350_USB_SUPPLY | WM8350_BATT_SUPPLY; in wm8350_get_supplies() 79 supplies = WM8350_LINE_SUPPLY; in wm8350_get_supplies() 81 supplies = WM8350_BATT_SUPPLY; in wm8350_get_supplies() 83 return supplies; in wm8350_get_supplies() [all …]
|
/linux/drivers/staging/greybus/ |
H A D | power_supply.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Power Supply driver for a Greybus module. 5 * Copyright 2014-2015 Google Inc. 6 * Copyright 2014-2015 Linaro Ltd. 31 struct gb_power_supplies *supplies; member 59 * General power supply properties that could be absent from various reasons, 63 #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1 66 #define POWER_SUPPLY_PROP_CURRENT_BOOT -1 69 #define POWER_SUPPLY_PROP_CALIBRATE -1 76 * back-off exponential [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | renesas,rcar-gyroadc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car GyroADC 10 - Marek Vasut <marek.vasut+renesas@gmail.com> 15 are sampled by the GyroADC block in a round-robin fashion and the result 23 - enum: 24 - renesas,r8a7791-gyroadc 25 - renesas,r8a7792-gyroadc [all …]
|