Home
last modified time | relevance | path

Searched +full:regulator +full:- +full:haptic (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.15/drivers/input/misc/
Dregulator-haptic.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Regulator haptic driver
13 #include <linux/platform_data/regulator-haptic.h>
15 #include <linux/regulator/consumer.h>
23 struct regulator *regulator; member
36 static int regulator_haptic_toggle(struct regulator_haptic *haptic, bool on) in regulator_haptic_toggle() argument
40 if (haptic->active != on) { in regulator_haptic_toggle()
42 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle()
43 regulator_disable(haptic->regulator); in regulator_haptic_toggle()
45 dev_err(haptic->dev, in regulator_haptic_toggle()
[all …]
Dmax77693-haptic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MAXIM MAX77693/MAX77843 Haptic device driver
22 #include <linux/regulator/consumer.h>
24 #include <linux/mfd/max77693-common.h>
25 #include <linux/mfd/max77693-private.h>
26 #include <linux/mfd/max77843-private.h>
55 struct regulator *motor_reg;
67 static int max77693_haptic_set_duty_cycle(struct max77693_haptic *haptic) in max77693_haptic_set_duty_cycle() argument
73 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle()
74 delta = (pargs.period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle()
[all …]
Dmax8997_haptic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MAX8997-haptic controller driver
17 #include <linux/mfd/max8997-private.h>
19 #include <linux/regulator/consumer.h>
21 /* Haptic configuration 2 register */
26 /* Haptic driver configuration register */
36 struct regulator *regulator; member
60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle()
61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle()
62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
40 Say Y here to use the PowerOn Key for ST-Ericsson's AB8500
41 Mix-Sig PMIC.
44 will be called ab8500-ponkey.
64 module will be called ad714x-i2c.
74 module will be called ad714x-spi.
85 will be called ariel-pwrbutton.
95 module will be called arizona-haptics.
106 module will be called atc260x-onkey.
164 will be called pm8941-pwrkey.
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
8 obj-$(CONFIG_INPUT_88PM860X_ONKEY) += 88pm860x_onkey.o
9 obj-$(CONFIG_INPUT_88PM80X_ONKEY) += 88pm80x_onkey.o
10 obj-$(CONFIG_INPUT_AB8500_PONKEY) += ab8500-ponkey.o
11 obj-$(CONFIG_INPUT_AD714X) += ad714x.o
12 obj-$(CONFIG_INPUT_AD714X_I2C) += ad714x-i2c.o
13 obj-$(CONFIG_INPUT_AD714X_SPI) += ad714x-spi.o
14 obj-$(CONFIG_INPUT_ADXL34X) += adxl34x.o
15 obj-$(CONFIG_INPUT_ADXL34X_I2C) += adxl34x-i2c.o
16 obj-$(CONFIG_INPUT_ADXL34X_SPI) += adxl34x-spi.o
[all …]
Ddrv2667.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/regulator/consumer.h>
92 * struct drv2667_data -
97 * @regulator: Pointer to the regulator for the IC
107 struct regulator *regulator; member
138 freq = (haptics->frequency * 1000) / 78125; in drv2667_set_waveform_freq()
140 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
142 return -EINVAL; in drv2667_set_waveform_freq()
145 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
147 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/input/
Dregulator-haptic.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: "http://devicetree.org/schemas/input/regulator-haptic.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Regulator Haptic Device Tree Bindings
10 - Jaewon Kim <jaewon02.kim@samsung.com>
14 const: regulator-haptic
16 haptic-supply:
18 Power supply to the haptic motor
20 max-microvolt:
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/mfd/
Dmax77693.txt1 Maxim MAX77693 multi-function device
4 - PMIC,
5 - CHARGER,
6 - LED,
7 - MUIC,
8 - HAPTIC
14 - compatible : Must be "maxim,max77693".
15 - reg : Specifies the i2c slave address of PMIC block.
16 - interrupts : This i2c device has an IRQ line connected to the main SoC.
19 - regulators : The regulators of max77693 have to be instantiated under subnode
[all …]
/Linux-v5.15/include/linux/platform_data/
Dregulator-haptic.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Regulator Haptic Platform Data
14 * struct regulator_haptic_data - Platform device data
16 * @max_volt: maximum voltage value supplied to the haptic motor.
18 * @min_volt: minimum voltage value supplied to the haptic motor.
/Linux-v5.15/arch/arm/boot/dts/
Dsun4i-a10-dserve-dsrv9703c.dts4 * This file is dual-licensed: you can use it either under the terms
43 /dts-v1/;
44 #include "sun4i-a10.dtsi"
45 #include "sunxi-common-regulators.dtsi"
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
49 #include <dt-bindings/pwm/pwm.h>
53 compatible = "dserve,dsrv9703c", "allwinner,sun4i-a10";
60 compatible = "pwm-backlight";
[all …]
Dexynos3250-monk.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>
33 compatible = "samsung,secure-firmware";
37 gpio-keys {
38 compatible = "gpio-keys";
40 power-key {
[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>
28 stdout-path = &serial_1;
37 compatible = "samsung,secure-firmware";
41 gpio-keys {
42 compatible = "gpio-keys";
[all …]
Dexynos4412-midas.dtsi1 // SPDX-License-Identifier: GPL-2.0
12 /dts-v1/;
14 #include "exynos4412-ppmu-common.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/clock/maxim,max77686.h>
19 #include <dt-bindings/pinctrl/samsung.h>
30 stdout-path = &serial_2;
34 compatible = "samsung,secure-firmware";
[all …]
Dtegra20-acer-a500-picasso.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/atmel-maxtouch.h>
5 #include <dt-bindings/input/gpio-keys.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/thermal/thermal.h>
10 #include "tegra20-cpu-opp.dtsi"
11 #include "tegra20-cpu-opp-microvolt.dtsi"
32 * pre-existing /chosen node to be available to insert the
41 reserved-memory {
[all …]
/Linux-v5.15/drivers/mfd/
Dmax77843.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <linux/mfd/max77693-common.h>
15 #include <linux/mfd/max77843-private.h>
21 .name = "max77843-muic",
22 .of_compatible = "maxim,max77843-muic",
24 .name = "max77843-regulator",
25 .of_compatible = "maxim,max77843-regulator",
27 .name = "max77843-charger",
28 .of_compatible = "maxim,max77843-charger"
30 .name = "max77843-fuelgauge",
[all …]
Dmax77693.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77693.c - mfd core driver for the MAX 77693
22 #include <linux/mfd/max77693-common.h>
23 #include <linux/mfd/max77693-private.h>
24 #include <linux/regulator/machine.h>
32 { .name = "max77693-pmic", },
34 .name = "max77693-charger",
35 .of_compatible = "maxim,max77693-charger",
38 .name = "max77693-muic",
39 .of_compatible = "maxim,max77693-muic",
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
44 tristate "Active-semi ACT8945A"
49 Support for the ACT8945A PMIC from Active-semi. This device
50 features three step-down DC/DC converters and four low-dropout
66 sun4i-gpadc-iio and the hwmon driver iio_hwmon.
69 called sun4i-gpadc.
88 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down
119 over at91-usart-serial driver and usart-spi-driver. Only one function
135 tristate "Atmel HLCDC (High-end LCD Controller)"
165 voltage regulator, voltage sampling units, GPIO block and
[all …]
/Linux-v5.15/include/linux/mfd/
Dmax8997.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max8997.h - Driver for the Maxim 8997/8966
5 * Copyright (C) 2009-2010 Samsung Electrnoics
10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices.
20 #include <linux/regulator/consumer.h>
22 /* MAX8997/8966 regulator IDs */
123 * [0 - 3]: valid pattern number
126 * [0 - 15]: available cycles
128 * [0 - 255]: available period
157 * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE
[all …]
Dmax77693.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max77693.h - Driver for the Maxim 77693
12 * MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices.
20 /* MAX77693 regulator IDs */
Dmax77693-private.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max77693-private.h - Voltage regulator driver for the Maxim 77693
104 #define FLASH_EN_SHIFT(x) (6 - (x) * 2)
105 #define TORCH_EN_SHIFT(x) (2 - (x) * 2)
194 /* Dead-battery or low-battery prequalification */
299 /* MAX77693 MUIC - STATUS1~3 Register */
346 /* MAX77693 MUIC - CONTROL1~3 register */
385 /* Slave addr = 0x90: Haptic */
408 /* max77693-pmic LSCNFG configuraton register */
412 /* max77693-haptic configuration register */
[all …]
Dmax8997-private.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * max8997-private.h - Voltage regulator driver for the Maxim 8997
184 /* MAX8997-MUIC STATUS1 register */
192 /* MAX8997-MUIC STATUS2 register */
204 /* MAX8997-MUIC STATUS3 register */
208 /* MAX8997-MUIC CONTROL1 register */
373 struct i2c_client *haptic; /* slave addr 0x90 */ member
/Linux-v5.15/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 …]
/Linux-v5.15/include/linux/mfd/arizona/
Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/mfd/arizona.h>
12 #include <linux/regulator/arizona-ldo1.h>
13 #include <linux/regulator/arizona-micsupp.h>
36 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */
37 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */
38 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */
80 /** Regulator configuration for MICVDD */
83 /** Regulator configuration for LDO1 */
184 /** Haptic actuator type */
/Linux-v5.15/sound/soc/codecs/
Drt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5645.c -- RT5645 ALSA SoC audio codec driver
21 #include <linux/regulator/consumer.h>
27 #include <sound/soc-dapm.h>
42 static unsigned int quirk = -1;
434 /* Some (package) variants have the headset-mic pin not-connected */
664 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
665 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
666 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
667 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
[all …]