/Linux-v6.1/drivers/input/misc/ |
D | max77693-haptic.c | 3 * MAXIM MAX77693/MAX77843 Haptic device driver 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() 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() [all …]
|
D | regulator-haptic.c | 3 * Regulator haptic driver 13 #include <linux/platform_data/regulator-haptic.h> 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() 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() [all …]
|
D | max8997_haptic.c | 3 * MAX8997-haptic controller driver 21 /* Haptic configuration 2 register */ 26 /* Haptic driver configuration register */ 248 dev_err(&pdev->dev, "no haptic platform data\n"); in max8997_haptic_probe() 263 chip->client = iodev->haptic; in max8997_haptic_probe() 282 "max8997-haptic"); in max8997_haptic_probe() 286 "unable to request PWM for haptic, error: %d\n", in max8997_haptic_probe() 314 input_dev->name = "max8997-haptic"; in max8997_haptic_probe() 383 { "max8997-haptic", 0 }, 390 .name = "max8997-haptic",
|
D | Kconfig | 215 tristate "MAXIM MAX77693/MAX77843 haptic controller support" 219 This option enables support for the haptic controller on 223 module will be called max77693-haptic. 236 tristate "MAXIM MAX8997 haptic controller support" 240 This option enables device driver support for the haptic controller 245 module will be called max8997-haptic. 444 This option enables device driver support for the haptic controlled 449 module will be called regulator-haptic.
|
D | Makefile | 53 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o 71 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
|
D | da7280.c | 3 * DA7280 Haptic device driver 289 /* The patterns should be updated when haptic is not working */ in da7280_haptic_mem_update() 295 "Warning! Please check HAPTIC status.\n"); in da7280_haptic_mem_update() 515 /* The effect should be uploaded when haptic is not working */ in da7280_haptics_upload_effect() 926 * Stop first if haptic is active, otherwise, the fault may in da7280_irq_handler() 1215 /* Initialize input device for haptic device */ in da7280_probe() 1222 input_dev->name = "da7280-haptic"; in da7280_probe()
|
/Linux-v6.1/Documentation/devicetree/bindings/input/ |
D | regulator-haptic.yaml | 4 $id: "http://devicetree.org/schemas/input/regulator-haptic.yaml#" 7 title: Regulator Haptic 14 const: regulator-haptic 16 haptic-supply: 18 Power supply to the haptic motor 22 The maximum voltage value supplied to the haptic motor 26 The minimum voltage value supplied to the haptic motor 30 - haptic-supply 39 compatible = "regulator-haptic"; 40 haptic-supply = <&motor_regulator>;
|
D | dlg,da7280.txt | 15 - dlg,const-op-mode: Haptic operation mode for FF_CONSTANT. 19 - dlg,periodic-op-mode: Haptic operation mode for FF_PERIODIC. 61 Haptic will work by this edge option in case of ETWM mode.
|
/Linux-v6.1/Documentation/devicetree/bindings/mfd/ |
D | maxim,max77843.yaml | 17 includes voltage current regulators, charger, fuel-gauge, haptic motor driver 38 const: maxim,max77843-haptic 40 haptic-supply: 41 description: Power supply to the haptic motor 48 - haptic-supply 140 compatible = "maxim,max77843-haptic"; 141 haptic-supply = <&ldo38_reg>;
|
D | maxim,max77693.yaml | 18 includes voltage current regulators, charger, LED/flash, haptic motor driver 54 const: maxim,max77693-haptic 56 haptic-supply: 57 description: Power supply to the haptic motor 64 - haptic-supply 111 compatible = "maxim,max77693-haptic"; 112 haptic-supply = <&ldo26_reg>;
|
/Linux-v6.1/include/linux/platform_data/ |
D | regulator-haptic.h | 3 * Regulator Haptic Platform Data 16 * @max_volt: maximum voltage value supplied to the haptic motor. 18 * @min_volt: minimum voltage value supplied to the haptic motor.
|
/Linux-v6.1/arch/arm64/boot/dts/qcom/ |
D | msm8916-samsung-e2015-common.dtsi | 6 haptic { 7 compatible = "regulator-haptic"; 8 haptic-supply = <®_motor_vdd>;
|
/Linux-v6.1/drivers/mfd/ |
D | max8997.c | 34 { .name = "max8997-haptic", }, 194 max8997->haptic = i2c_new_dummy_device(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe() 195 if (IS_ERR(max8997->haptic)) { in max8997_i2c_probe() 196 dev_err(max8997->dev, "Failed to allocate I2C device for Haptic\n"); in max8997_i2c_probe() 197 ret = PTR_ERR(max8997->haptic); in max8997_i2c_probe() 200 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe() 236 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
|
D | max77693.c | 42 .name = "max77693-haptic", 43 .of_compatible = "maxim,max77693-haptic", 195 dev_err(max77693->dev, "Failed to allocate I2C device for Haptic\n"); in max77693_i2c_probe() 206 "failed to initialize haptic register map: %d\n", ret); in max77693_i2c_probe()
|
D | max77843.c | 33 .name = "max77843-haptic", 34 .of_compatible = "maxim,max77843-haptic",
|
/Linux-v6.1/include/linux/mfd/ |
D | max8997.h | 10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices. 202 /* ---- HAPTIC ---- */
|
D | max77693-common.h | 26 struct i2c_client *i2c_haptic; /* MAX77693: 0x90 , Haptic */
|
D | max77693.h | 12 * MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices.
|
D | max77693-private.h | 385 /* Slave addr = 0x90: Haptic */ 412 /* max77693-haptic configuration register */
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | sun4i-a10-dserve-dsrv9703c.dts | 73 compatible = "regulator-haptic"; 74 haptic-supply = <®_motor>;
|
D | exynos3250-monk.dts | 114 compatible = "regulator-haptic"; 115 haptic-supply = <&motor_reg>;
|
/Linux-v6.1/sound/soc/codecs/ |
D | lm49453.c | 587 /* All end points HP,EP, LS, Lineout and Haptic */ 628 SND_SOC_DAPM_OUT_DRV("Haptic Left Switch", 630 SND_SOC_DAPM_OUT_DRV("Haptic Right Switch", 638 SND_SOC_DAPM_DAC("HAL DAC", "Haptic", SND_SOC_NOPM, 0, 0), 639 SND_SOC_DAPM_DAC("HAR DAC", "Haptic", SND_SOC_NOPM, 0, 0), 877 /* Haptic map */ 924 { "HAOUTL", "Haptic Left Switch", "HAL DAC" }, 925 { "HAOUTR", "Haptic Right Switch", "HAR DAC" }, 1358 .name = "LM49453 Haptic", 1360 .stream_name = "Haptic",
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | rt5645.txt | 55 * Haptic Generator
|
/Linux-v6.1/include/linux/mfd/arizona/ |
D | pdata.h | 184 /** Haptic actuator type */
|
/Linux-v6.1/arch/arm64/boot/dts/exynos/ |
D | exynos5433-tm2-common.dtsi | 924 haptic: motor-driver { label 925 compatible = "maxim,max77843-haptic"; 926 haptic-supply = <&ldo38_reg>; 928 pwm-names = "haptic";
|