Home
last modified time | relevance | path

Searched refs:haptic (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/input/misc/
H A Dmax77693-haptic.c67 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()
75 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle()
77 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle()
84 static int max77843_haptic_bias(struct max77693_haptic *haptic, bool on) in max77843_haptic_bias() argument
88 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
91 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias()
96 dev_err(haptic->dev, "failed to %s bias: %d\n", in max77843_haptic_bias()
104 static int max77693_haptic_configure(struct max77693_haptic *haptic, in max77693_haptic_configure() argument
[all …]
H A Dregulator-haptic.c36 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()
51 haptic->active = on; in regulator_haptic_toggle()
57 static int regulator_haptic_set_voltage(struct regulator_haptic *haptic, in regulator_haptic_set_voltage() argument
64 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; in regulator_haptic_set_voltage()
67 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage()
68 intensity + haptic->min_volt, in regulator_haptic_set_voltage()
[all …]
H A DMakefile55 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o
73 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
H A DKconfig155 haptic driver.
243 tristate "MAXIM MAX77693/MAX77843 haptic controller support"
247 This option enables support for the haptic controller on
251 module will be called max77693-haptic.
264 tristate "MAXIM MAX8997 haptic controller support"
268 This option enables device driver support for the haptic controller
273 module will be called max8997-haptic.
472 This option enables device driver support for the haptic controlled
477 module will be called regulator-haptic.
H A Dmax8997_haptic.c263 chip->client = iodev->haptic; in max8997_haptic_probe()
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-samsung-e2015-common.dtsi6 haptic {
7 compatible = "regulator-haptic";
8 haptic-supply = <&reg_motor_vdd>;
H A Dmsm8916-samsung-fortuna-common.dtsi81 haptic {
82 compatible = "regulator-haptic";
83 haptic-supply = <&reg_motor_vdd>;
/linux/drivers/mfd/
H A Dmax8997.c183 max8997->haptic = i2c_new_dummy_device(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe()
184 if (IS_ERR(max8997->haptic)) { in max8997_i2c_probe()
186 ret = PTR_ERR(max8997->haptic); in max8997_i2c_probe()
189 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe()
225 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
/linux/arch/arm/boot/dts/allwinner/
H A Dsun4i-a10-dserve-dsrv9703c.dts73 compatible = "regulator-haptic";
74 haptic-supply = <&reg_motor>;
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-msm8226-samsung-ms013g.dts103 compatible = "regulator-haptic";
104 haptic-supply = <&reg_motor_vdd>;
/linux/Documentation/hid/
H A Dhid-bpf.rst76 example, the Microsoft Surface Dial is a pushbutton with haptic feedback that
80 events into wheel events. Also, the userspace program can set/unset the haptic
82 screen we likely need to have a haptic click every 15 degrees. But when
351 Let's imagine we have a new tablet device that has some haptic capabilities
358 haptic feature of the device itself.
454 To be able to change the haptic feedback from the tablet, the userspace program
520 Now our userspace program is aware of the haptic state and can control it. The
/linux/include/linux/mfd/
H A Dmax8997-private.h373 struct i2c_client *haptic; /* slave addr 0x90 */ member
/linux/arch/arm/boot/dts/samsung/
H A Dexynos3250-monk.dts115 compatible = "regulator-haptic";
116 haptic-supply = <&motor_reg>;
H A Dexynos3250-rinato.dts117 compatible = "regulator-haptic";
118 haptic-supply = <&motor_reg>;
H A Dexynos4412-midas.dtsi232 compatible = "maxim,max77693-haptic";
233 haptic-supply = <&ldo26_reg>;
/linux/arch/arm64/boot/dts/exynos/
H A Dexynos5433-tm2-common.dtsi929 haptic: motor-driver { label
930 compatible = "maxim,max77843-haptic";
931 haptic-supply = <&ldo38_reg>;
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-asus-tf201.dts603 haptic-feedback {
H A Dtegra30-lg-x3.dtsi762 haptic-en {
769 haptic-osc {
H A Dtegra30-asus-tf700t.dts724 haptic-feedback {
H A Dtegra20-acer-a500-picasso.dts1299 haptic-feedback {
H A Dtegra30-pegatron-chagall.dts2707 haptic-feedback {
/linux/Documentation/input/
H A Devent-codes.rst385 visual/haptic areas for left, middle, right buttons intended to be used
/linux/sound/soc/codecs/
H A DKconfig867 CS40L50 is a haptic driver with waveform memory, an integrated