/linux/drivers/gpio/ |
H A D | gpio-stmpe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 5 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 10 #include <linux/gpio/driver.h> 13 #include <linux/mfd/stmpe.h> 34 struct stmpe *stmpe; member 45 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_get() local 46 u8 reg = stmpe->regs[STMPE_IDX_GPMR_LSB + (offset / 8)]; in stmpe_gpio_get() 50 ret = stmpe_reg_read(stmpe, reg); in stmpe_gpio_get() 60 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_set() local [all …]
|
H A D | gpio-it87.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO interface for IT87xx Super I/O chips 9 * gpio-it8761e.c by Denis Turischev 10 * gpio-stmpe.c by Rabin Vincent 22 #include <linux/gpio/driver.h> 41 #define GPIO 0x07 macro 49 * struct it87_gpio - it87-specific GPIO chip 52 * @io_base: base address for gpio ports 83 return -EBUSY; in superio_enter() 155 spin_lock(&it87_gpio->lock); in it87_gpio_request() [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # generic gpio support: platform drivers, dedicated expander chips, etc 4 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG 6 obj-$(CONFIG_GPIOLIB) += gpiolib.o 7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o 8 obj-$(CONFIG_GPIOLIB) += gpiolib-legacy.o 9 obj-$(CONFIG_OF_GPIO) += gpiolib-of.o 10 obj-$(CONFIG_GPIO_CDEV) += gpiolib-cdev.o 11 obj-$(CONFIG_GPIO_SYSFS) += gpiolib-sysfs.o 12 obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stmpe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stmpe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectonics Port Expander (STMPE) 9 description: STMicroelectronics Port Expander (STMPE) is a series of slow 10 bus controllers for various expanded peripherals such as GPIO, keypad, 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 - st,stmpe601 [all …]
|
/linux/drivers/input/keyboard/ |
H A D | stmpe-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 5 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 15 #include <linux/mfd/stmpe.h> 17 /* These are at the same addresses in all STMPE variants */ 61 * struct stmpe_keypad_variant - model-specific attributes 63 * auto-increments on multiple read 64 * @set_pullup: whether the pins need to have their pull-ups set 90 .col_gpios = 0x000ff, /* GPIO 0 - 7 */ 91 .row_gpios = 0x0ff00, /* GPIO 8 - 15 */ [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 24 board-specific setup logic must also provide a configuration data 38 be called adp5520-keys. 51 module will be called adp5588-keys. 61 module will be called adp5589-keys. 126 Say Y here if you have a PA-RISC machine and want to use an AT or 128 PA-RISC keyboards. 138 built-in keyboard (as opposed to an external keyboard). 152 in the left-hand column will be interpreted as the corresponding key 153 in the right-hand column. [all …]
|
/linux/drivers/mfd/ |
H A D | stmpe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ST Microelectronics MFD: stmpe's driver 5 * Copyright (C) ST-Ericsson SA 2010 7 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 11 #include <linux/gpio/consumer.h> 23 #include "stmpe.h" 26 * struct stmpe_platform_data - STMPE platform data 30 * @autosleep: bool to enable/disable stmpe autosleep 41 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument 43 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable() [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | st,stmpe-gpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectonics Port Expander (STMPE) GPIO Block 10 STMicroelectronics Port Expander (STMPE) is a series of slow 11 bus controllers for various expanded peripherals such as GPIO, keypad, 14 GPIO portions of these expanders. 17 - Linus Walleij <linus.walleij@linaro.org> 21 const: st,stmpe-gpio [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | ste-nomadik-nhk15.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include "ste-nomadik-stn8815.dtsi" 13 compatible = "st,nomadik-nhk-15"; 22 stmpe-i2c0 = &stmpe0; 23 stmpe-i2c1 = &stmpe1; 71 disable-sxtalo; 72 disable-mxtalo; [all …]
|
H A D | spear320-hmi.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear320-hmi", "st,spear320"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 st,pinmux-mode = <4>; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&state_default>; 107 label = "u-boot"; 129 compatible = "gpio-keys"; [all …]
|
H A D | ste-href-stuib.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "gpio-keys"; 11 #address-cells = <1>; 12 #size-cells = <0>; 13 vdd-supply = <&ab8500_ldo_aux1_reg>; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; 33 stmpe1601: port-expander@40 { [all …]
|
H A D | stm32f429-disco.dts | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 48 /dts-v1/; 50 #include "stm32f429-pinctrl.dtsi" 51 #include <dt-bindings/input/input.h> 52 #include <dt-bindings/interrupt-controller/irq.h> 53 #include <dt-bindings/gpio/gpio.h> 56 model = "STMicroelectronics STM32F429i-DISCO board"; 57 compatible = "st,stm32f429i-disco", "st,stm32f429"; [all …]
|
H A D | spear1340-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear1340-evb", "st,spear1340"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&state_default>; 47 spdif-in { 51 spdif-out { 59 smi-pmx { [all …]
|
H A D | stm32429i-eval.dts | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 48 /dts-v1/; 50 #include "stm32f429-pinctrl.dtsi" 51 #include <dt-bindings/input/input.h> 52 #include <dt-bindings/gpio/gpio.h> 53 #include <dt-bindings/media/video-interfaces.h> 56 model = "STMicroelectronics STM32429i-EVAL board"; 57 compatible = "st,stm32429i-eval", "st,stm32f429"; [all …]
|
H A D | spear1310-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear1310-evb", "st,spear1310"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&state_default>; 39 gpio { 63 smi-pmx { 127 label = "u-boot"; [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am5729-beagleboneai.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2014-2019 Texas Instruments Incorporated - https://www.ti.com/ 6 /dts-v1/; 9 #include "am57xx-commercial-grade.dtsi" 10 #include "dra74x-mmc-iodelay.dtsi" 11 #include "dra74-ipu-dsp-common.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/dra.h> 18 compatible = "beagle,am5729-beagleboneai", "ti,am5728", [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ul-phytec-segin-peb-av-02.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 9 backlight_lcd: backlight-lcd { 10 compatible = "pwm-backlight"; 11 brightness-levels = <0 4 8 16 32 64 128 255>; 12 default-brightness-level = <5>; 13 power-supply = <®_backlight_en>; 18 lcd_panel: lcd-panel { 25 remote-endpoint = <&lcdif_parallel_out>; 30 reg_backlight_en: regulator-backlight-en { 31 compatible = "regulator-fixed"; [all …]
|
H A D | imx6qdl-phytec-mira.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 14 compatible = "pwm-backlight"; 15 brightness-levels = <0 4 8 16 32 64 128 255>; 16 default-brightness-level = <7>; 17 power-supply = <®_backlight>; 23 compatible = "gpio-leds"; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&pinctrl_gpioleds>; 28 led-red { 29 label = "phyboard-mira:red"; [all …]
|
H A D | imx6ul-isiot.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR X11 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 18 stdout-path = &uart1; 22 compatible = "pwm-backlight"; 24 brightness-levels = < 0 1 2 3 4 5 6 7 8 9 35 default-brightness-level = <100>; 38 reg_1p8v: regulator-1p8v { 39 compatible = "regulator-fixed"; 40 regulator-name = "1P8V"; [all …]
|
H A D | imx6qdl-colibri.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 3 * Copyright 2014-2022 Toradex 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pwm/pwm.h> 17 /delete-property/ mmc2; 18 /delete-property/ mmc3; 22 compatible = "pwm-backlight"; 23 brightness-levels = <0 45 63 88 119 158 203 255>; 24 default-brightness-level = <4>; 25 enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ [all …]
|
H A D | imx6qdl-apalis.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2014-2022 Toradex 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pwm/pwm.h> 18 /delete-property/ mmc3; 28 compatible = "pwm-backlight"; 29 brightness-levels = <0 45 63 88 119 158 203 255>; 30 default-brightness-level = <4>; 31 enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; 32 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>; 29 compatible = "gpio-beeper"; 33 gpio_buttons: gpio-keys { [all …]
|
/linux/arch/arm/boot/dts/nxp/ls/ |
H A D | ls1021a-tqmls1021a-mbls1021a.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2013-2014 Freescale Semiconductor, Inc. 4 * Copyright 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 5 * D-82229 Seefeld, Germany. 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/linux-event-codes.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/leds/leds-pca9532.h> 15 #include <dt-bindings/net/ti-dp83867.h> [all …]
|
/linux/drivers/pwm/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_PWM) += core.o 3 obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o 4 obj-$(CONFIG_PWM_ADP5585) += pwm-adp5585.o 5 obj-$(CONFIG_PWM_APPLE) += pwm-apple.o 6 obj-$(CONFIG_PWM_ATMEL) += pwm-atmel.o 7 obj-$(CONFIG_PWM_ATMEL_HLCDC_PWM) += pwm-atmel-hlcdc.o 8 obj-$(CONFIG_PWM_ATMEL_TCB) += pwm-atmel-tcb.o 9 obj-$(CONFIG_PWM_AXI_PWMGEN) += pwm-axi-pwmgen.o 10 obj-$(CONFIG_PWM_BCM2835) += pwm-bcm2835.o [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "Pulse-Width Modulation (PWM) Support" 5 Generic Pulse-Width Modulation (PWM) support. 7 In Pulse-Width Modulation, a variation of the width of pulses 48 will be called pwm-ab8500. 67 will be called pwm-apple. 77 will be called pwm-atmel. 85 (Atmel High-end LCD Controller). This PWM output is mainly used 89 will be called pwm-atmel-hlcdc. 102 will be called pwm-atmel-tcb. [all …]
|