| /kernel/linux/linux-5.10/drivers/input/misc/ |
| D | regulator-haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regulator haptic driver 13 #include <linux/platform_data/regulator-haptic.h> 15 #include <linux/regulator/consumer.h> 23 struct regulator *regulator; member 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() [all …]
|
| D | max77693-haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MAXIM MAX77693/MAX77843 Haptic device driver 22 #include <linux/regulator/consumer.h> 24 #include <linux/mfd/max77693-common.h> 25 #include <linux/mfd/max77693-private.h> 26 #include <linux/mfd/max77843-private.h> 55 struct regulator *motor_reg; 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() [all …]
|
| D | max8997_haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MAX8997-haptic controller driver 17 #include <linux/mfd/max8997-private.h> 19 #include <linux/regulator/consumer.h> 21 /* Haptic configuration 2 register */ 26 /* Haptic driver configuration register */ 36 struct regulator *regulator; member 60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle() 61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle() 62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 40 Say Y here to use the PowerOn Key for ST-Ericsson's AB8500 41 Mix-Sig PMIC. 44 will be called ab8500-ponkey. 64 module will be called ad714x-i2c. 74 module will be called ad714x-spi. 84 module will be called arizona-haptics. 142 will be called pm8941-pwrkey. 150 on Qualcomm PM8xxx chip. This driver supports ff-memless interface 154 module will be called pm8xxx-vibrator. [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 8 obj-$(CONFIG_INPUT_88PM860X_ONKEY) += 88pm860x_onkey.o 9 obj-$(CONFIG_INPUT_88PM80X_ONKEY) += 88pm80x_onkey.o 10 obj-$(CONFIG_INPUT_AB8500_PONKEY) += ab8500-ponkey.o 11 obj-$(CONFIG_INPUT_AD714X) += ad714x.o 12 obj-$(CONFIG_INPUT_AD714X_I2C) += ad714x-i2c.o 13 obj-$(CONFIG_INPUT_AD714X_SPI) += ad714x-spi.o 14 obj-$(CONFIG_INPUT_ADXL34X) += adxl34x.o 15 obj-$(CONFIG_INPUT_ADXL34X_I2C) += adxl34x-i2c.o 16 obj-$(CONFIG_INPUT_ADXL34X_SPI) += adxl34x-spi.o [all …]
|
| /kernel/linux/linux-6.6/drivers/input/misc/ |
| D | regulator-haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regulator haptic driver 13 #include <linux/platform_data/regulator-haptic.h> 15 #include <linux/regulator/consumer.h> 23 struct regulator *regulator; member 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() [all …]
|
| D | max77693-haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MAXIM MAX77693/MAX77843 Haptic device driver 22 #include <linux/regulator/consumer.h> 24 #include <linux/mfd/max77693-common.h> 25 #include <linux/mfd/max77693-private.h> 26 #include <linux/mfd/max77843-private.h> 55 struct regulator *motor_reg; 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() [all …]
|
| D | max8997_haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MAX8997-haptic controller driver 17 #include <linux/mfd/max8997-private.h> 19 #include <linux/regulator/consumer.h> 21 /* Haptic configuration 2 register */ 26 /* Haptic driver configuration register */ 36 struct regulator *regulator; member 60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle() 61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle() 62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 40 Say Y here to use the PowerOn Key for ST-Ericsson's AB8500 41 Mix-Sig PMIC. 44 will be called ab8500-ponkey. 64 module will be called ad714x-i2c. 74 module will be called ad714x-spi. 85 will be called ariel-pwrbutton. 95 module will be called arizona-haptics. 106 module will be called atc260x-onkey. 175 will be called pm8941-pwrkey. [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | regulator-haptic.txt | 1 * Regulator Haptic Device Tree Bindings 4 - compatible : Should be "regulator-haptic" 5 - haptic-supply : Power supply to the haptic motor. 6 [*] refer Documentation/devicetree/bindings/regulator/regulator.txt 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>; 19 max-microvolt = <2700000>; 20 min-microvolt = <1100000>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/ |
| D | regulator-haptic.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/regulator-haptic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Regulator Haptic 10 - Jaewon Kim <jaewon02.kim@samsung.com> 14 const: regulator-haptic 16 haptic-supply: 18 Power supply to the haptic motor 20 max-microvolt: [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| D | maxim,max77843.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 17 includes voltage current regulators, charger, fuel-gauge, haptic motor driver 33 motor-driver: 38 const: maxim,max77843-haptic 40 haptic-supply: 41 description: Power supply to the haptic motor 47 - compatible [all …]
|
| D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 18 includes voltage current regulators, charger, LED/flash, haptic motor driver 37 max77693-muic: 44 const: maxim,max77693-muic 47 - compatible 55 const: maxim,max77693-muic [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | max77693.txt | 1 Maxim MAX77693 multi-function device 4 - PMIC, 5 - CHARGER, 6 - LED, 7 - MUIC, 8 - HAPTIC 14 - compatible : Must be "maxim,max77693". 15 - reg : Specifies the i2c slave address of PMIC block. 16 - interrupts : This i2c device has an IRQ line connected to the main SoC. 19 - regulators : The regulators of max77693 have to be instantiated under subnode [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/ |
| D | msm8916-samsung-e2015-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-samsung-a2015-common.dtsi" 6 haptic { 7 compatible = "regulator-haptic"; 8 haptic-supply = <®_motor_vdd>; 9 min-microvolt = <3300000>; 10 max-microvolt = <3300000>; 13 i2c-muic { 15 /delete-node/ extcon@25; 18 compatible = "siliconmitus,sm5504-muic"; [all …]
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | regulator-haptic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Regulator Haptic Platform Data 14 * struct regulator_haptic_data - Platform device data 16 * @max_volt: maximum voltage value supplied to the haptic motor. 18 * @min_volt: minimum voltage value supplied to the haptic motor.
|
| /kernel/linux/linux-6.6/include/linux/platform_data/ |
| D | regulator-haptic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Regulator Haptic Platform Data 14 * struct regulator_haptic_data - Platform device data 16 * @max_volt: maximum voltage value supplied to the haptic motor. 18 * @min_volt: minimum voltage value supplied to the haptic motor.
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/allwinner/ |
| D | sun4i-a10-dserve-dsrv9703c.dts | 4 * This file is dual-licensed: you can use it either under the terms 43 /dts-v1/; 44 #include "sun4i-a10.dtsi" 45 #include "sunxi-common-regulators.dtsi" 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/input/input.h> 48 #include <dt-bindings/interrupt-controller/irq.h> 49 #include <dt-bindings/pwm/pwm.h> 53 compatible = "dserve,dsrv9703c", "allwinner,sun4i-a10"; 60 compatible = "pwm-backlight"; [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | sun4i-a10-dserve-dsrv9703c.dts | 4 * This file is dual-licensed: you can use it either under the terms 43 /dts-v1/; 44 #include "sun4i-a10.dtsi" 45 #include "sunxi-common-regulators.dtsi" 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/input/input.h> 48 #include <dt-bindings/interrupt-controller/irq.h> 49 #include <dt-bindings/pwm/pwm.h> 53 compatible = "dserve,dsrv9703c", "allwinner,sun4i-a10"; 60 compatible = "pwm-backlight"; [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | max77843.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <linux/mfd/max77693-common.h> 15 #include <linux/mfd/max77843-private.h> 21 .name = "max77843-muic", 22 .of_compatible = "maxim,max77843-muic", 24 .name = "max77843-regulator", 25 .of_compatible = "maxim,max77843-regulator", 27 .name = "max77843-charger", 28 .of_compatible = "maxim,max77843-charger" 30 .name = "max77843-fuelgauge", [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | max77843.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <linux/mfd/max77693-common.h> 15 #include <linux/mfd/max77843-private.h> 21 .name = "max77843-muic", 22 .of_compatible = "maxim,max77843-muic", 24 .name = "max77843-regulator", 25 .of_compatible = "maxim,max77843-regulator", 27 .name = "max77843-charger", 28 .of_compatible = "maxim,max77843-charger" 30 .name = "max77843-fuelgauge", [all …]
|
| /kernel/linux/linux-6.6/include/linux/mfd/ |
| D | max8997.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8997.h - Driver for the Maxim 8997/8966 5 * Copyright (C) 2009-2010 Samsung Electrnoics 10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices. 20 #include <linux/regulator/consumer.h> 22 /* MAX8997/8966 regulator IDs */ 121 * [0 - 3]: valid pattern number 124 * [0 - 15]: available cycles 126 * [0 - 255]: available period 154 * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE [all …]
|
| D | max77693.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max77693.h - Driver for the Maxim 77693 12 * MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices. 20 /* MAX77693 regulator IDs */
|
| /kernel/linux/linux-5.10/include/linux/mfd/ |
| D | max8997.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8997.h - Driver for the Maxim 8997/8966 5 * Copyright (C) 2009-2010 Samsung Electrnoics 10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices. 20 #include <linux/regulator/consumer.h> 22 /* MAX8997/8966 regulator IDs */ 123 * [0 - 3]: valid pattern number 126 * [0 - 15]: available cycles 128 * [0 - 255]: available period 157 * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/exynos/ |
| D | exynos5433-tm2-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 /dts-v1/; 13 #include <dt-bindings/clock/samsung,s2mps11.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/interrupt-controller/irq.h> 17 #include <dt-bindings/sound/samsung-i2s.h> 48 stdout-path = &serial_1; 56 gpio-keys { 57 compatible = "gpio-keys"; [all …]
|