Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/iio/light/
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 …]
/Linux-v6.1/Documentation/devicetree/bindings/regulator/
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 …]
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 …]
/Linux-v6.1/arch/x86/platform/uv/
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 …]
/Linux-v6.1/arch/ia64/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
68 The Itanium Processor Family is Intel's 64-bit successor to
69 the 32-bit X86 line. The IA-64 Linux project has a home
71 <linux-ia64@vger.kernel.org>.
125 Select your IA-64 processor type. The default is Itanium.
126 This choice is safe for all IA-64 systems, but may not perform
143 This lets you select the page size of the kernel. For best IA-64
145 IA-32 compatibility, a page size of 4KB should be selected (the vast
146 majority of IA-32 binaries work perfectly fine with a larger page
150 4KB For best IA-32 compatibility
[all …]
/Linux-v6.1/arch/arm64/boot/dts/freescale/
Dimx8mq-librem5-r3.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 /dts-v1/;
11 #include "imx8mq-librem5.dtsi"
19 mount-matrix = "1", "0", "0",
21 "0", "0", "-1";
25 ti,battery-regulation-voltage = <4200000>; /* uV */
26 ti,charge-current = <1500000>; /* uA */
27 ti,termination-current = <144000>; /* uA */
31 pinctrl-0 = <&pinctrl_csi1>, <&pinctrl_r3_camera_pwr>;
32 shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
[all …]
/Linux-v6.1/drivers/regulator/
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 …]
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 …]
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 …]
/Linux-v6.1/include/linux/mfd/samsung/
Dcore.h1 /* SPDX-License-Identifier: GPL-2.0+ */
27 /* Ramp delay in uV/us */
51 * struct sec_pmic_dev - s2m/s5m master device for sub-drivers
102 /* Whether or not manually set PWRHOLD to low during shutdown. */
109 * sec_regulator_data - regulator data
121 * sec_opmode_data - regulator operation mode data
134 * SEC_OPMODE_LOWPOWER Regulator is on in low-power mode
/Linux-v6.1/drivers/char/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
28 int "ttyprintk log level (1-7)"
41 Also read the Printing-HOWTO, available from
49 <file:Documentation/admin-guide/parport.rst>. The module will be called lp.
78 tristate "Support for user-space parallel port device drivers"
83 port, for instance deviceid (which displays Plug-and-Play device
87 It is safe to say N to this -- it is not needed for normal printing
88 or parallel port CD-ROM/disk support.
103 Also serves as a general-purpose serial device for data
132 If unsure, say M here to build it as a module called powernv-op-panel.
[all …]
/Linux-v6.1/drivers/mfd/
Dwm831x-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm831x-core.c -- Device access for Wolfson WM831x PMICs
29 /* Current settings - values are 2*2^(reg_val/4) microamps. These are
94 if (!wm831x->locked) in wm831x_reg_locked()
126 dev_vdbg(wm831x->dev, "Registers locked\n"); in wm831x_reg_lock()
128 mutex_lock(&wm831x->io_lock); in wm831x_reg_lock()
129 WARN_ON(wm831x->locked); in wm831x_reg_lock()
130 wm831x->locked = 1; in wm831x_reg_lock()
131 mutex_unlock(&wm831x->io_lock); in wm831x_reg_lock()
133 dev_err(wm831x->dev, "Failed to lock registers: %d\n", ret); in wm831x_reg_lock()
[all …]
/Linux-v6.1/drivers/power/supply/
Dbq25890_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
262 * Most of the val -> idx conversions can be computed, given the minimum,
312 0, -10, -20, -30, -40, -60, -70, -80,
313 -90, -10, -120, -140, -150, -170, -190, -210,
338 [TBL_VREG] = { .rt = {3840000, 4608000, 16000} }, /* uV */
339 [TBL_BOOSTV] = { .rt = {4550000, 5510000, 64000} }, /* uV */
340 [TBL_SYSVMIN] = { .rt = {3000000, 3700000, 100000} }, /* uV */
341 [TBL_VBUSV] = { .rt = {2600000, 15300000, 100000} }, /* uV */
342 [TBL_VBATCOMP] = { .rt = {0, 224000, 32000} }, /* uV */
357 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
[all …]
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 …]
Drt9455_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #define RT9455_DRIVER_NAME "rt9455-charger"
166 #define GET_MASK(fid) (BIT(rt9455_reg_fields[fid].msb + 1) - \
170 * Each array initialised below shows the possible real-world values for a
172 * ascending order. The index of each real-world value represents the value
184 /* REG02[7:2] (VOREG) in uV */
200 /* REG02[7:2] (Boost output voltage) in uV */
212 /* REG07[3:0] (VMREG) in uV */
223 /* REG05[1:0] (MIVR) in uV */
264 for (i = 0; i < tbl_size - 1; i++) in rt9455_find_idx()
[all …]
/Linux-v6.1/drivers/iio/adc/
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 …]
/Linux-v6.1/arch/arm/boot/dts/
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 …]
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";
29 stdout-path = &serial_1;
38 compatible = "samsung,secure-firmware";
42 gpio-keys {
[all …]
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 …]
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 …]
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 …]
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"
31 stdout-path = &serial_2;
35 compatible = "samsung,secure-firmware";
[all …]
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 …]
Dimx6qdl-zii-rdu2.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2016-2017 Zodiac Inflight Innovations
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/sound/fsl-imx-audmux.h>
11 stdout-path = &uart1;
15 mdio-gpio0 = &mdio1;
20 compatible = "virtual,mdio-gpio";
21 #address-cells = <1>;
22 #size-cells = <0>;
23 pinctrl-names = "default";
[all …]
/Linux-v6.1/arch/arm64/boot/dts/exynos/
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 …]

12