Searched +full:clr +full:- +full:gpios (Results 1 – 7 of 7) sorted by relevance
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-mmio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Bartosz Golaszewski <brgl@bgdev.pl> 15 of set/clear-bit registers. Such controllers are common for glue logic in 16 FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped 17 NAND-style parallel busses. 22 - brcm,bcm6345-gpio [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-mmio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Generic driver for memory-mapped GPIO controllers. 22 * . big-endian notation, just`. .. A bit more sophisticated controllers , 23 * . register the device with -be`. .with a pair of set/clear-bit registers , 29 * .. The expectation is that in at least some cases . ,-~~~-, 30 * .this will be used with roll-your-own ASIC/FPGA .` \ / 38 * . the number of GPIOs is determined by the width of ~ 126 if (gc->be_bits) in bgpio_line2mask() 127 return BIT(gc->bgpio_bits - 1 - line); in bgpio_line2mask() 134 bool dir = !!(gc->bgpio_dir & pinmask); in bgpio_get_set() [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-microchip-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 138 addr->port = pin / priv->bitcount; in sgpio_pin_to_addr() 139 addr->bit = pin % priv->bitcount; in sgpio_pin_to_addr() 144 return bit + port * priv->bitcount; in sgpio_addr_to_pin() 149 return (priv->properties->regoff[rno] + off) * in sgpio_get_addr() 150 regmap_get_reg_stride(priv->regs); in sgpio_get_addr() 159 ret = regmap_read(priv->regs, addr, &val); in sgpio_readl() 171 ret = regmap_write(priv->regs, addr, val); in sgpio_writel() 181 ret = regmap_update_bits(priv->regs, addr, clear | set, set); in sgpio_clrsetbits() 187 int width = priv->bitcount - 1; in sgpio_configure_bitstream() [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ltc2688.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sá <nuno.sa@analog.com> 13 Analog Devices LTC2688 16 channel, 16 bit, +-15V DAC 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2688.pdf 19 - adi,ltc2688 24 vcc-supply: 27 iovcc-supply: 30 vref-supply: [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | mcfgpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 28 return -EINVAL; in __gpio_get_value() 39 return -EINVAL; in __gpio_to_irq() 47 return -EINVAL; in gpio_direction_input() 55 return -EINVAL; in gpio_direction_output() 63 return -EINVAL; in gpio_request() 80 * input; some require a read-modify-write access to change an output, others 82 * GPIOs in a single control area, others have some GPIOs implemented in 130 * read-modify-write to change an output and a GPIO module which has separate 131 * set/clr registers to directly change outputs with a single write access. [all …]
|
/linux/include/linux/gpio/ |
H A D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <linux/pinctrl/pinconf-generic.h> 48 * struct gpio_irq_chip - GPIO interrupt controller 78 * If non-NULL, will be set as the parent of this GPIO interrupt 90 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the 98 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and 113 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell 270 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can 281 * If not %NULL, holds bitmask of GPIOs which are valid to be included 323 * struct gpio_chip - abstract a GPIO controller [all …]
|
/linux/drivers/spi/ |
H A D | spi-lantiq-ssc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011-2015 Daniel Schwierzeck <daniel.schwierzeck@gmail.com> 4 * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de> 142 #define LTQ_SPI_RXCNT_TODO_M 0xFFFF /* Recevie to-do value */ 191 return __raw_readl(spi->regbase + reg); in lantiq_ssc_readl() 197 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_writel() 200 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl() argument 203 u32 val = __raw_readl(spi->regbase + reg); in lantiq_ssc_maskl() 205 val &= ~clr; in lantiq_ssc_maskl() 207 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_maskl() [all …]
|