Home
last modified time | relevance | path

Searched +full:pwm +full:- +full:vibrator (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/input/misc/
H A Dpwm-vibra.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * PWM vibrator driver
10 * Based on PWM beeper driver:
11 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
21 #include <linux/pwm.h>
28 struct pwm_device *pwm; member
38 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
40 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
44 if (!vibrator->vcc_on) { in pwm_vibrator_start()
45 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
[all …]
H A Dgpio-vibra.c1 // SPDX-License-Identifier: GPL-2.0+
3 * GPIO vibrator driver
7 * Based on PWM vibrator driver:
13 * Based on PWM beeper driver:
14 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
37 static int gpio_vibrator_start(struct gpio_vibrator *vibrator) in gpio_vibrator_start() argument
39 struct device *pdev = vibrator->input->dev.parent; in gpio_vibrator_start()
42 if (!vibrator->vcc_on) { in gpio_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in gpio_vibrator_start()
48 vibrator->vcc_on = true; in gpio_vibrator_start()
[all …]
H A Dtwl4030-vibra.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * twl4030-vibra.c - TWL4030 Vibrator driver
5 * Copyright (C) 2008-2010 Nokia Corporation
9 * Input by Jari Vanhala <ext-jari.vanhala@nokia.com>
18 #include <linux/mfd/twl4030-audio.h>
26 #define EFFECT_DIR_180_DEG 0x8000 /* range is 0 - 0xFFFF */
45 /* Disable LEDA & LEDB, cannot be used with vibra (PWM) */ in vibra_disable_leds()
51 /* Powers H-Bridge and enables audio clk */
58 /* turn H-Bridge on */ in vibra_enable()
66 info->enabled = true; in vibra_enable()
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Dpwm-vibrator.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/pwm-vibrator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: PWM vibrator
10 - Sebastian Reichel <sre@kernel.org>
13 Registers a PWM device as vibrator. It is expected, that the vibrator's
14 strength increases based on the duty cycle of the enable PWM channel
17 The binding supports an optional direction PWM channel, that can be
23 const: pwm-vibrator
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dmotorola-mapphone-handset.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include "motorola-mapphone-common.dtsi"
8 fsusb1_phy: usb-phy@1 {
9 compatible = "motorola,mapphone-mdm6600";
10 pinctrl-0 = <&usb_mdm6600_pins>;
11 pinctrl-1 = <&usb_mdm6600_sleep_pins>;
12 pinctrl-names = "default", "sleep";
13 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; /* gpio_95 */
14 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54 */
[all …]
H A Domap4-sdp.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
5 /dts-v1/;
9 #include "omap4-mcpdm.dtsi"
13 compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4";
26 vdd_eth: fixedregulator-vdd-eth {
27 pinctrl-names = "default";
28 pinctrl-0 = <&enet_enable_gpio>;
30 compatible = "regulator-fixed";
31 regulator-name = "VDD_ETH";
[all …]
/linux/drivers/staging/greybus/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 ccflags-y += -I$(src)
6 gb-bootrom-y := bootrom.o
7 gb-camera-y := camera.o
8 gb-firmware-y := fw-core.o fw-download.o fw-management.o authentication.o
9 gb-spilib-y := spilib.o
10 gb-hid-y := hid.o
11 gb-light-y := light.o
12 gb-log-y := log.o
13 gb-loopback-y := loopback.o
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
12 will be called gb-audio.ko
20 bridge from an APB-I2S port to a Unipro network.
23 will be called gb-audio-codec.ko
33 will be called gb-bootrom.ko
43 will be called gb-camera.ko
53 will be called gb-firmware.ko
63 will be called gb-hid.ko
73 will be called gb-light.ko
82 will be called gb-log.ko
[all …]
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-apq8026-lg-lenok.dts1 // SPDX-License-Identifier: BSD-3-Clause
6 /dts-v1/;
8 #include "qcom-msm8226.dtsi"
10 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
12 /delete-node/ &adsp_region;
17 chassis-type = "watch";
18 qcom,board-id = <132 0x0a>;
19 qcom,msm-id = <199 0x20000>;
27 stdout-path = "serial0:115200n8";
30 reserved-memory {
[all …]
H A Dpm8941.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
4 #include <dt-bindings/spmi/spmi.h>
8 thermal-zones {
9 pm8941-thermal {
10 polling-delay-passive = <100>;
11 polling-delay = <0>;
12 thermal-sensors = <&pm8941_temp>;
40 compatible = "qcom,pm8941", "qcom,spmi-pmic";
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-samsung-gt510.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-samsung-gt5-common.dtsi"
10 chassis-type = "tablet";
12 speaker_codec: audio-codec {
14 sdmode-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
15 #sound-dai-cells = <0>;
16 pinctrl-0 = <&audio_sdmode_default>;
17 pinctrl-names = "default";
20 clk_pwm: pwm {
[all …]
H A Dmsm8916-samsung-a2015-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include "msm8916-modem-qdsp6.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 #include <dt-bindings/sound/apq8016-lpass.h>
20 stdout-path = "serial0";
23 reserved-memory {
[all …]
H A Dmsm8939-samsung-a7.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8939-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/sound/apq8016-lpass.h>
16 chassis-type = "handset";
25 stdout-path = "serial0";
[all …]
H A Dpmi632.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
11 thermal-zones {
12 pmi632-thermal {
13 polling-delay-passive = <100>;
15 thermal-sensors = <&pmi632_temp>;
42 compatible = "qcom,pmi632", "qcom,spmi-pmic";
44 #address-cells = <1>;
[all …]
H A Dpm8916.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/input/linux-event-codes.h>
4 #include <dt-bindings/interrupt-controller/irq.h>
5 #include <dt-bindings/spmi/spmi.h>
8 thermal-zones {
9 pm8916-thermal {
10 polling-delay-passive = <100>;
12 thermal-sensors = <&pm8916_temp>;
39 compatible = "qcom,pm8916", "qcom,spmi-pmic";
[all …]
/linux/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt11 - compatible : Should be from the list
12 ti,twl6035-pmic
13 ti,twl6036-pmic
14 ti,twl6037-pmic
15 ti,tps65913-pmic
16 ti,tps65914-pmic
17 ti,tps65917-pmic
18 ti,tps659038-pmic
20 ti,palmas-pmic
21 - interrupts : The interrupt number and the type which can be looked up here:
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588s-gameforce-ace.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/thermal/thermal.h>
11 #include <dt-bindings/usb/pd.h>
16 chassis-type = "handset";
[all …]
H A Drk3566-anbernic-rgxx3.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
13 chassis-type = "handset";
16 stdout-path = "serial2:1500000n8";
19 adc_keys: adc-keys {
[all …]
H A Drk3399-pinephone-pro.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 * https://files.pine64.org/doc/PinePhonePro/PinephonePro-Schematic-V1.0-20211127.pdf
12 /dts-v1/;
13 #include <dt-bindings/input/gpio-keys.h>
14 #include <dt-bindings/input/linux-event-codes.h>
15 #include <dt-bindings/leds/common.h>
16 #include "rk3399-s.dtsi"
20 compatible = "pine64,pinephone-pro", "rockchip,rk3399";
21 chassis-type = "handset";
30 stdout-path = "serial2:115200n8";
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Ds5pv210-aries.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
32 reserved-memory {
33 #address-cells = <1>;
34 #size-cells = <1>;
38 compatible = "shared-dma-pool";
39 no-map;
44 compatible = "shared-dma-pool";
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dtc3589x.txt1 * Toshiba TC3589x multi-purpose expander
3 The Toshiba TC3589x series are I2C-based MFD devices which may expose the
4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
7 - TC35890
8 - TC35892
9 - TC35893
10 - TC35894
11 - TC35895
12 - TC35896
15 - compatible : must be "toshiba,tc35890", "toshiba,tc35892", "toshiba,tc35893",
[all …]
H A Dqcom,spmi-pmic.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SPMI PMICs multi-function device
13 16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
14 each. A function can consume one or more of these fixed-size register regions.
24 - Stephen Boyd <sboyd@kernel.org>
29 - pattern: '^pmic@.*$'
30 - pattern: '^pm(a|s)?[0-9]*@.*$'
[all …]
/linux/drivers/leds/
H A Dleds-da903x.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 2006-2008 Marvell International Ltd.
24 #define DA9030_MISC_CONTROL_A 0x26 /* Vibrator Control */
37 #define DA9030_LED_OFFSET(id) ((id) - DA9030_ID_LED_1)
38 #define DA9034_LED_OFFSET(id) ((id) - DA9034_ID_LED_1)
46 int offset, ret = -EINVAL; in da903x_led_set()
48 switch (led->id) { in da903x_led_set()
54 offset = DA9030_LED_OFFSET(led->id); in da903x_led_set()
55 val = led->flags & ~0x87; in da903x_led_set()
57 val |= (0x7 - (value >> 5)) & 0x7; /* PWM<2:0> */ in da903x_led_set()
[all …]
/linux/arch/mips/boot/dts/ingenic/
H A Dgcw0.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include <dt-bindings/clock/ingenic,tcu.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/iio/adc/ingenic,adc.h>
9 #include <dt-bindings/input/input.h>
29 stdout-path = "serial2:57600n8";
33 compatible = "regulator-fixed";
34 regulator-name = "vcc";
36 regulator-min-microvolt = <3300000>;
[all …]
/linux/include/linux/mfd/
H A D88pm860x.h1 /* SPDX-License-Identifier: GPL-2.0-only */
189 /* Vibrator Control Registers */
404 int pwm; member

12