/linux/Documentation/devicetree/bindings/trigger-source/ |
H A D | gpio-trigger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic trigger source using GPIO 9 description: A GPIO used as a trigger source. 12 - Jonathan Santos <Jonathan.Santos@analog.com> 16 const: gpio-trigger 18 '#trigger-source-cells': 23 description: GPIO to be used as a trigger source. [all …]
|
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | ltc2952-poweroff.txt | 3 This chip is used to externally trigger a system shut down. Once the trigger has 9 - compatible: Must contain: "lltc,ltc2952" 10 - watchdog-gpios: phandle + gpio-specifier for the GPIO connected to the 12 - kill-gpios: phandle + gpio-specifier for the GPIO connected to the 16 - trigger-gpios: phandle + gpio-specifier for the GPIO connected to the 17 chip's trigger line. If this property is not set, the 18 trigger function is ignored and the chip is kept alive 20 - trigger-delay-ms The number of milliseconds to wait after trigger line 29 trigger-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 30 trigger-delay-ms = <2000>; [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | adi,ad7768-1.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD7768-1 ADC device driver 10 - Michael Hennerich <michael.hennerich@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf 18 const: adi,ad7768-1 26 clock-names: 29 trigger-sources: [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap5-uevm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 7 #include "omap5-board-common.dtsi" 11 compatible = "ti,omap5-uevm", "ti,omap5"; 18 reserved-memory { 19 #address-cells = <2>; 20 #size-cells = <2>; 23 dsp_memory_region: dsp-memory@95000000 { 24 compatible = "shared-dma-pool"; [all …]
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ledtrig-gio.c - LED Trigger Based on GPIO events 12 #include <linux/gpio/consumer.h> 21 struct gpio_desc *gpiod; /* gpio that triggers the led */ 30 tmp = gpiod_get_value_cansleep(gpio_data->gpiod); in gpio_trig_irq() 32 if (gpio_data->desired_brightness) in gpio_trig_irq() 33 led_set_brightness_nosleep(gpio_data->led, in gpio_trig_irq() 34 gpio_data->desired_brightness); in gpio_trig_irq() 36 led_set_brightness_nosleep(gpio_data->led, LED_FULL); in gpio_trig_irq() 38 led_set_brightness_nosleep(gpio_data->led, LED_OFF); in gpio_trig_irq() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "LED Trigger support" 6 This option enables trigger support for the leds class. 13 tristate "LED Timer Trigger" 18 For more details read Documentation/leds/leds-class.rst. 23 tristate "LED One-shot Trigger" 25 This allows LEDs to blink in one-shot pulses with parameters 36 bool "LED Disk Trigger" 43 bool "LED MTD (NAND/NOR) Trigger" 50 tristate "LED Heartbeat Trigger" [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm47081-luxul-xwr-1200.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 9 #include "bcm5301x-nand-cs0-bch4.dtsi" 12 compatible = "luxul,xwr-1200-v1", "brcm,bcm47081", "brcm,bcm4708"; 13 model = "Luxul XWR-1200 V1"; 29 #nvmem-cell-cells = <1>; 34 compatible = "gpio-leds"; 36 led-power { 39 linux,default-trigger = "default-on"; 42 led-lan3 { [all …]
|
H A D | bcm4708-buffalo-wzr-1750dhp.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Buffalo WZR-1750DHP 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708"; 16 model = "Buffalo WZR-1750DHP (BCM4708)"; 29 compatible = "spi-gpio"; 30 num-chipselects = <1>; 31 sck-gpios = <&chipcommon 7 0>; 32 mosi-gpios = <&chipcommon 4 0>; [all …]
|
H A D | bcm4708-buffalo-wzr-1166dhp-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Buffalo WZR-1166DHP and WZR-1166DHP2 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 13 #include <dt-bindings/leds/common.h> 17 compatible = "spi-gpio"; 18 num-chipselects = <1>; 19 sck-gpios = <&chipcommon 7 0>; 20 mosi-gpios = <&chipcommon 4 0>; 21 cs-gpios = <&chipcommon 6 0>; 22 #address-cells = <1>; [all …]
|
H A D | bcm4709-tplink-archer-c9-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708"; 12 model = "TP-LINK Archer C9 V1"; 24 compatible = "gpio-leds"; 26 led-lan { 31 led-wps { 36 led-2ghz { 41 led-5ghz { 46 led-usb3 { [all …]
|
H A D | bcm47081-tplink-archer-c5-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; 12 model = "TP-LINK Archer C5 V2"; 24 compatible = "gpio-leds"; 26 led-2ghz { 31 led-lan { 36 led-usb2-port1 { 37 label = "bcm53xx:green:usb2-port1"; 39 trigger-sources = <&ohci_port1>, <&ehci_port1>; [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-l-50.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Check Point L-50 Board Description 7 /dts-v1/; 10 #include "kirkwood-6281.dtsi" 13 model = "Check Point L-50"; 14 compatible = "checkpoint,l-50", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 23 stdout-path = &uart0; 27 pinctrl: pin-controller@10000 { 28 pinctrl-0 = <&pmx_led38 &pmx_sysrst &pmx_button29>; 29 pinctrl-names = "default"; [all …]
|
H A D | kirkwood-c200-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com> 7 /dts-v1/; 10 #include "kirkwood-6281.dtsi" 11 #include <dt-bindings/leds/common.h> 15 compatible = "ctera,c200-v1", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 19 stdout-path = &uart0; 28 compatible = "gpio-keys"; 29 pinctrl-0 = <&pmx_buttons>; 30 pinctrl-names = "default"; [all …]
|
H A D | armada-388-helios4.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 /dts-v1/; 11 #include "armada-388.dtsi" 12 #include "armada-38x-solidrun-microsom.dtsi" 25 /* So that mvebu u-boot can update the MAC addresses */ 30 stdout-path = "serial0:115200n8"; 33 reg_12v: regulator-12v { 34 compatible = "regulator-fixed"; 35 regulator-name = "power_brick_12V"; 36 regulator-min-microvolt = <12000000>; [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | adi,adp5585.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 19 - items: 20 - enum: 21 - adi,adp5585-00 # Default 22 - adi,adp5585-01 # 11 GPIOs 23 - adi,adp5585-02 # No pull-up resistors by default on special pins 24 - adi,adp5585-03 # Alternate I2C address [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hi3798cv200-poplar.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 12 #include "poplar-pinctrl.dtsi" 16 compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200"; 24 stdout-path = "serial0:115200n8"; 33 compatible = "gpio-leds"; 35 user-led0 { 38 linux,default-trigger = "heartbeat"; [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-rda.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RDA Micro GPIO driver 10 #include <linux/gpio/driver.h> 48 void __iomem *base = rda_gpio->base; in rda_gpio_update() 52 spin_lock_irqsave(&rda_gpio->lock, flags); in rda_gpio_update() 61 spin_unlock_irqrestore(&rda_gpio->lock, flags); in rda_gpio_update() 68 void __iomem *base = rda_gpio->base; in rda_gpio_irq_mask() 91 void __iomem *base = rda_gpio->base; in rda_gpio_set_irq() 96 /* Set rising edge trigger */ in rda_gpio_set_irq() 100 /* Switch to edge trigger interrupt */ in rda_gpio_set_irq() [all …]
|
H A D | gpio-sifive.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/gpio/driver.h> 38 unsigned int trigger[SIFIVE_GPIO_MAX]; member 45 unsigned int trigger; in sifive_gpio_set_ie() local 47 raw_spin_lock_irqsave(&chip->gc.bgpio_lock, flags); in sifive_gpio_set_ie() 48 trigger = (chip->irq_state & BIT(offset)) ? chip->trigger[offset] : 0; in sifive_gpio_set_ie() 49 regmap_update_bits(chip->regs, SIFIVE_GPIO_RISE_IE, BIT(offset), in sifive_gpio_set_ie() 50 (trigger & IRQ_TYPE_EDGE_RISING) ? BIT(offset) : 0); in sifive_gpio_set_ie() 51 regmap_update_bits(chip->regs, SIFIVE_GPIO_FALL_IE, BIT(offset), in sifive_gpio_set_ie() 52 (trigger & IRQ_TYPE_EDGE_FALLING) ? BIT(offset) : 0); in sifive_gpio_set_ie() [all …]
|
H A D | gpio-timberdale.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Timberdale FPGA GPIO driver 9 * Timberdale FPGA GPIO 13 #include <linux/gpio/driver.h> 21 #define DRIVER_NAME "timb-gpio" 37 struct gpio_chip gpio; member 42 static int timbgpio_update_bit(struct gpio_chip *gpio, unsigned index, in timbgpio_update_bit() argument 45 struct timbgpio *tgpio = gpiochip_get_data(gpio); in timbgpio_update_bit() 49 spin_lock_irqsave(&tgpio->lock, flags); in timbgpio_update_bit() 50 reg = ioread32(tgpio->membase + offset); in timbgpio_update_bit() [all …]
|
H A D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * TI DaVinci GPIO Support 5 * Copyright (c) 2006-2007 David Brownell 9 #include <linux/gpio/driver.h> 43 #define BINTEN 0x8 /* GPIO Interrupt Per-Bank Enable Register */ 57 /* Serialize access to GPIO registers */ 66 static inline u32 __gpio_mask(unsigned gpio) in __gpio_mask() argument 68 return 1 << (gpio % 32); in __gpio_mask() 73 /*--------------------------------------------------------------------------*/ 75 /* board setup code *MUST* setup pinmux and enable the GPIO clock. */ [all …]
|
H A D | gpio-tqmx86.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TQ-Systems TQMx86 PLD GPIO driver 12 #include <linux/gpio/driver.h> 23 #define TQMX86_NGPO 4 /* 0-3 - output */ 24 #define TQMX86_NGPI 4 /* 4-7 - input */ 25 #define TQMX86_DIR_INPUT_MASK 0xf0 /* 0-3 - output, 4-7 - input */ 27 #define TQMX86_GPIODD 0 /* GPIO Data Direction Register */ 28 #define TQMX86_GPIOD 1 /* GPIO Data Register */ 60 return ioread8(gd->io_base + reg); in tqmx86_gpio_read() 66 iowrite8(val, gd->io_base + reg); in tqmx86_gpio_write() [all …]
|
H A D | gpio-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support functions for OMAP GPIO 5 * Copyright (C) 2003-2005 Nokia Corporation 9 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 25 #include <linux/gpio/driver.h> 27 #include <linux/platform_data/gpio-omap.h> 78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 84 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) 109 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 112 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-equilibrium.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 /* GPIO register offset */ 59 * struct gpio_irq_type: gpio irq configuration 60 * @trig_type: level trigger or edge trigger 62 * @logic_type: positive trigger or negative trigger 89 * struct eqbr_gpio_ctrl: represent a gpio controller. 90 * @chip: gpio chip. 91 * @fwnode: firmware node of gpio controller. 93 * @membase: base address of the gpio controller. 94 * @name: gpio chip name. [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-skov-revc-bd500.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 /dts-v1/; 5 #include "imx8mp-skov-reva.dtsi" 8 model = "SKOV IMX8MP CPU revC - bd500"; 9 compatible = "skov,imx8mp-skov-revc-bd500", "fsl,imx8mp"; 12 led_system_red: led-3 { 17 default-state = "off"; 20 led_system_green: led-4 { 24 default-state = "on"; 27 led_lan1_red: led-5 { [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-phytec-mira-peb-eval-01.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/input/input.h> 10 gpio-keys { 11 compatible = "gpio-keys"; 12 pinctrl-names = "default"; 13 pinctrl-0 = <&pinctrl_gpio_keys>; 20 wakeup-source; 30 user_leds: user-leds { 31 compatible = "gpio-leds"; 32 pinctrl-names = "default"; [all …]
|