/linux-6.12.1/drivers/iio/light/ |
D | veml6070.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * veml6070.c - Support for Vishay VEML6070 UV A light sensor 5 * Copyright 2016 Peter Meerwald-Stadler <pmeerw@pmeerw.net> 7 * IIO driver for VEML6070 (7-bit I2C slave addresses 0x38 and 0x39) 29 #define VEML6070_COMMAND_SD BIT(0) /* shutdown mode when set */ 45 mutex_lock(&data->lock); in veml6070_read() 47 /* disable shutdown */ in veml6070_read() 48 ret = i2c_smbus_write_byte(data->client1, in veml6070_read() 49 data->config & ~VEML6070_COMMAND_SD); in veml6070_read() 55 ret = i2c_smbus_read_byte(data->client2); /* read MSB, address 0x39 */ in veml6070_read() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/regulator/ |
D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 21 regulator-max-microvolt: 24 regulator-microvolt-offset: 28 regulator-min-microamp: [all …]
|
D | richtek,rtq2134-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rtq2134-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RTQ2134 is a multi-phase, programmable power management IC that 14 integrates with four high efficient, synchronous step-down converter cores. 17 https://www.richtek.com/assets/product_file/RTQ2134-QA/DSQ2134-QA-01.pdf 22 - richtek,rtq2134 31 "^buck[1-3]$": [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | rohm,bd96801-pmic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/rohm,bd96801-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> 13 BD96801 is an automotive grade single-chip power management IC. 15 over-/under voltage and over current detection and a watchdog. 31 energy to handle shutdown of critical hardware. In that case it may be 36 interrupt-names: 39 - enum: [intb, errb] [all …]
|
/linux-6.12.1/arch/x86/platform/uv/ |
D | uv_time.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2009-2013 Silicon Graphics, Inc. All Rights Reserved. 12 #include <asm/uv/uv_mmrs.h> 13 #include <asm/uv/uv_hub.h> 14 #include <asm/uv/bios.h> 15 #include <asm/uv/uv.h> 38 .irq = -1, 92 /* Setup interrupt and return non-zero if early expiration occurred. */ 101 uv_write_global_mmr64(pnode, UVH_INT_CMPB, -1L); in uv_setup_intr() 121 * Per-cpu timer tracking routines [all …]
|
/linux-6.12.1/drivers/regulator/ |
D | rtq2134-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 80 (struct rtq2134_regulator_desc *)rdev->desc; in rtq2134_buck_set_mode() 88 return -EINVAL; in rtq2134_buck_set_mode() 90 val <<= ffs(desc->mode_mask) - 1; in rtq2134_buck_set_mode() 91 return regmap_update_bits(rdev->regmap, desc->mode_reg, desc->mode_mask, in rtq2134_buck_set_mode() 98 (struct rtq2134_regulator_desc *)rdev->desc; in rtq2134_buck_get_mode() 102 ret = regmap_read(rdev->regmap, desc->mode_reg, &mode); in rtq2134_buck_get_mode() 106 if (mode & desc->mode_mask) in rtq2134_buck_get_mode() 111 static int rtq2134_buck_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rtq2134_buck_set_suspend_voltage() argument 114 (struct rtq2134_regulator_desc *)rdev->desc; in rtq2134_buck_set_suspend_voltage() [all …]
|
D | vctrl-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 50 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_ctrl_voltage() 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() 61 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_output_voltage() 62 struct vctrl_voltage_range *out = &vctrl->vrange.out; in vctrl_calc_output_voltage() 69 if (ctrl_uV < ctrl->min_uV) in vctrl_calc_output_voltage() [all …]
|
D | tps6594-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/ 24 /* TPS6593 and LP8764 supports OV, UV, SC, ILIM */ 26 /* TPS65224 supports OV or UV */ 45 /* Multi-phase DCDC's */ 500 if (irq_data->type->event_name[0] == '\0') { in tps6594_regulator_irq_handler() 502 dev_err(irq_data->dev, in tps6594_regulator_irq_handler() 503 "System was put in shutdown due to timeout during an active or standby transition.\n"); in tps6594_regulator_irq_handler() 507 dev_err(irq_data->dev, "Error IRQ trap %s for %s\n", in tps6594_regulator_irq_handler() 508 irq_data->type->event_name, irq_data->type->regulator_name); in tps6594_regulator_irq_handler() [all …]
|
D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // core.c -- Voltage/Current Regulator framework. 105 if (rdev->constraints && rdev->constraints->name) in rdev_get_name() 106 return rdev->constraints->name; in rdev_get_name() 107 else if (rdev->desc->name) in rdev_get_name() 108 return rdev->desc->name; in rdev_get_name() 121 if (!rdev->constraints) { in regulator_ops_is_valid() 126 if (rdev->constraints->valid_ops_mask & ops) in regulator_ops_is_valid() 133 * regulator_lock_nested - lock a single regulator 153 if (!ww_mutex_trylock(&rdev->mutex, ww_ctx)) { in regulator_lock_nested() [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.12.1/drivers/char/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 28 int "ttyprintk log level (1-7)" 42 Also read the Printing-HOWTO, available from 50 <file:Documentation/admin-guide/parport.rst>. The module will be called lp. 79 tristate "Support for user-space parallel port device drivers" 84 port, for instance deviceid (which displays Plug-and-Play device 88 It is safe to say N to this -- it is not needed for normal printing 89 or parallel port CD-ROM/disk support. 104 Also serves as a general-purpose serial device for data 133 If unsure, say M here to build it as a module called powernv-op-panel. [all …]
|
/linux-6.12.1/include/linux/mfd/samsung/ |
D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 27 /* Ramp delay in uV/us */ 49 * struct sec_pmic_dev - s2m/s5m master device for sub-drivers 100 /* Whether or not manually set PWRHOLD to low during shutdown. */ 107 * sec_regulator_data - regulator data 119 * sec_opmode_data - regulator operation mode data 132 * SEC_OPMODE_LOWPOWER Regulator is on in low-power mode
|
/linux-6.12.1/drivers/mfd/ |
D | wm831x-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm831x-core.c -- Device access for Wolfson WM831x PMICs 28 /* Current settings - values are 2*2^(reg_val/4) microamps. These are 93 if (!wm831x->locked) in wm831x_reg_locked() 125 dev_vdbg(wm831x->dev, "Registers locked\n"); in wm831x_reg_lock() 127 mutex_lock(&wm831x->io_lock); in wm831x_reg_lock() 128 WARN_ON(wm831x->locked); in wm831x_reg_lock() 129 wm831x->locked = 1; in wm831x_reg_lock() 130 mutex_unlock(&wm831x->io_lock); in wm831x_reg_lock() 132 dev_err(wm831x->dev, "Failed to lock registers: %d\n", ret); in wm831x_reg_lock() [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | rtq6056.c | 1 // SPDX-License-Identifier: GPL-2.0 57 * RTQ6053/6 is OPMODE->VSHUNTCT->VBUSCT->AVG->RESET 58 * RTQ6059 is OPMODE->SADC->BADC->PGA->RESET 195 * - Fixed sampling conversion time 196 * - Average sample numbers 197 * - Channel scale 198 * - calibration coefficient 279 const struct richtek_dev_data *devdata = priv->devdata; in rtq6056_adc_read_channel() 280 struct device *dev = priv->dev; in rtq6056_adc_read_channel() 281 unsigned int addr = ch->address; in rtq6056_adc_read_channel() [all …]
|
/linux-6.12.1/drivers/power/supply/ |
D | bq25890_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 113 char name[28]; /* "bq25890-charger-%d" */ 272 * Most of the val -> idx conversions can be computed, given the minimum, 322 0, -10, -20, -30, -40, -60, -70, -80, 323 -90, -10, -120, -140, -150, -170, -190, -210, 348 [TBL_VREG] = { .rt = {3840000, 4608000, 16000} }, /* uV */ 349 [TBL_BOOSTV] = { .rt = {4550000, 5510000, 64000} }, /* uV */ 350 [TBL_SYSVMIN] = { .rt = {3000000, 3700000, 100000} }, /* uV */ 351 [TBL_VBUSV] = { .rt = {2600000, 15300000, 100000} }, /* uV */ 352 [TBL_VBATCOMP] = { .rt = {0, 224000, 32000} }, /* uV */ [all …]
|
D | smb347-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <dt-bindings/power/summit,smb347-charger.h> 26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1 29 #define SMB3XX_TEMP_USE_DEFAULT -273 34 * reloaded from non-volatile registers after POR. 136 * struct smb347_charger - smb347 charger instance 148 * @max_charge_voltage: maximum voltage (in uV) the battery can be charged 149 * @pre_charge_current: current (in uA) to use in pre-charging phase 152 * @pre_to_fast_voltage: voltage (in uV) treshold used for transitioning to 153 * pre-charge to fast charge mode [all …]
|
D | rt9455_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #define RT9455_DRIVER_NAME "rt9455-charger" 165 #define GET_MASK(fid) (BIT(rt9455_reg_fields[fid].msb + 1) - \ 169 * Each array initialised below shows the possible real-world values for a 171 * ascending order. The index of each real-world value represents the value 183 /* REG02[7:2] (VOREG) in uV */ 200 /* REG02[7:2] (Boost output voltage) in uV */ 213 /* REG07[3:0] (VMREG) in uV */ 224 /* REG05[1:0] (MIVR) in uV */ 265 for (i = 0; i < tbl_size - 1; i++) in rt9455_find_idx() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/ti/omap/ |
D | am335x-shc.dts | 1 // SPDX-License-Identifier: GPL-2.0 8 /dts-v1/; 11 #include <dt-bindings/input/input.h> 15 compatible = "ti,am335x-shc", "ti,am335x-bone", "ti,am33xx"; 29 operating-points = < 30 /* kHz uV */ 34 voltage-tolerance = <2>; /* 2 percentage */ 35 cpu0-supply = <&dcdc2_reg>; 39 gpio-keys { 40 compatible = "gpio-keys"; [all …]
|
/linux-6.12.1/arch/arm/boot/dts/samsung/ |
D | exynos3250-rinato.dts | 1 // SPDX-License-Identifier: GPL-2.0 12 /dts-v1/; 14 #include "exynos4412-ppmu-common.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/clock/samsung,s2mps11.h> 22 chassis-type = "watch"; 31 stdout-path = &serial_1; 40 compatible = "samsung,secure-firmware"; 44 gpio-keys { [all …]
|
D | exynos4412-midas.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 12 /dts-v1/; 14 #include "exynos4412-ppmu-common.dtsi" 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/interrupt-controller/irq.h> 19 #include <dt-bindings/clock/maxim,max77686.h> 20 #include "exynos-pinctrl.h" 34 stdout-path = &serial_2; 38 compatible = "samsung,secure-firmware"; [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/exynos/ |
D | exynos5433-tm2-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 /dts-v1/; 13 #include <dt-bindings/clock/samsung,s2mps11.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/interrupt-controller/irq.h> 17 #include <dt-bindings/sound/samsung-i2s.h> 48 stdout-path = &serial_1; 56 gpio-keys { 57 compatible = "gpio-keys"; [all …]
|
/linux-6.12.1/arch/arm/boot/dts/st/ |
D | ste-ux500-samsung-golden.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 4 #include "ste-db8500.dtsi" 5 #include "ste-ab8505.dtsi" 6 #include "ste-dbx5x0-pinctrl.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 14 * You need an intermediate, device-tree compatible bootloader [all …]
|
D | ste-ux500-samsung-skomer.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8505.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
D | ste-ux500-samsung-kyle.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy Amp SGH-I407 also known as Kyle. 10 /dts-v1/; 11 #include "ste-db8500.dtsi" 12 #include "ste-ab8505.dtsi" 13 #include "ste-dbx5x0-pinctrl.dtsi" 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/leds/common.h> 16 #include <dt-bindings/input/input.h> 17 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
/linux-6.12.1/drivers/xen/ |
D | privcmd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Interface to privileged domain-0 commands. 7 * Copyright (c) 2002-2004, K A Fraser, B Dragovic 47 #include <xen/xen-ops.h> 82 struct privcmd_data *data = file->private_data; in privcmd_ioctl_hypercall() 87 if (data->domid != DOMID_INVALID) in privcmd_ioctl_hypercall() 88 return -EPERM; in privcmd_ioctl_hypercall() 91 return -EFAULT; in privcmd_ioctl_hypercall() 132 while (nelem--) { in gather_array() 133 if (pageidx > PAGE_SIZE-size) { in gather_array() [all …]
|