Searched refs:haptic (Results 1 – 15 of 15) sorted by relevance
/Linux-v4.19/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 77 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle() 78 delta = (pargs.period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle() 79 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle() 81 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle() 88 static int max77843_haptic_bias(struct max77693_haptic *haptic, bool on) in max77843_haptic_bias() argument 92 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias() 95 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias() 100 dev_err(haptic->dev, "failed to %s bias: %d\n", in max77843_haptic_bias() 108 static int max77693_haptic_configure(struct max77693_haptic *haptic, in max77693_haptic_configure() argument [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 | 46 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o 64 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
|
D | Kconfig | 184 tristate "MAXIM MAX77693/MAX77843 haptic controller support" 188 This option enables support for the haptic controller on 192 module will be called max77693-haptic. 205 tristate "MAXIM MAX8997 haptic controller support" 209 This option enables device driver support for the haptic controller 214 module will be called max8997-haptic. 436 This option enables device driver support for the haptic controlled 441 module will be called regulator-haptic.
|
D | max8997_haptic.c | 282 chip->client = iodev->haptic; in max8997_haptic_probe()
|
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/mfd/ |
D | max77693.txt | 29 - haptic : The MAX77693 haptic device utilises a PWM controlled motor to provide 34 - compatible : Must be "maxim,max77693-haptic" 35 - haptic-supply : power supply for the haptic motor 163 haptic { 164 compatible = "maxim,max77693-haptic"; 165 haptic-supply = <&haptic_supply>; 167 pwm-names = "haptic";
|
/Linux-v4.19/drivers/mfd/ |
D | max8997.c | 215 max8997->haptic = i2c_new_dummy(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe() 216 if (!max8997->haptic) { in max8997_i2c_probe() 221 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe() 257 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | sun4i-a10-dserve-dsrv9703c.dts | 72 compatible = "regulator-haptic"; 73 haptic-supply = <®_motor>;
|
D | exynos3250-monk.dts | 113 compatible = "regulator-haptic"; 114 haptic-supply = <&motor_reg>;
|
D | exynos3250-rinato.dts | 108 compatible = "regulator-haptic"; 109 haptic-supply = <&motor_reg>;
|
D | exynos4412-midas.dtsi | 162 compatible = "maxim,max77693-haptic"; 163 haptic-supply = <&ldo26_reg>;
|
/Linux-v4.19/arch/arm64/boot/dts/exynos/ |
D | exynos5433-tm2-common.dtsi | 894 haptic: max77843-haptic { label 895 compatible = "maxim,max77843-haptic"; 896 haptic-supply = <&ldo38_reg>; 898 pwm-names = "haptic";
|
/Linux-v4.19/include/linux/mfd/ |
D | max8997-private.h | 386 struct i2c_client *haptic; /* slave addr 0x90 */ member
|
/Linux-v4.19/Documentation/input/ |
D | event-codes.rst | 341 visual/haptic areas for left, middle, right buttons intended to be used
|