/openbmc/linux/drivers/iio/common/st_sensors/ |
H A D | st_sensors_trigger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 19 * st_sensors_new_samples_available() - check if more samples came in 24 * false - no new samples available or read error 25 * true - new samples available 33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available() 37 if (!indio_dev->active_scan_mask) in st_sensors_new_samples_available() 40 ret = regmap_read(sdata->regmap, in st_sensors_new_samples_available() 41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available() 44 dev_err(indio_dev->dev.parent, in st_sensors_new_samples_available() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | smsc,lan9115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller 10 - Shawn Guo <shawnguo@kernel.org> 13 - $ref: ethernet-controller.yaml# 18 - const: smsc,lan9115 19 - items: 20 - enum: 21 - smsc,lan89218 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | atmel,aic.txt | 4 - compatible: Should be: 5 - "atmel,<chip>-aic" where <chip> can be "at91rm9200", "sama5d2", 7 - "microchip,<chip>-aic" where <chip> can be "sam9x60" 9 - interrupt-controller: Identifies the node as an interrupt controller. 10 - #interrupt-cells: The number of cells to define the interrupts. It should be 3. 11 The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). 14 1 = low-to-high edge triggered. 15 2 = high-to-low edge triggered. 16 4 = active high level-sensitive. 17 8 = active low level-sensitive. [all …]
|
H A D | snps,archs-idu-intc.txt | 1 * ARC-HS Interrupt Distribution Unit 4 for dynamic IRQ routing, load balancing of common/external IRQs towards core 9 - compatible: "snps,archs-idu-intc" 10 - interrupt-controller: This is an interrupt controller. 11 - #interrupt-cells: Must be <1> or <2>. 13 Value of the first cell specifies the "common" IRQ from peripheral to IDU. 18 - bits[3:0] trigger type and level flags 19 1 = low-to-high edge triggered 20 2 = NOT SUPPORTED (high-to-low edge triggered) 21 4 = active high level-sensitive <<< DEFAULT [all …]
|
H A D | nxp,lpc3220-mic.txt | 4 - compatible: "nxp,lpc3220-mic" or "nxp,lpc3220-sic". 5 - reg: should contain IC registers location and length. 6 - interrupt-controller: identifies the node as an interrupt controller. 7 - #interrupt-cells: the number of cells to define an interrupt, should be 2. 8 The first cell is the IRQ number, the second cell is used to specify 9 one of the supported IRQ types: 10 IRQ_TYPE_EDGE_RISING = low-to-high edge triggered, 11 IRQ_TYPE_EDGE_FALLING = high-to-low edge triggered, 12 IRQ_TYPE_LEVEL_HIGH = active high level-sensitive, 13 IRQ_TYPE_LEVEL_LOW = active low level-sensitive. [all …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | intro.rst | 16 - The descriptor-based interface is the preferred way to manipulate GPIOs, 18 - The legacy integer-based interface which is considered deprecated (but still 21 The remainder of this document applies to the new descriptor-based interface. 23 integer-based interface. 29 A "General Purpose Input/Output" (GPIO) is a flexible software-controlled 37 System-on-Chip (SOC) processors heavily rely on GPIOs. In some cases, every 38 non-dedicated pin can be configured as a GPIO; and most chips have at least 43 Most PC southbridges have a few dozen GPIO-capable pins (with only the BIOS 48 - Output values are writable (high=1, low=0). Some chips also have 50 value might be driven, supporting "wire-OR" and similar schemes for the [all …]
|
H A D | consumer.rst | 6 it describes the new descriptor-based interface. For a description of the 7 deprecated integer-based GPIO interface please refer to legacy.rst. 23 - Simple compile coverage with e.g. COMPILE_TEST - it does not matter that 27 - Truly optional GPIOLIB support - where the driver does not really make use 28 of the GPIOs on certain compile-time configurations for certain systems, but 29 will use it under other compile-time configurations. In this case the 33 All the functions that work with the descriptor-based GPIO interface are 43 With the descriptor-based interface, GPIOs are identified with an opaque, 44 non-forgeable handler that must be obtained through a call to one of the 60 see Documentation/driver-api/gpio/board.rst [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | serial_ir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * serial_ir - Device driver that records pulse- and pause-lengths 6 * (space-lengths) between DDCD event on a serial port. 8 * Copyright (C) 1996,97 Ralph Metzler <rjkm@thp.uni-koeln.de> 13 * Copyright (C) 2016 Sean Young <sean@mess.org> (port to rc-core) 27 #include <media/rc-core.h> 50 static int irq; variable 55 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ 56 static bool txsense; /* 0 = active high, 1 = active low */ 144 /* the register is memory-mapped */ in sinp() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | tlv320adcx140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter 11 - Andrew Davis <afd@ti.com> 14 The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital 15 PDM microphones recording), high-performance audio, analog-to-digital 28 - ti,tlv320adc3140 29 - ti,tlv320adc5140 30 - ti,tlv320adc6140 [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc.c | 4 * Copyright (c) 2003-2007 Jocelyn Mayer 26 #include "hw/irq.h" 32 #include "qemu/main-loop.h" 33 #include "qemu/error-report.h" 44 void ppc_set_irq(PowerPCCPU *cpu, int irq, int level) in ppc_set_irq() argument 46 CPUPPCState *env = &cpu->env; in ppc_set_irq() 52 old_pending = env->pending_interrupts; in ppc_set_irq() 55 env->pending_interrupts |= irq; in ppc_set_irq() 57 env->pending_interrupts &= ~irq; in ppc_set_irq() 60 if (old_pending != env->pending_interrupts) { in ppc_set_irq() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | envelope-detector.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * input +------>-------|+ \ 18 * .-------. | }---. 20 * | dac|-->--|- / | 24 * | irq|------<-------' 26 * '-------' 40 #include <linux/irq.h> 62 int high; member 72 * (one-bit memory) for if the interrupt has triggered since last calling 75 * need to service a possible interrupt flood from the comparator when no-one [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | lp.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * usr/include/linux/lp.h c.1991-1992 James Wiegand 26 #define LP_CAREFUL 0x0080 /* obsoleted -arca */ 38 #define LP_PBUSY 0x80 /* inverted input, active high */ 39 #define LP_PACK 0x40 /* unchanged input, active low */ 40 #define LP_POUTPA 0x20 /* unchanged input, active high */ 41 #define LP_PSELECD 0x10 /* unchanged input, active high */ 42 #define LP_PERRORP 0x08 /* unchanged input, active low */ 44 /* timeout for each character. This is relative to bus cycles -- it 77 #define LPSETIRQ 0x0605 /* call with new IRQ number, [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-xgene-sb.txt | 1 APM X-Gene Standby GPIO controller bindings 6 +-----------------+ 7 | X-Gene standby | 8 | GPIO controller +------ GPIO_0 9 +------------+ | | ... 10 | Parent IRQ | EXT_INT_0 | +------ GPIO_8/EXT_INT_0 12 | (GICv2) +--------------+ +------ GPIO_[N+8]/EXT_INT_N 14 | | EXT_INT_N | +------ GPIO_[N+9] 16 | +--------------+ +------ GPIO_MAX 17 +------------+ +-----------------+ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | adi,ad7606.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf 21 - adi,ad7605-4 22 - adi,ad7606-8 23 - adi,ad7606-6 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | pinctrl-mcp23s08.txt | 2 8-/16-bit I/O expander with serial interface (I2C/SPI) 5 - compatible : Should be 6 - "mcp,mcp23s08" (DEPRECATED) for 8 GPIO SPI version 7 - "mcp,mcp23s17" (DEPRECATED) for 16 GPIO SPI version 8 - "mcp,mcp23008" (DEPRECATED) for 8 GPIO I2C version or 9 - "mcp,mcp23017" (DEPRECATED) for 16 GPIO I2C version of the chip 11 - "microchip,mcp23s08" for 8 GPIO SPI version 12 - "microchip,mcp23s17" for 16 GPIO SPI version 13 - "microchip,mcp23s18" for 16 GPIO SPI version 14 - "microchip,mcp23008" for 8 GPIO I2C version or [all …]
|
/openbmc/linux/arch/m68k/68000/ |
H A D | dragen2.c | 1 // SPDX-License-Identifier: GPL-2.0 53 /* PK3: hardware sleep function pin, active low */ in init_dragen2() 56 PKDATA |= PK(3); /* set pin high */ in init_dragen2() 58 /* PF5: hardware reset function pin, active high */ in init_dragen2() 68 /* INT1 enable (cs8900 IRQ) */ in init_dragen2() 69 PDPOL &= ~PD(1); /* active high signal */ in init_dragen2() 71 PDIRQEN |= PD(1); /* IRQ enabled */ in init_dragen2()
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | ethtool.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 - 11 name: udp-tunnel-type 12 enum-name: 14 entries: [ vxlan, geneve, vxlan-gpe ] 15 - 20 attribute-sets: 21 - 24 - [all …]
|
/openbmc/linux/arch/arm64/kvm/vgic/ |
H A D | vgic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/irq.h> 26 * kvm->lock (mutex) 27 * vcpu->mutex (mutex) 28 * kvm->arch.config_lock (mutex) 29 * its->cmd_lock (mutex) 30 * its->its_lock (mutex) 31 * vgic_cpu->ap_list_lock must be taken with IRQs disabled 32 * kvm->lpi_list_lock must be taken with IRQs disabled 33 * vgic_irq->irq_lock must be taken with IRQs disabled [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | atmel-isi.txt | 2 ---------------------------------- 5 - compatible: must be "atmel,at91sam9g45-isi" or "microchip,sam9x60-isi". 6 - reg: physical base address and length of the registers set for the device. 7 - interrupts: should contain IRQ line for the ISI. 8 - clocks: list of clock specifiers, corresponding to entries in the clock-names 9 property; please refer to clock-bindings.txt. 10 - clock-names: required elements: "isi_clk". 11 - pinctrl-names, pinctrl-0: please refer to pinctrl-bindings.txt. 15 defined in Documentation/devicetree/bindings/media/video-interfaces.txt. 18 ------------------------ [all …]
|
/openbmc/linux/drivers/char/mwave/ |
H A D | 3780i.h | 3 * 3780i.h -- declarations for 3780i.c 23 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 42 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 45 * 10/23/2000 - Alpha Release 61 #define DSP_MsaAddrHigh 0x0006 /* MSP System Address, high word */ 62 #define DSP_MsaDataDSISHigh 0x0008 /* MSA data register: d-store word or high byte of i-stor… 63 #define DSP_MsaDataISLow 0x000A /* MSA data register: low word of i-store */ 69 unsigned char SoftReset:1; /* RW: Soft reset 0=normal, 1=soft reset active */ 96 unsigned char IrqActiveLow:1; /* RW: IRQ active high or low: 0=high, 1=low */ 97 unsigned char IrqPulse:1; /* RW: IRQ pulse or level: 0=level, 1=pulse */ [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/pinctrl/ |
H A D | st,stm32-pinctrl.txt | 5 also provides ability to multiplex and configure the output of various on-chip 10 - compatible: value should be one of the following: 11 (a) "st,stm32f429-pinctrl" 12 (b) "st,stm32f746-pinctrl" 13 - #address-cells: The value of this property must be 1 14 - #size-cells : The value of this property must be 1 15 - ranges : defines mapping between pin controller node (parent) to 16 gpio-bank node (children). 17 - pins-are-numbered: Specify the subnodes are using numbered pinmux to 22 - gpio-controller : Indicates this device is a GPIO controller [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | richtek,rtmv20-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 27 wakeup-source: true 32 enable-gpios: 36 richtek,ld-pulse-delay-us: 38 load current pulse delay in microsecond after strobe pin pulse high. 43 richtek,ld-pulse-width-us: [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | qcom-pdc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 9 #include <linux/irq.h> 18 #include <linux/soc/qcom/irq.h> 45 #define pin_to_hwirq(r, p) ((r)->parent_base + (p) - (r)->pin_base) 88 __pdc_enable_intr(d->hwirq, on); in pdc_enable_intr() 105 * GIC does not handle falling edge or active low. To allow falling edge and 106 * active low interrupts to be handled at GIC, PDC has an inverter that inverts 107 * falling edge into a rising edge and active low into an active high. 110 * Level sensitive active low LOW [all …]
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 #include "isp1760-hcd.h" 22 #include "isp1760-udc.h" 32 #define ISP1760_FLAG_BUS_WIDTH_16 0x00000002 /* 16-bit data bus width */ 35 #define ISP1760_FLAG_DACK_POL_HIGH 0x00000010 /* DACK active high */ 36 #define ISP1760_FLAG_DREQ_POL_HIGH 0x00000020 /* DREQ active high */ 38 #define ISP1760_FLAG_INTR_POL_HIGH 0x00000080 /* Interrupt polarity active high */ 41 #define ISP1760_FLAG_BUS_WIDTH_8 0x00000400 /* 8-bit data bus width */ 53 int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-apalis-ixora-v1.2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2014-2022 Toradex 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 14 #include "imx6qdl-apalis.dtsi" 18 compatible = "toradex,apalis_imx6q-ixora-v1.2", "toradex,apalis_imx6q", 30 stdout-path = "serial0:115200n8"; 34 compatible = "gpio-leds"; [all …]
|