Searched refs:haptic (Results 1 – 13 of 13) sorted by relevance
/linux-4.4.14/drivers/input/misc/ |
D | max77693-haptic.c | 71 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 …]
|
D | regulator-haptic.c | 39 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 …]
|
D | Makefile | 43 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o 60 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
|
D | Kconfig | 170 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.
|
D | max8997_haptic.c | 282 chip->client = iodev->haptic; in max8997_haptic_probe()
|
/linux-4.4.14/Documentation/devicetree/bindings/input/ |
D | regulator-haptic.txt | 4 - 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/ |
D | max77693.txt | 30 - 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/ |
D | max8997.c | 218 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/ |
D | max8997-private.h | 386 struct i2c_client *haptic; /* slave addr 0x90 */ member
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | exynos3250-monk.dts | 114 compatible = "regulator-haptic"; 115 haptic-supply = <&motor_reg>;
|
D | exynos3250-rinato.dts | 105 compatible = "regulator-haptic"; 106 haptic-supply = <&motor_reg>;
|
D | exynos4412-trats2.dts | 163 compatible = "maxim,max77693-haptic"; 164 haptic-supply = <&ldo26_reg>;
|
/linux-4.4.14/Documentation/input/ |
D | event-codes.txt | 289 visual/haptic areas for left, middle, right buttons intended to be used
|