Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:beeper (Results 1 – 25 of 27) sorted by relevance

12

/linux/Documentation/devicetree/bindings/input/
H A Dgpio-beeper.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/input/gpio-beeper.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO controlled beeper
10 - Fabio Estevam <festevam@denx.de>
14 const: gpio-beeper
19 GPIO that drives the beeper.
22 - compatible
23 - gpios
[all …]
H A Dpwm-beeper.yaml1 # 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 …]
/linux/drivers/input/misc/
H A Dgpio-beeper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic GPIO beeper driver
5 * Copyright (C) 2013-2014 Alexander Shiyan <shc_work@mail.ru>
10 #include <linux/gpio/consumer.h>
15 #define BEEPER_MODNAME "gpio-beeper"
25 gpiod_set_value_cansleep(beep->desc, on); in gpio_beeper_toggle()
32 gpio_beeper_toggle(beep, beep->beeping); in gpio_beeper_work()
41 return -ENOTSUPP; in gpio_beeper_event()
44 return -EINVAL; in gpio_beeper_event()
46 beep->beeping = value; in gpio_beeper_event()
[all …]
H A Dgpio-vibra.c1 // SPDX-License-Identifier: GPL-2.0+
3 * GPIO vibrator driver
13 * Based on PWM beeper driver:
14 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
17 #include <linux/gpio/consumer.h>
29 struct gpio_desc *gpio; member
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 …]
/linux/arch/arm/boot/dts/marvell/
H A Dkirkwood-b3.dts1 // SPDX-License-Identifier: GPL-2.0+
8 * Note: This requires a new'ish version of u-boot, which disables the
9 * L2 cache. If your B3 silently fails to boot, u-boot is probably too
12 * https://lists.debian.org/debian-arm/2012/08/msg00128.html
15 /dts-v1/;
18 #include "kirkwood-6281.dtsi"
22 compatible = "excito,b3", "marvell,kirkwood-88f6281", "marvell,kirkwood";
30 stdout-path = &uart0;
34 pinctrl: pin-controller@10000 {
35 pmx_button_power: pmx-button-power {
[all …]
H A Darmada-370-c200-v2.dts1 // 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 …]
H A Dkirkwood-nsa325.dts1 // SPDX-License-Identifier: GPL-2.0+
10 /dts-v1/;
12 #include "kirkwood-nsa3x0-common.dtsi"
16 compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
25 stdout-path = &uart0;
29 pinctrl: pin-controller@10000 {
30 pinctrl-names = "default";
32 pmx_led_hdd2_green: pmx-led-hdd2-green {
34 marvell,function = "gpio";
37 pmx_led_hdd2_red: pmx-led-hdd2-red {
[all …]
H A Dkirkwood-nsa320.dts1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (c) 2014, Adam Baker <linux@baker-net.org.uk>
9 /dts-v1/;
11 #include "kirkwood-nsa3x0-common.dtsi"
15 compatible = "zyxel,nsa320", "marvell,kirkwood-88f6281", "marvell,kirkwood";
24 stdout-path = &uart0;
28 pinctrl: pin-controller@10000 {
29 pinctrl-names = "default";
32 pmx_sata0: pmx-sata0 {
37 pmx_sata1: pmx-sata1 {
[all …]
/linux/arch/arm/boot/dts/intel/ixp/
H A Dintel-ixp42x-linksys-nslu2.dts1 // SPDX-License-Identifier: ISC
6 /dts-v1/;
8 #include "intel-ixp42x.dtsi"
9 #include <dt-bindings/input/input.h>
14 #address-cells = <1>;
15 #size-cells = <1>;
25 stdout-path = "uart0:115200n8";
33 compatible = "gpio-leds";
34 led-status {
37 default-state = "on";
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dmba8mx.dtsi1 // 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 */
12 compatible = "pwm-backlight";
14 brightness-levels = <0 4 8 16 32 64 128 255>;
15 default-brightness-level = <7>;
16 power-supply = <&reg_12v>;
17 enable-gpios = <&expander2 2 GPIO_ACTIVE_HIGH>;
21 beeper {
[all …]
H A Dimx8mm-mx8menlo.dts1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 * Copyright 2021-2022 Marek Vasut <marex@denx.de>
6 /dts-v1/;
8 #include "imx8mm-verdin.dtsi"
13 "toradex,verdin-imx8mm-nonwifi",
14 "toradex,verdin-imx8mm",
17 /delete-node/ gpio-keys;
20 compatible = "gpio-leds";
21 pinctrl-names = "default";
22 pinctrl-0 = <&pinctrl_led>;
[all …]
/linux/Documentation/driver-api/gpio/
H A Ddrivers-on-gpio.rst2 Subsystem drivers using GPIO
5 Note that standard kernel drivers exist for common GPIO tasks and will provide
6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
21 GPIO line cannot generate interrupts, so it needs to be periodically polled
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-mba6.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2013-2021 TQ-Systems GmbH
6 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
9 #include <dt-bindings/clock/imx6qdl-clock.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/sound/fsl-imx-audmux.h>
18 /delete-property/ mmc2;
19 /delete-property/ mmc3;
24 stdout-path = &uart2;
[all …]
H A Dimx6ul-kontron-bl-common.dtsi1 // 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 Dimx7-mba7.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR X11
3 * Device Tree Include file for TQ-Systems MBa7 carrier board.
5 * Copyright (C) 2016 TQ-Systems GmbH
6 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/net/ti-dp83867.h>
20 /delete-property/ mmc2;
25 beeper {
26 compatible = "gpio-beeper";
31 stdout-path = &uart6;
[all …]
H A Dimx6ull-engicam-microgea-bmm.dts1 // SPDX-License-Identifier: GPL-2.0
7 /dts-v1/;
9 #include "imx6ull-engicam-microgea.dtsi"
12 compatible = "engicam,microgea-imx6ull-bmm",
13 "engicam,microgea-imx6ull", "fsl,imx6ull";
17 compatible = "pwm-backlight";
18 brightness-levels = <0 100>;
19 num-interpolated-steps = <100>;
20 default-brightness-level = <85>;
25 compatible = "pwm-beeper";
[all …]
/linux/arch/arm/boot/dts/nxp/mxs/
H A Dimx28-amarula-rmm.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
13 compatible = "amarula,imx28-rmm", "fsl,imx28";
22 compatible = "pwm-backlight";
24 brightness-levels = <0 255>;
25 num-interpolated-steps = <255>;
26 default-brightness-level = <255>;
27 power-supply = <&reg_5v>;
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588-friendlyelec-cm3588-nas.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/pinctrl/rockchip.h>
14 #include <dt-bindings/soc/rockchip,vop2.h>
15 #include <dt-bindings/usb/pd.h>
16 #include "rk3588-friendlyelec-cm3588.dtsi"
20 compatible = "friendlyarm,cm3588-nas", "friendlyarm,cm3588", "rockchip,rk3588";
22 adc_key_recovery: adc-key-recovery {
[all …]
H A Dpx30-pp1516.dtsi1 // 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/pinctrl/rockchip.h>
18 stdout-path = "serial5:115200n8";
22 compatible = "pwm-backlight";
23 power-supply = <&vcc5v0_sys>;
27 beeper {
28 compatible = "pwm-beeper";
[all …]
H A Dpx30-cobra.dtsi1 // 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>
20 stdout-path = "serial5:115200n8";
24 compatible = "pwm-backlight";
25 power-supply = <&vcc5v0_sys>;
29 beeper {
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dam437x-gp-evm.dts1 // 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 …]
/linux/arch/arm/boot/dts/samsung/
H A Ds3c6410-mini6410.dts1 // 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 …]
H A Dexynos4412-itop-elite.dts1 // 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 …]
/linux/arch/arm/boot/dts/nxp/ls/
H A Dls1021a-moxa-uc-8410a.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2017 Moxa Inc. - https://www.moxa.com/
10 /dts-v1/;
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
17 model = "Moxa UC-8410A";
18 compatible = "fsl,ls1021a-moxa-uc-8410a", "fsl,ls1021a";
26 sys_mclk: clock-mclk {
27 compatible = "fixed-clock";
28 #clock-cells = <0>;
[all …]
/linux/drivers/leds/
H A Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
18 #include <linux/leds-pca9532.h>
19 #include <linux/gpio/driver.h>
48 struct gpio_chip gpio; member
108 .name = "leds-pca953x",
117 * the clever Thecus people are using one pwm to drive the beeper. So,
126 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm()
127 if (data->leds[i].type == PCA9532_TYPE_LED && in pca9532_calcpwm()
128 data->leds[i].state == PCA9532_PWM0+pwm) { in pca9532_calcpwm()
[all …]

12