/linux/drivers/gpio/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 You only need to enable this if you also want to enable 21 int "Maximum number of GPIOs for fast path" 50 this symbol, but new drivers should use the generic gpio-regmap 58 These checks help ensure that GPIOs have been properly initialized 60 non-sleeping contexts. They can make bitbanged serial protocols 69 Say Y here to add the legacy sysfs interface for GPIOs. 76 bool "Enable legacy functionalities of the sysfs interface" 80 Say Y here if you want to enable the legacy, global GPIO 81 numberspace-based functionalities of the sysfs interface. [all …]
|
H A D | gpiolib-of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 26 #include "gpiolib-of.h" 29 * This is Linux-specific flags. By default controllers' and Linux' mapping 31 * Linux-specific in their .xlate callback. Though, 1:1 mapping is recommended. 44 * of_gpio_named_count() - Count GPIOs for a device 45 * @np: device node to count GPIOs for 48 * The function returns the count of GPIOs specified for a node. 52 * Either number of GPIOs defined in the property, or 53 * * %-EINVAL for an incorrectly formed "gpios" property, or [all …]
|
H A D | gpio-winbond.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 /* global chip registers */ 132 unsigned long gpios; member 145 return -EBUSY; in winbond_sio_enter() 149 * in order for chip to enter the "Extended Function Mode" in winbond_sio_enter() 206 * struct winbond_gpio_port_conflict - possibly conflicting device information 209 * is located (or WB_SIO_DEV_NONE - don't select any 226 * struct winbond_gpio_info - information about a particular GPIO port (device) 229 * @enablereg: port enable bit register number 230 * @enablebit: index of a port enable bit [all …]
|
H A D | gpio-mpc5200.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/gpio/legacy-of-mm-gpiochip.h> 29 * GPIO LIB API implementation for wakeup GPIOs. 31 * There's a maximum of 8 wakeup GPIOs. Which of these are available 34 * 0 -> GPIO_WKUP_7 35 * 1 -> GPIO_WKUP_6 36 * 2 -> PSC6_1 37 * 3 -> PSC6_0 38 * 4 -> ETH_17 39 * 5 -> PSC3_9 [all …]
|
H A D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2007 David Brownell 43 #define BINTEN 0x8 /* GPIO Interrupt Per-Bank Enable Register */ 50 struct davinci_gpio_controller *chip; member 55 struct gpio_chip chip; member 73 /*--------------------------------------------------------------------------*/ 75 /* board setup code *MUST* setup pinmux and enable the GPIO clock. */ 76 static inline int __davinci_direction(struct gpio_chip *chip, in __davinci_direction() argument 79 struct davinci_gpio_controller *d = gpiochip_get_data(chip); in __davinci_direction() 86 g = d->regs[bank]; in __davinci_direction() [all …]
|
H A D | gpio-rtd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 * struct rtd_gpio_info - Specific GPIO register information 33 * @num_gpios: The number of GPIOs 37 * @ie_offset: Offset for GPIO interrupt enable registers 75 *reg_offset = info->deb_offset[offset / 8]; in rtd_gpio_get_deb_setval() 77 return info->deb_val[deb_index]; in rtd_gpio_get_deb_setval() 83 *reg_offset = info->deb_offset[0]; in rtd1295_misc_gpio_get_deb_setval() 85 return info->deb_val[deb_index]; in rtd1295_misc_gpio_get_deb_setval() 91 *reg_offset = info->deb_offset[0]; in rtd1295_iso_gpio_get_deb_setval() 93 return info->deb_val[deb_index]; in rtd1295_iso_gpio_get_deb_setval() [all …]
|
H A D | gpio-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2003-2005 Nokia Corporation 9 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 27 #include <linux/platform_data/gpio-omap.h> 61 struct gpio_chip chip; member 78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 84 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) 91 struct gpio_chip *chip = irq_data_get_irq_chip_data(d); in omap_irq_data_get_bank() local 92 return gpiochip_get_data(chip); in omap_irq_data_get_bank() 112 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() [all …]
|
H A D | TODO | 1 This is a place for planning the ongoing long-term work in the GPIO 9 to move away from the global GPIO numberspace and toward a descriptor-based 19 establish the numberspace at compile-time, making it hard to add any numbers 20 in the middle (such as if you missed a pin on a chip) without the numberspace 27 The runtime-assigned GPIO numberspace (what you get if you assign the GPIO 28 base as -1 in struct gpio_chip) has also became unpredictable due to factors 29 such as probe ordering and the introduction of -EPROBE_DEFER making probe 38 - Convert all GPIO device drivers to only #include <linux/gpio/driver.h> 40 - Convert all consumer drivers to only #include <linux/gpio/consumer.h> 42 - Convert all machine descriptors in "boardfiles" to only [all …]
|
/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adf4377.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 11 - Dragos Bogdan <dragos.bogdan@analog.com> 14 The ADF4377 is a high performance, ultralow jitter, dual output integer-N 25 - adi,adf4377 26 - adi,adf4378 31 spi-max-frequency: 37 clock-names: [all …]
|
/linux/drivers/video/fbdev/via/ |
H A D | via-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/via-core.h> 14 #include "via-gpio.h" 17 * The ports we know about. Note that the port-25 gpios are not 30 .vg_name = "VGPIO0", /* Guess - not in datasheet */ 70 * This structure controls the active GPIOs, which may be a subset 84 static int via_gpio_set(struct gpio_chip *chip, unsigned int nr, int value) in via_gpio_set() argument 86 struct viafb_gpio_cfg *cfg = gpiochip_get_data(chip); in via_gpio_set() 91 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_set() 92 gpio = cfg->active_gpios[nr]; in via_gpio_set() [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | sony,imx214.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: Sony 1/3.06-Inch 13.13MP CMOS Digital Image Sensor 10 - Ricardo Ribalda <ribalda@kernel.org> 13 The Sony IMX214 is a 1/3.06-inch CMOS active pixel digital image sensor with 15 interface. Image data is sent through MIPI CSI-2, through 2 or 4 lanes at a 19 - $ref: /schemas/media/video-interface-devices.yaml# 27 - 0x10 28 - 0x1a [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | richtek,rt6245-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rt6245-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RT6245 is a high-performance, synchronous step-down converter 18 - $ref: regulator.yaml# 23 - richtek,rt6245 28 enable-gpios: 30 A connection of the chip 'enable' gpio line. If not provided, [all …]
|
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> 14 It is used to drive laser diode. There're two signals for chip controls 15 (Enable/Fail), Enable pin to turn chip on, and Fail pin as fault indication. 27 wakeup-source: true 32 enable-gpios: 33 description: A connection of the 'enable' gpio line. [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | nuvoton,nau8315.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: NAU8315/NAU8318 Mono Class-D Amplifier 10 - David Lin <CTLIN0@nuvoton.com> 13 - $ref: dai-common.yaml# 18 - nuvoton,nau8315 19 - nuvoton,nau8318 21 '#sound-dai-cells': 24 enable-gpios: [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | melfas_mip4.txt | 4 - compatible: must be "melfas,mip4_ts" 5 - reg: I2C slave address of the chip (0x48 or 0x34) 6 - interrupts: interrupt to which the chip is connected 9 - ce-gpios: GPIO connected to the CE (chip enable) pin of the chip 16 interrupt-parent = <&gpio>; 18 ce-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
H A D | cypress,cy8ctma340.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Javier Martinez Canillas <javier@dowhile0.org> 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: touchscreen.yaml# 26 - const: cypress,cy8ctma340 27 - const: cypress,cy8ctst341 28 - const: cypress,cyttsp-spi 31 - const: cypress,cyttsp-i2c [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | nxp,88w8987-bt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/nxp,88w8987-bt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 This binding describes UART-attached NXP bluetooth chips. These chips 11 are dual-radio chips supporting WiFi and Bluetooth. The bluetooth 12 works on standard H4 protocol over 4-wire UART. The RTS and CTS lines 13 are used during FW download. To enable power save mode, the host 14 asserts break signal over UART-TX line to put the chip into power save 15 state. De-asserting break wakes up the BT chip. [all …]
|
H A D | realtek,bluetooth.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vasily Khoruzhick <anarsoul@gmail.com> 11 - Alistair Francis <alistair@alistair23.me> 14 RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS is a WiFi + BT chip. WiFi part 22 - enum: 23 - realtek,rtl8723bs-bt 24 - realtek,rtl8723cs-bt 25 - realtek,rtl8723ds-bt [all …]
|
H A D | amlogic,w155s2-bt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/net/bluetooth/amlogic,w155s2-bt.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 The W155S2 is an Amlogic Bluetooth and Wi-Fi combo chip. It works on 12 the standard H4 protocol via a 4-wire UART interface, with baud rates 16 - Yang Li <yang.li@amlogic.com> 21 - items: 22 - enum: 23 - amlogic,w265s1-bt [all …]
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | analogix,anx7625.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Xin Ji <xji@analogixsemi.com> 14 The ANX7625 is an ultra-low power 4K Mobile HD Transmitter 28 enable-gpios: 29 description: used for power on chip control, POWER_EN pin D2. 32 reset-gpios: 33 description: used for reset chip control, RESET_N pin B7. 36 vdd10-supply: [all …]
|
/linux/Documentation/devicetree/bindings/mtd/ |
H A D | atmel-nand.txt | 4 Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt). 11 - compatible: should be one of the following 12 "atmel,at91rm9200-nand-controller" 13 "atmel,at91sam9260-nand-controller" 14 "atmel,at91sam9261-nand-controller" 15 "atmel,at91sam9g45-nand-controller" 16 "atmel,sama5d3-nand-controller" 17 "microchip,sam9x60-nand-controller" 18 - ranges: empty ranges property to forward EBI ranges definitions. 19 - #address-cells: should be set to 2. [all …]
|
/linux/drivers/mfd/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 36 bool "Altera Arria10 DevKit System Resource chip" 41 Support for the Altera Arria10 DevKit MAX5 System Resource chip 57 tristate "Active-semi ACT8945A" 62 Support for the ACT8945A PMIC from Active-semi. This device 63 features three step-down DC/DC converters and four low-dropout 79 sun4i-gpadc-iio and the hwmon driver iio_hwmon. 82 called sun4i-gpadc. 99 Say yes here to enable SMpro driver support for Ampere's Altra 113 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down [all …]
|
/linux/Documentation/driver-api/gpio/ |
H A D | board.rst | 5 This document explains how GPIOs can be assigned to given devices and functions. 7 All platforms can enable the GPIO library, but if the platform strictly 9 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to 14 ----------- 15 GPIOs can easily be mapped to devices and functions in the device tree. The 16 exact way to do it depends on the GPIO controller providing the GPIOs, see the 19 GPIOs mappings are defined in the consumer device's node, in a property named 20 <function>-gpios, where <function> is the function the driver will request 26 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */ 30 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; [all …]
|
/linux/Documentation/devicetree/bindings/misc/ |
H A D | ifm-csi.txt | 4 - compatible: "ifm,o2d-csi" 5 - reg: specifies sensor chip select number and associated address range 6 - interrupts: external interrupt line number and interrupt sense mode 8 - gpios: three gpio-specifiers for "capture", "reset" and "master enable" 9 GPIOs (strictly in this order). 10 - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor 12 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25) 13 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16) 14 - ifm,csi-wait-cycles: sensor bus wait cycles 17 - ifm,csi-byte-swap: if this property is present, the byte swapping on [all …]
|
/linux/Documentation/devicetree/bindings/extcon/ |
H A D | extcon-max3355.txt | 1 Maxim Integrated MAX3355 USB OTG chip 2 ------------------------------------- 4 MAX3355 integrates a charge pump and comparators to enable a system with an 5 integrated USB OTG dual-role transceiver to function as a USB OTG dual-role 9 - compatible: should be "maxim,max3355"; 10 - maxim,shdn-gpios: should contain a phandle and GPIO specifier for the GPIO pin 12 - id-gpios: should contain a phandle and GPIO specifier for the GPIO pin 17 usb-otg { 19 maxim,shdn-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; 20 id-gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>;
|