/linux/Documentation/admin-guide/gpio/ |
H A D | gpio-virtuser.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 7 that request GPIOs and then control their behavior over debugfs. Virtual 8 consumer devices can be instantiated from device-tree or over configfs. 10 A virtual consumer uses the driver-facing GPIO APIs and allows to cover it with 11 automated tests driven by user-space. The GPIOs are requested using 12 ``gpiod_get_array()`` and so we support multiple GPIOs per connector ID. 15 ----------------------- 17 The gpio-consumer module registers a configfs subsystem called 18 ``'gpio-virtuser'``. For details of the configfs filesystem, please refer to 25 **Group:** ``/config/gpio-virtuser`` [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. 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 24 compatible = "acme,foo"; 26 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */ 30 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2837-rpi-3-b-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-lan7515.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 8 #include "bcm283x-rpi-wifi-bt.dtsi" 11 compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837"; 16 stdout-path = "serial1:115200n8"; 26 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2835-rpi-zero-w.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2835-rpi.dtsi" 9 #include "bcm2835-rpi-common.dtsi" 10 #include "bcm283x-rpi-led-deprecated.dtsi" 11 #include "bcm283x-rpi-usb-otg.dtsi" 12 #include "bcm283x-rpi-wifi-bt.dtsi" 15 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; 25 stdout-path = "serial1:115200n8"; 30 shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2837-rpi-3-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-smsc9514.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 8 #include "bcm283x-rpi-wifi-bt.dtsi" 11 compatible = "raspberrypi,3-model-b", "brcm,bcm2837"; 16 stdout-path = "serial1:115200n8"; 26 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | bcm2837-rpi-zero-2-w.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2836-rpi.dtsi" 9 #include "bcm283x-rpi-led-deprecated.dtsi" 10 #include "bcm283x-rpi-usb-otg.dtsi" 11 #include "bcm283x-rpi-wifi-bt.dtsi" 14 compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837"; 24 stdout-path = "serial1:115200n8"; 29 shutdown-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 38 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2836-rpi-2-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-smsc9514.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,2-model-b", "brcm,bcm2836"; 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low 28 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2835-rpi-b-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9514.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf 23 * RPI-BPLUS sheet 1 [all …]
|
H A D | bcm2835-rpi-a-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,model-a-plus", "brcm,bcm2835"; 24 * "FOO" = GPIO line named "FOO" on the schematic 25 * "FOO_N" = GPIO line named "FOO" on schematic, active low 27 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2837-rpi-3-a-plus.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2836-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-usb-host.dtsi" 7 #include "bcm283x-rpi-wifi-bt.dtsi" 10 compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837"; 15 stdout-path = "serial1:115200n8"; 26 compatible = "raspberrypi,firmware-gpio"; 27 gpio-controller; [all …]
|
H A D | bcm2711-rpi-4-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2711-rpi.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-usb-peripheral.dtsi" 7 #include "bcm283x-rpi-wifi-bt.dtsi" 8 #include <dt-bindings/leds/common.h> 11 compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; 16 stdout-path = "serial1:115200n8"; 19 cam1_reg: regulator-cam1 { [all …]
|
H A D | bcm2835-rpi-b.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 26 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2835-rpi-zero.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 8 #include "bcm2835-rpi.dtsi" 9 #include "bcm2835-rpi-common.dtsi" 10 #include "bcm283x-rpi-led-deprecated.dtsi" 11 #include "bcm283x-rpi-usb-otg.dtsi" 14 compatible = "raspberrypi,model-zero", "brcm,bcm2835"; 28 * "FOO" = GPIO line named "FOO" on the schematic 29 * "FOO_N" = GPIO line named "FOO" on schematic, active low 31 gpio-line-names = "ID_SDA", [all …]
|
H A D | bcm2835-rpi-b-rev2.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-smsc9512.dtsi" 8 #include "bcm283x-rpi-usb-host.dtsi" 11 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835"; 22 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf 26 * "FOO" = GPIO line named "FOO" on the schematic [all …]
|
H A D | bcm2835-rpi-a.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "bcm2835-rpi.dtsi" 5 #include "bcm2835-rpi-common.dtsi" 6 #include "bcm283x-rpi-led-deprecated.dtsi" 7 #include "bcm283x-rpi-usb-host.dtsi" 10 compatible = "raspberrypi,model-a", "brcm,bcm2835"; 21 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 25 * "FOO" = GPIO line named "FOO" on the schematic 26 * "FOO_N" = GPIO line named "FOO" on schematic, active low [all …]
|
H A D | bcm2711-rpi-cm4-io.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include <dt-bindings/leds/common.h> 4 #include "bcm2711-rpi-cm4.dtsi" 5 #include "bcm283x-rpi-led-deprecated.dtsi" 6 #include "bcm283x-rpi-usb-host.dtsi" 26 * "FOO" = GPIO line named "FOO" on the schematic 27 * "FOO_N" = GPIO line named "FOO" on schematic, active low 29 gpio-line-names = "ID_SDA", 110 quartz-load-femtofarads = <7000>; [all …]
|
H A D | bcm2837-rpi-cm3-io3.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2837-rpi-cm3.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,3-compute-module", "brcm,bcm2837"; 16 * "FOO" = GPIO line named "FOO" on the schematic 17 * "FOO_N" = GPIO line named "FOO" on schematic, active low 19 gpio-line-names = "GPIO0", 75 pinctrl-names = "default"; 76 pinctrl-0 = <&gpioout &alt0>; [all …]
|
H A D | bcm2835-rpi-cm1-io1.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "bcm2835-rpi-cm1.dtsi" 4 #include "bcm283x-rpi-usb-host.dtsi" 7 compatible = "raspberrypi,compute-module", "brcm,bcm2835"; 16 * "FOO" = GPIO line named "FOO" on the schematic 17 * "FOO_N" = GPIO line named "FOO" on schematic, active low 19 gpio-line-names = "GPIO0", 76 pinctrl-names = "default"; 77 pinctrl-0 = <&gpioout &alt0>; [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio.txt | 4 1) gpios property 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 9 for compatibility reasons (resolving to the "gpios" property), it is not allowed 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 15 cases should they contain more than one. If your device uses several GPIOs with 17 meaningful name. The only case where an array of GPIOs is accepted is when 18 several GPIOs serve the same function (e.g. a parallel data line). 20 The exact purpose of each gpios property must be documented in the device tree [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | maxim,max9485.txt | 5 - MAX9485_MCLKOUT: A gated, buffered output of the input clock of 27 MHz 6 - MAX9485_CLKOUT: A PLL that can be configured to 16 different discrete 8 - MAX9485_CLKOUT[1,2]: Two gated outputs for MAX9485_CLKOUT 14 - compatible: "maxim,max9485" 15 - clocks: Input clock, must provide 27.000 MHz 16 - clock-names: Must be set to "xclk" 17 - #clock-cells: From common clock binding; shall be set to 1 20 - reset-gpios: GPIO descriptor connected to the #RESET input pin 21 - vdd-supply: A regulator node for Vdd 22 - clock-output-names: Name of output clocks, as defined in common clock [all …]
|
/linux/Documentation/driver-api/ |
H A D | pin-control.rst | 9 - Enumerating and naming controllable pins 11 - Multiplexing of pins, pads, fingers (etc) see below for details 13 - Configuration of pins, pads, fingers (etc), such as software-controlled 14 biasing and driving mode specific pins, such as pull-up, pull-down, open drain, 17 Top-level interface 22 - A PIN CONTROLLER is a piece of hardware, usually a set of registers, that 26 - PINS are equal to pads, fingers, balls or whatever packaging input or 30 be sparse - i.e. there may be gaps in the space with numbers where no 60 .. code-block:: c 75 .name = "foo", [all …]
|
/linux/drivers/gpio/ |
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 …]
|
/linux/Documentation/devicetree/bindings/display/panel/ |
H A D | samsung,s6d16d0.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 - $ref: panel-common.yaml# 23 reset-gpios: true 25 vdd1-supply: 29 - compatible 30 - reg 31 - vdd1-supply [all …]
|
H A D | sony,acx424akp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: panel-common.yaml# 23 - sony,acx424akp 24 - sony,acx424akm 29 reset-gpios: true 30 vddi-supply: 32 enforce-video-mode: true [all …]
|
/linux/Documentation/devicetree/bindings/iio/amplifiers/ |
H A D | adi,hmc425a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 15 ADRF5750 2 dB LSB, 4-Bit, Silicon Digital Attenuator, 10 MHz to 60 GHz 16 https://www.analog.com/media/en/technical-documentation/data-sheets/adrf5740.pdf 18 HMC425A 0.5 dB LSB GaAs MMIC 6-BIT DIGITAL POSITIVE CONTROL ATTENUATOR, 2.2 - 8.0 GHz 19 https://www.analog.com/media/en/technical-documentation/data-sheets/hmc425A.pdf 21 HMC540S 1 dB LSB Silicon MMIC 4-Bit Digital Positive Control Attenuator, 0.1 - 8 GHz 22 https://www.analog.com/media/en/technical-documentation/data-sheets/hmc540s.pdf [all …]
|