Home
last modified time | relevance | path

Searched +full:uv +full:- +full:shutdown (Results 1 – 25 of 44) sorted by relevance

12

/openbmc/linux/drivers/iio/light/
H A Dveml6070.c1 // 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 …]
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Drichtek,rtq2134-regulator.yaml1 # 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 …]
H A Dregulator.yaml1 # 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 …]
/openbmc/u-boot/drivers/power/regulator/
H A Dtps65910_regulator.c1 // SPDX-License-Identifier: GPL-2.0+
15 * struct regulator_props - Properties of a LDO and VIO SMPS regulator
21 * @vin_min[]: minimum supply input voltage in uV required to achieve the
23 * @vout[]: regulator output voltage in uV
105 "vccio-supply",
106 "vcc1-supply",
107 "vcc2-supply",
108 "vcc3-supply",
109 "vcc4-supply",
110 "vcc5-supply",
[all …]
/openbmc/linux/arch/x86/platform/uv/
H A Duv_time.c1 // 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 …]
/openbmc/linux/drivers/regulator/
H A Drtq2134-regulator.c1 // 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 …]
H A Dvctrl-regulator.c1 // 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 …]
H A Dbd718x7-regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver
9 #include <linux/mfd/rohm-bd718x7.h>
50 * controlled by software - or by PMIC internal HW state machine. Whether
51 * regulator should be under SW or HW control can be defined from device-tree.
102 * Note for next hacker - these PMICs have a register where the HW state can be
103 * read. If assuming RUN appears to be false in your use-case - you can
122 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl()
137 * guarantee minimum of 1ms sleep - it shouldn't matter if we in voltage_change_done()
142 ret = regmap_clear_bits(rdev->regmap, BD718XX_REG_MVRFLTMASK2, in voltage_change_done()
[all …]
/openbmc/linux/drivers/char/
H A DKconfig1 # 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 …]
/openbmc/linux/include/linux/mfd/samsung/
H A Dcore.h1 /* 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
/openbmc/linux/drivers/mfd/
H A Dwm831x-core.c1 // 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 …]
/openbmc/linux/drivers/power/supply/
H A Dbq25890_charger.c1 // 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 …]
H A Dsmb347-charger.c1 // 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 …]
H A Drt9455_charger.c1 // 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 …]
/openbmc/linux/drivers/iio/adc/
H A Drtq6056.c1 // SPDX-License-Identifier: GPL-2.0
158 struct device *dev = priv->dev; in rtq6056_adc_read_channel()
159 unsigned int addr = ch->address; in rtq6056_adc_read_channel()
164 ret = regmap_read(priv->regmap, addr, &regval); in rtq6056_adc_read_channel()
170 /* Power and VBUS is unsigned 16-bit, others are signed 16-bit */ in rtq6056_adc_read_channel()
182 switch (ch->address) { in rtq6056_adc_read_scale()
184 /* VSHUNT lsb 2.5uV */ in rtq6056_adc_read_scale()
198 return -EINVAL; in rtq6056_adc_read_scale()
205 * https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf
219 return -EINVAL; in rtq6056_adc_set_samp_freq()
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Dam335x-shc.dts1 // 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 …]
/openbmc/u-boot/arch/arm/dts/
H A Dam335x-shc.dts1 // 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>;
40 compatible = "gpio-keys";
46 debounce-interval = <1000>;
[all …]
/openbmc/linux/drivers/xen/
H A Dprivcmd.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Interface to privileged domain-0 commands.
7 * Copyright (c) 2002-2004, K A Fraser, B Dragovic
44 #include <xen/xen-ops.h>
75 struct privcmd_data *data = file->private_data; in privcmd_ioctl_hypercall()
80 if (data->domid != DOMID_INVALID) in privcmd_ioctl_hypercall()
81 return -EPERM; in privcmd_ioctl_hypercall()
84 return -EFAULT; in privcmd_ioctl_hypercall()
125 while (nelem--) { in gather_array()
126 if (pageidx > PAGE_SIZE-size) { in gather_array()
[all …]
/openbmc/linux/arch/arm/boot/dts/samsung/
H A Dexynos3250-rinato.dts1 // 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 …]
H A Dexynos4412-midas.dtsi1 // 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 …]
/openbmc/linux/arch/arm64/boot/dts/exynos/
H A Dexynos5433-tm2-common.dtsi1 // 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 …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dste-ux500-samsung-golden.dts1 // 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 …]
H A Dste-ux500-samsung-skomer.dts1 // 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 …]
H A Dste-ux500-samsung-kyle.dts1 // 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 …]
H A Dste-ux500-samsung-codina-tmo.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Exhibit SGH-T599 also known as Codina-TMO,
4 * the "TMO" shall be read "T-Mobile" as this phone was produced exlusively
5 * for T-Mobile in the United States.
8 * - No CPU speed cap, full ~1GHz rate
9 * - Different power management IC, AB8505
10 * - As AB8505 has a micro USB phy, no TI TSU6111
11 * - Different power routing such as the removal of the external LDO for the
13 * - Using a regulator for the key backlight LED
14 * - Using the Samsung S6D27A1 panel by default
[all …]

12