/openbmc/linux/drivers/input/misc/ |
H A D | pwm-beeper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 4 * PWM beeper driver 14 #include <linux/pwm.h> 20 struct pwm_device *pwm; member 31 static int pwm_beeper_on(struct pwm_beeper *beeper, unsigned long period) in pwm_beeper_on() argument 36 pwm_get_state(beeper->pwm, &state); in pwm_beeper_on() 42 error = pwm_apply_might_sleep(beeper->pwm, &state); in pwm_beeper_on() 46 if (!beeper->amplifier_on) { in pwm_beeper_on() 47 error = regulator_enable(beeper->amplifier); in pwm_beeper_on() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | pwm-vibra.c | 1 // 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 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() 50 vibrator->vcc_on = true; in pwm_vibrator_start() [all …]
|
H A D | gpio-vibra.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Based on PWM vibrator driver: 13 * Based on PWM beeper driver: 14 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 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() 51 gpiod_set_value_cansleep(vibrator->gpio, 1); in gpio_vibrator_start() 58 gpiod_set_value_cansleep(vibrator->gpio, 0); in gpio_vibrator_stop() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | pwm-beeper.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/pwm-beeper.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PWM beeper 10 - Sascha Hauer <s.hauer@pengutronix.de> 14 const: pwm-beeper 19 amp-supply: 20 description: an amplifier for the beeper 22 beeper-hz: [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | am335x-brppt1-mmc.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 18 order-no = "6PPT30 (MMC)"; 19 hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 20 serial-no = "0"; 21 device-id = <0x0>; 22 parent-id = <0x0>; [all …]
|
H A D | am335x-brppt1-spi.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 18 order-no = "6PPT30 (SPI)"; 19 hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 20 serial-no = "0"; 21 device-id = <0x0>; 22 parent-id = <0x0>; [all …]
|
H A D | am335x-brppt1-nand.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 18 order-no = "6PPT30 (NAND)"; 19 hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; 20 serial-no = "0"; 21 device-id = <0x0>; 22 parent-id = <0x0>; [all …]
|
H A D | am335x-brxre1.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * http://www.br-automation.com 7 /dts-v1/; 15 fset: factory-settings { 16 bl-version = " "; 17 order-no = " "; 18 cpu-order-no = " "; 19 hw-revision = " "; 20 serial-no = <0>; 21 device-id = <0xE681>; [all …]
|
H A D | am335x-rut.dts | 6 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 12 /dts-v1/; 15 #include <dt-bindings/input/input.h> 19 compatible = "ti,am335x-evm", "ti,am33xx"; 22 compatible = "pwm-beeper"; 27 stdout-path = &uart0; 28 tick-timer = &timer2; 33 cpu0-supply = <&dcdc2_reg>; 37 gpio_keys: powerfail-keys { 38 compatible = "gpio-keys"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-vegman.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 29 compatible = "shared-dma-pool"; 36 record-size = <0x2000>; 37 console-size = <0x2000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-kp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/pwm/pwm.h> 13 #include <dt-bindings/sound/fsl-imx-audmux.h> 16 backlight_lcd: backlight-lcd { 17 compatible = "pwm-backlight"; 19 brightness-levels = <0 255>; 20 num-interpolated-steps = <255>; 21 default-brightness-level = <250>; [all …]
|
H A D | imx6ul-kontron-bl-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 11 gpio-leds { 12 compatible = "gpio-leds"; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&pinctrl_gpio_leds>; 17 label = "debug-led1"; 19 default-state = "off"; 20 linux,default-trigger = "heartbeat"; 24 label = "debug-led2"; [all …]
|
H A D | imx53-kp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include "imx53-tqma53.dtsi" 9 #include <dt-bindings/input/input.h> 13 compatible = "pwm-beeper"; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&pinctrl_buzzer>; 19 gpio-buttons { 20 compatible = "gpio-keys"; 21 pinctrl-names = "default"; [all …]
|
H A D | mba6ulx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2018-2022 TQ-Systems GmbH 4 * Author: Markus Niebel <Markus.Niebel@tq-group.com> 8 model = "TQ-Systems MBA6ULx Baseboard"; 18 stdout-path = &uart1; 22 compatible = "pwm-backlight"; 23 power-supply = <®_mba6ul_3v3>; 24 enable-gpios = <&expander_out0 4 GPIO_ACTIVE_HIGH>; 28 beeper: beeper { label 29 compatible = "gpio-beeper"; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mm-kontron-bl.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 6 /dts-v1/; 8 #include "imx8mm-kontron-sl.dtsi" 12 compatible = "kontron,imx8mm-bl", "kontron,imx8mm-sl", "fsl,imx8mm"; 21 osc_can: clock-osc-can { 22 compatible = "fixed-clock"; 23 #clock-cells = <0>; 24 clock-frequency = <16000000>; 25 clock-output-names = "osc-can"; 29 compatible = "gpio-leds"; [all …]
|
H A D | imx8mm-kontron-bl-osm-s.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 6 /dts-v1/; 8 #include "imx8mm-kontron-osm-s.dtsi" 11 model = "Kontron BL i.MX8MM OSM-S (N802X S)"; 12 compatible = "kontron,imx8mm-bl-osm-s", "kontron,imx8mm-osm-s", "fsl,imx8mm"; 19 osc_can: clock-osc-can { 20 compatible = "fixed-clock"; 21 #clock-cells = <0>; 22 clock-frequency = <40000000>; 23 clock-output-names = "osc-can"; [all …]
|
H A D | mba8mx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2020-2021 TQ-Systems GmbH 6 #include <dt-bindings/net/ti-dp83867.h> 8 /* TQ-Systems GmbH MBa8Mx baseboard */ 11 beeper { 12 compatible = "pwm-beeper"; 14 beeper-hz = <4000>; 15 amp-supply = <®_vcc_3v3>; 19 stdout-path = &uart3; 22 gpio-keys { [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4412-itop-elite.dts | 1 // SPDX-License-Identifier: GPL-2.0 13 /dts-v1/; 14 #include <dt-bindings/leds/common.h> 15 #include <dt-bindings/pwm/pwm.h> 16 #include <dt-bindings/sound/samsung-i2s.h> 17 #include "exynos4412-itop-scp-core.dtsi" 21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4"; 29 stdout-path = "serial2:115200n8"; 33 compatible = "gpio-leds"; 39 default-state = "off"; [all …]
|
H A D | s3c6410-mini6410.dts | 1 // SPDX-License-Identifier: GPL-2.0 11 /dts-v1/; 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/interrupt-controller/irq.h> 31 fin_pll: oscillator-0 { 32 compatible = "fixed-clock"; 33 clock-frequency = <12000000>; 34 clock-output-names = "fin_pll"; 35 #clock-cells = <0>; 38 xusbxti: oscillator-1 { [all …]
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-370-c200-v2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Device Tree file for Ctera C200-V2 8 /dts-v1/; 10 #include "armada-370.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/leds/common.h> 18 compatible = "ctera,c200-v2", "marvell,armada370", "marvell,armada-370-xp"; 22 stdout-path = "serial0:115200n8"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/davinci/ |
H A D | da850-lego-ev3.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/linux-event-codes.h> 11 #include <dt-bindings/pwm/pwm.h> 32 compatible = "gpio-keys"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&button_bias>; 75 * The EV3 has two built-in bi-color LEDs behind the buttons. 78 compatible = "gpio-leds"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am437x-gp-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 8 /dts-v1/; 11 #include <dt-bindings/pinctrl/am43xx.h> 12 #include <dt-bindings/pwm/pwm.h> 13 #include <dt-bindings/gpio/gpio.h> 17 compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; 24 stdout-path = &uart0; 27 evm_v3_3d: fixedregulator-v3_3d { 28 compatible = "regulator-fixed"; [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-pca9532.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pca9532.c - 16-bit Led dimmer 18 #include <linux/leds-pca9532.h> 48 u8 pwm[2]; member 101 .name = "leds-pca953x", 109 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally, 110 * the clever Thecus people are using one pwm to drive the beeper. So, 111 * as a compromise we average one pwm to the values requested by all 114 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, in pca9532_calcpwm() argument 119 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() [all …]
|