Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/input/misc/
Dmax77693-haptic.c71 static int max77693_haptic_set_duty_cycle(struct max77693_haptic *haptic) in max77693_haptic_set_duty_cycle() argument
73 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle()
76 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77693_haptic_set_duty_cycle()
78 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle()
85 static int max77843_haptic_bias(struct max77693_haptic *haptic, bool on) in max77843_haptic_bias() argument
89 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
92 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias()
97 dev_err(haptic->dev, "failed to %s bias: %d\n", in max77843_haptic_bias()
105 static int max77693_haptic_configure(struct max77693_haptic *haptic, in max77693_haptic_configure() argument
111 switch (haptic->dev_type) { in max77693_haptic_configure()
[all …]
Dregulator-haptic.c39 static int regulator_haptic_toggle(struct regulator_haptic *haptic, bool on) in regulator_haptic_toggle() argument
43 if (haptic->active != on) { in regulator_haptic_toggle()
45 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle()
46 regulator_disable(haptic->regulator); in regulator_haptic_toggle()
48 dev_err(haptic->dev, in regulator_haptic_toggle()
54 haptic->active = on; in regulator_haptic_toggle()
60 static int regulator_haptic_set_voltage(struct regulator_haptic *haptic, in regulator_haptic_set_voltage() argument
67 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; in regulator_haptic_set_voltage()
70 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage()
71 intensity + haptic->min_volt, in regulator_haptic_set_voltage()
[all …]
DMakefile43 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o
60 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
DKconfig170 tristate "MAXIM MAX77693/MAX77843 haptic controller support"
174 This option enables support for the haptic controller on
178 module will be called max77693-haptic.
191 tristate "MAXIM MAX8997 haptic controller support"
195 This option enables device driver support for the haptic controller
200 module will be called max8997-haptic.
424 This option enables device driver support for the haptic controlled
429 module will be called regulator-haptic.
Dmax8997_haptic.c282 chip->client = iodev->haptic; in max8997_haptic_probe()
/linux-4.4.14/Documentation/devicetree/bindings/input/
Dregulator-haptic.txt4 - compatible : Should be "regulator-haptic"
5 - haptic-supply : Power supply to the haptic motor.
8 - max-microvolt : The maximum voltage value supplied to the haptic motor.
11 - min-microvolt : The minimum voltage value supplied to the haptic motor.
17 compatible = "regulator-haptic";
18 haptic-supply = <&motor_regulator>;
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dmax77693.txt30 - haptic : The MAX77693 haptic device utilises a PWM controlled motor to provide
36 - haptic-supply : power supply for the haptic motor
158 haptic {
159 compatible = "maxim,max77693-haptic";
160 haptic-supply = <&haptic_supply>;
162 pwm-names = "haptic";
/linux-4.4.14/drivers/mfd/
Dmax8997.c218 max8997->haptic = i2c_new_dummy(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe()
219 if (!max8997->haptic) { in max8997_i2c_probe()
224 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe()
260 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
272 i2c_unregister_device(max8997->haptic); in max8997_i2c_remove()
/linux-4.4.14/include/linux/mfd/
Dmax8997-private.h386 struct i2c_client *haptic; /* slave addr 0x90 */ member
/linux-4.4.14/arch/arm/boot/dts/
Dexynos3250-monk.dts114 compatible = "regulator-haptic";
115 haptic-supply = <&motor_reg>;
Dexynos3250-rinato.dts105 compatible = "regulator-haptic";
106 haptic-supply = <&motor_reg>;
Dexynos4412-trats2.dts163 compatible = "maxim,max77693-haptic";
164 haptic-supply = <&ldo26_reg>;
/linux-4.4.14/Documentation/input/
Devent-codes.txt289 visual/haptic areas for left, middle, right buttons intended to be used