| /linux/drivers/input/misc/ | 
| H A D | pwm-vibra.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later3  *  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 D | gpio-vibra.c | 1 // 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 D | twl4030-vibra.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * 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 D | pwm-vibrator.yaml | 1 # 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 D | motorola-mapphone-handset.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only2 /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 …]
 
 | 
| /linux/drivers/staging/greybus/ | 
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.03 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 D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.012 	  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 D | qcom-apq8026-lg-lenok.dts | 1 // SPDX-License-Identifier: BSD-3-Clause6 /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 D | qcom-msm8974-lge-nexus5-hammerhead.dts | 1 // SPDX-License-Identifier: GPL-2.02 #include "qcom-msm8974.dtsi"
 5 #include <dt-bindings/input/input.h>
 6 #include <dt-bindings/leds/common.h>
 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 12 	chassis-type = "handset";
 21 		stdout-path = "serial0:115200n8";
 24 	gpio-keys {
 25 		compatible = "gpio-keys";
 27 		pinctrl-names = "default";
 [all …]
 
 | 
| H A D | pm8941.dtsi | 1 // SPDX-License-Identifier: GPL-2.02 #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 D | msm8916-samsung-gt510.dts | 1 // SPDX-License-Identifier: GPL-2.0-only3 /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 D | msm8916-samsung-a2015-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only3 #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 D | msm8939-samsung-a7.dts | 1 // SPDX-License-Identifier: GPL-2.0-only3 /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 D | pmi632.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause6 #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 D | pm8916.dtsi | 1 // SPDX-License-Identifier: GPL-2.02 #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 D | palmas-pmic.txt | 11 - compatible : Should be from the list12   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 D | rk3326-gameforce-chi.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/input/input.h>
 9 #include <dt-bindings/leds/common.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 16 	chassis-type = "handset";
 24 		stdout-path = "serial2:115200n8";
 27 	adc_joystick: adc-joystick {
 28 		compatible = "adc-joystick";
 [all …]
 
 | 
| H A D | rk3566-anbernic-rgxx3.dtsi | 1 // 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 D | rk3326-anbernic-rg351m.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)8 /dts-v1/;
 9 #include <dt-bindings/gpio/gpio.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/leds/common.h>
 12 #include <dt-bindings/pinctrl/rockchip.h>
 21 		stdout-path = "serial2:115200n8";
 25 		compatible = "pwm-backlight";
 26 		power-supply = <&vcc_bl>;
 31 	 * LED is a tri-state. Driven high it is red, driven low it is
 [all …]
 
 | 
| H A D | rk3399-pinephone-pro.dts | 1 // 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 D | s5pv210-aries.dtsi | 1 // SPDX-License-Identifier: GPL-2.06 /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 D | tc3589x.txt | 1 * Toshiba TC3589x multi-purpose expander3 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 …]
 
 | 
| /linux/drivers/leds/ | 
| H A D | leds-da903x.c | 1 // SPDX-License-Identifier: GPL-2.0-only8  * 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/arm64/boot/dts/freescale/ | 
| H A D | imx8mq-librem5-devkit.dts | 1 // SPDX-License-Identifier: GPL-2.0+3  * Copyright 2018-2019 Purism SPC
 6 /dts-v1/;
 8 #include "dt-bindings/input/input.h"
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/leds/common.h>
 11 #include "dt-bindings/pwm/pwm.h"
 12 #include "dt-bindings/usb/pd.h"
 17 	compatible = "purism,librem5-devkit", "fsl,imx8mq";
 19 	backlight_dsi: backlight-dsi {
 [all …]
 
 | 
| H A D | imx8mq-librem5.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+3  * Copyright 2018-2020 Purism SPC
 6 /dts-v1/;
 8 #include "dt-bindings/input/input.h"
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/leds/common.h>
 11 #include "dt-bindings/pwm/pwm.h"
 12 #include "dt-bindings/usb/pd.h"
 18 	chassis-type = "handset";
 20 	backlight_dsi: backlight-dsi {
 [all …]
 
 |