/linux-6.15/Documentation/devicetree/bindings/regulator/ |
D | vctrl-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/vctrl-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Voltage controlled regulators 10 - Heiko Stuebner <heiko@sntech.de> 13 - $ref: regulator.yaml# 17 const: vctrl-regulator 19 ctrl-supply: 20 description: Regulator supplying the control voltage [all …]
|
/linux-6.15/drivers/regulator/ |
D | vctrl-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for voltage controller regulators 27 struct vctrl_voltage_range ctrl; member 32 int ctrl; member 50 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_ctrl_voltage() local 51 struct vctrl_voltage_range *out = &vctrl->vrange.out; in vctrl_calc_ctrl_voltage() 53 return ctrl->min_uV + in vctrl_calc_ctrl_voltage() 54 DIV_ROUND_CLOSEST_ULL((s64)(out_uV - out->min_uV) * in vctrl_calc_ctrl_voltage() 55 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage() 56 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage() [all …]
|
D | s2mps11.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2012-2014 Samsung Electronics Co., Ltd 45 * Array (size: number of regulators) with GPIO-s for external 81 ramp_delay = s2mps11->ramp_delay2; in s2mps11_regulator_set_voltage_time_sel() 85 ramp_delay = s2mps11->ramp_delay34; in s2mps11_regulator_set_voltage_time_sel() 88 ramp_delay = s2mps11->ramp_delay5; in s2mps11_regulator_set_voltage_time_sel() 92 ramp_delay = s2mps11->ramp_delay16; in s2mps11_regulator_set_voltage_time_sel() 97 ramp_delay = s2mps11->ramp_delay7810; in s2mps11_regulator_set_voltage_time_sel() 100 ramp_delay = s2mps11->ramp_delay9; in s2mps11_regulator_set_voltage_time_sel() 104 ramp_delay = rdev->desc->ramp_delay; in s2mps11_regulator_set_voltage_time_sel() [all …]
|
D | qcom_spmi-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 8 #include <linux/devm-helpers.h> 47 /* Soft start strength of a voltage switch type regulator */ 57 * struct spmi_regulator_init_data - spmi-regulator initialization data 76 * voltage switch type regulators. Its value 328 /* Minimum voltage stepper delay for each step. */ 350 /* Minimum voltage stepper delay for each step. */ 361 /* VSET value to decide the range of ULT SMPS */ 365 * struct spmi_voltage_range - regulator set point voltage mapping description [all …]
|
D | bd718x7-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver 10 #include <linux/mfd/rohm-bd718x7.h> 51 * controlled by software - or by PMIC internal HW state machine. Whether 52 * regulator should be under SW or HW control can be defined from device-tree. 103 * Note for next hacker - these PMICs have a register where the HW state can be 104 * read. If assuming RUN appears to be false in your use-case - you can 123 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl() 138 * guarantee minimum of 1ms sleep - it shouldn't matter if we in voltage_change_done() 143 ret = regmap_clear_bits(rdev->regmap, BD718XX_REG_MVRFLTMASK2, in voltage_change_done() [all …]
|
/linux-6.15/arch/arm64/boot/dts/rockchip/ |
D | rk3399-gru-kevin.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Kevin Rev 6+ board device tree source 5 * Copyright 2016-2017 Google, Inc 8 /dts-v1/; 9 #include "rk3399-gru-chromebook.dtsi" 10 #include <dt-bindings/input/linux-event-codes.h> 13 * Kevin-specific things 21 compatible = "google,kevin-rev15", "google,kevin-rev14", 22 "google,kevin-rev13", "google,kevin-rev12", 23 "google,kevin-rev11", "google,kevin-rev10", [all …]
|
D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and 45 ppvar_sys: regulator-ppvar-sys { [all …]
|
D | rk3399-gru-scarlet.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-scarlet board device tree source 8 #include "rk3399-gru.dtsi" 11 chassis-type = "tablet"; 16 pp1250_s3: regulator-pp1250-s3 { 17 compatible = "regulator-fixed"; 18 regulator-name = "pp1250_s3"; 21 regulator-always-on; 22 regulator-boot-on; 23 regulator-min-microvolt = <1250000>; [all …]
|
D | rk3566-powkiddy-rk2023.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 13 chassis-type = "handset"; 21 adc-joystick { 22 compatible = "adc-joystick"; [all …]
|
D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: regulator-pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; 19 regulator-max-microvolt = <900000>; [all …]
|
D | rk3566-powkiddy-x55.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 14 chassis-type = "handset"; 25 stdout-path = "serial2:1500000n8"; 28 adc_joystick: adc-joystick { [all …]
|
D | rk3588s-gameforce-ace.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/thermal/thermal.h> 11 #include <dt-bindings/usb/pd.h> 16 chassis-type = "handset"; [all …]
|
/linux-6.15/drivers/soc/rockchip/ |
D | io-domain.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Rockchip IO Voltage Domain driver 21 * The max voltage for 1.8V and 3.3V come from the Rockchip datasheet under 26 * - If the voltage on a rail is above the "1.8" voltage (1.98V) we'll tell the 28 * - If the voltage on a rail is above the "3.3" voltage (3.6V) we'll consider 88 struct rockchip_iodomain *iod = supply->iod; in rk3568_iodomain_write() 93 switch (supply->idx) { in rk3568_iodomain_write() 97 b = supply->idx; in rk3568_iodomain_write() 99 b = supply->idx + 4; in rk3568_iodomain_write() 102 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val0); in rk3568_iodomain_write() [all …]
|
/linux-6.15/drivers/comedi/drivers/ |
D | cb_pcidda.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for the ComputerBoards / MeasurementComputing PCI-DDA series. 9 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 1997-8 David A. Schleef <ds@schleef.org> 15 * Description: MeasurementComputing PCI-DDA series 16 * Devices: [Measurement Computing] PCI-DDA08/12 (pci-dda08/12), 17 * PCI-DDA04/12 (pci-dda04/12), PCI-DDA02/12 (pci-dda02/12), 18 * PCI-DDA08/16 (pci-dda08/16), PCI-DDA04/16 (pci-dda04/16), 19 * PCI-DDA02/16 (pci-dda02/16) 46 #define CB_DDA_DA_CTRL_RANGE2V5 (0 << 6) /* 2.5V range */ [all …]
|
D | me4000.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Source code for the Meilhaus ME-4000 board family. 6 * COMEDI - Linux Control and Measurement Device Interface 12 * Description: Meilhaus ME-4000 series boards 13 * Devices: [Meilhaus] ME-4650 (me4000), ME-4670i, ME-4680, ME-4680i, 14 * ME-4680is 16 * Updated: Mon, 18 Mar 2002 15:34:01 -0800 20 * - Analog Input 21 * - Analog Output 22 * - Digital I/O [all …]
|
/linux-6.15/drivers/iio/dac/ |
D | ad5755.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AD5755, AD5755-1, AD5757, AD5735, AD5737 Digital to analog converters driver 128 * struct ad5755_platform_data - AD5755 DAC driver platform data 129 * @ext_dc_dc_compenstation_resistor: Whether an external DC-DC converter 131 * @dc_dc_phase: DC-DC converter phase. 132 * @dc_dc_freq: DC-DC converter frequency. 133 * @dc_dc_maxv: DC-DC maximum allowed boost voltage. 138 * @dac.enable_voltage_overrange: Whether to enable 20% voltage output overrange. 162 * struct ad5755_chip_info - chip specific information 165 * @has_voltage_out: whether the chip has voltage outputs [all …]
|
/linux-6.15/Documentation/hwmon/ |
D | max197.rst | 14 Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX197.pdf 20 Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX199.pdf 23 ----------- 25 The A/D converters MAX197, and MAX199 are both 8-Channel, Multi-Range, 5V, 26 12-Bit DAS with 8+4 Bus Interface and Fault Protection. 28 The available ranges for the MAX197 are {0,-5V} to 5V, and {0,-10V} to 10V, 29 while they are {0,-2V} to 2V, and {0,-4V} to 4V on the MAX199. 32 ------------- 37 int convert(u8 ctrl); 39 ctrl is the control byte to write to start a new conversion. [all …]
|
/linux-6.15/drivers/input/misc/ |
D | pmic8xxx-pwrkey.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. 45 /* Buck CTRL register */ 71 * struct pmic8xxx_pwrkey - pmic8xxx pwrkey information 107 enable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_suspend() 117 disable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_resume() 132 if (pwrkey->shutdown_fn) { in pmic8xxx_pwrkey_shutdown() 133 error = pwrkey->shutdown_fn(pwrkey, reset); in pmic8xxx_pwrkey_shutdown() 149 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); in pmic8xxx_pwrkey_shutdown() 153 * Set an SMPS regulator to be disabled in its CTRL register, but enabled [all …]
|
/linux-6.15/arch/arm/boot/dts/arm/ |
D | vexpress-v2p-ca15_a7.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * Cortex-A15_A7 MPCore (V2P-CA15_A7) 8 * HBI-0249A 11 /dts-v1/; 12 #include "vexpress-v2m-rs1.dtsi" 15 model = "V2P-CA15_CA7"; 18 compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress"; 19 interrupt-parent = <&gic>; 20 #address-cells = <2>; 21 #size-cells = <2>; [all …]
|
/linux-6.15/drivers/clk/tegra/ |
D | clk-dfll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * clk-dfll.c - Tegra DFLL clock source common code 5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved. 12 * "CL-DVFS". To try to avoid confusion, this code refers to them 16 * supply voltage noise. Tegra124 uses it to clock the fast CPU 18 * DFLL can be operated in either open-loop mode or closed-loop mode. 19 * In open-loop mode, the DFLL generates an output clock appropriate 20 * to the supply voltage. In closed-loop mode, when configured with a 21 * target frequency, the DFLL minimizes supply voltage while 27 * performance-measurement code and any code that relies on the CPU [all …]
|
/linux-6.15/drivers/mmc/host/ |
D | sdhci-msm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/mmc/host/sdhci-msm.c - Qualcomm SDHCI Platform driver 5 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 23 #include "sdhci-cqhci.h" 24 #include "sdhci-pltfm.h" 123 #define INVALID_TUNING_PHASE -1 140 /* Max load for eMMC Vdd-io supply */ 146 /* Max load for SD Vdd-io supply */ 150 msm_host->var_ops->msm_readl_relaxed(host, offset) 153 msm_host->var_ops->msm_writel_relaxed(val, host, offset) [all …]
|
D | sdhci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 5 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. 9 * - JMicron (hardware and technical support) 19 #include <linux/dma-mapping.h> 33 #include <linux/mmc/slot-gpio.h> 40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 71 SDHCI_DUMP("Wake-up: 0x%08x | Clock: 0x%08x\n", in sdhci_dumpregs() 98 if (host->flags & SDHCI_USE_ADMA) { in sdhci_dumpregs() [all …]
|
/linux-6.15/drivers/media/i2c/ |
D | imx283.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * Copyright (C) 2019-2020 Raspberry Pi (Trading) Ltd 32 #include <media/v4l2-cci.h> 33 #include <media/v4l2-ctrls.h> 34 #include <media/v4l2-device.h> 35 #include <media/v4l2-fwnode.h> 36 #include <media/v4l2-mediabus.h> 93 #define IMX283_HMAX_MAX (BIT(16) - 1) 97 #define IMX283_VMAX_MAX (BIT(16) - 1) 105 * Gain [dB] = -20log{(2048 - value [10:0]) /2048} [all …]
|
/linux-6.15/drivers/media/radio/si4713/ |
D | si4713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/media/radio/si4713-i2c.c 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-ioctl.h> 21 #include <media/v4l2-common.h> 28 MODULE_PARM_DESC(debug, "Debug level (0 - 2)"); 46 #define DEFAULT_ACOMP_THRESHOLD (-0x28) 160 int rval = -EINVAL; in usecs_to_dev() 176 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler() 178 complete(&sdev->work); in si4713_handler() [all …]
|
/linux-6.15/drivers/iio/adc/ |
D | hi8435.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Holt Integrated Circuits HI-8435 threshold detector driver 24 /* Register offsets for HI-8435 */ 39 /* CTRL register bits */ 50 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ 51 unsigned threshold_hi[2]; /* GND-Open and Supply-Open thresholds */ 58 return spi_write_then_read(priv->spi, ®, 1, val, 1); in hi8435_readb() 67 ret = spi_write_then_read(priv->spi, ®, 1, &be_val, 2); in hi8435_readw() 79 ret = spi_write_then_read(priv->spi, ®, 1, &be_val, 4); in hi8435_readl() 87 priv->reg_buffer[0] = reg | HI8435_WRITE_OPCODE; in hi8435_writeb() [all …]
|