Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 DMakefile48 obj-$(CONFIG_INPUT_MAX77693_HAPTIC) += max77693-haptic.o
66 obj-$(CONFIG_INPUT_REGULATOR_HAPTIC) += regulator-haptic.o
H A DKconfig193 tristate "MAXIM MAX77693/MAX77843 haptic controller support"
197 This option enables support for the haptic controller on
201 module will be called max77693-haptic.
214 tristate "MAXIM MAX8997 haptic controller support"
218 This option enables device driver support for the haptic controller
223 module will be called max8997-haptic.
434 This option enables device driver support for the haptic controlled
439 module will be called regulator-haptic.
H A Dmax8997_haptic.c268 chip->client = iodev->haptic; in max8997_haptic_probe()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/
H A 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>;
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Dmax77693.txt29 - 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";
/OK3568_Linux_fs/kernel/drivers/mfd/
H A Dmax8997.c195 max8997->haptic = i2c_new_dummy_device(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe()
196 if (IS_ERR(max8997->haptic)) { in max8997_i2c_probe()
198 ret = PTR_ERR(max8997->haptic); in max8997_i2c_probe()
201 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe()
237 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dsun4i-a10-dserve-dsrv9703c.dts72 compatible = "regulator-haptic";
73 haptic-supply = <&reg_motor>;
H A Dexynos3250-monk.dts114 compatible = "regulator-haptic";
115 haptic-supply = <&motor_reg>;
H A Dexynos3250-rinato.dts114 compatible = "regulator-haptic";
115 haptic-supply = <&motor_reg>;
H A Dexynos4412-midas.dtsi197 compatible = "maxim,max77693-haptic";
198 haptic-supply = <&ldo26_reg>;
H A Dtegra20-acer-a500-picasso.dts899 haptic-feedback {
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dsun4i-a10-dserve-dsrv9703c.dts75 compatible = "regulator-haptic";
76 haptic-supply = <&reg_motor>;
/OK3568_Linux_fs/kernel/android/
H A Dabi_gki_aarch64_xiaomi8 # required by aw8697-haptic.ko
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/exynos/
H A Dexynos5433-tm2-common.dtsi913 haptic: max77843-haptic { label
914 compatible = "maxim,max77843-haptic";
915 haptic-supply = <&ldo38_reg>;
917 pwm-names = "haptic";
/OK3568_Linux_fs/kernel/include/linux/mfd/
H A Dmax8997-private.h373 struct i2c_client *haptic; /* slave addr 0x90 */ member
/OK3568_Linux_fs/kernel/Documentation/input/
H A Devent-codes.rst360 visual/haptic areas for left, middle, right buttons intended to be used
/OK3568_Linux_fs/recovery/
HDrootfs.cpio.gz107070100A8AEB0000041ED0000000000000000000000116841B48100000000000000FD0000000200000000000000000000000200000000.�07070100A8B07C000081A40000000000000000000000016841263500000000000000FD0000000200000000000000000000000900000000.gitkeep��07070100A8B07D000081A40000000000000000000000016841263500000000000000FD0000000200000000000000000000000B00000000.skip_fsck����07070100A8AEB10000A1FF0000000000000000000000016841B0B600000007000000FD0000000200000000000000000000000400000000bin���usr/bin�07070100A8B07E000081A400000000000000000000000168412635000001CC000000FD0000000200000000000000000000001100000000busybox. ...