Home
last modified time | relevance | path

Searched +full:foo +full:- +full:gpios (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.6/Documentation/driver-api/gpio/
Dboard.rst5 This document explains how GPIOs can be assigned to given devices and functions.
7 Note that it only applies to the new descriptor-based interface. For a
8 description of the deprecated integer-based GPIO interface please refer to
15 Kconfig. Then, how GPIOs are mapped depends on what the platform uses to
20 -----------
21 GPIOs can easily be mapped to devices and functions in the device tree. The
22 exact way to do it depends on the GPIO controller providing the GPIOs, see the
25 GPIOs mappings are defined in the consumer device's node, in a property named
26 <function>-gpios, where <function> is the function the driver will request
30 compatible = "acme,foo";
[all …]
/linux-6.6/arch/arm/boot/dts/broadcom/
Dbcm2837-rpi-3-b-plus.dts1 // 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 …]
Dbcm2835-rpi-zero-w.dts1 // 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 …]
Dbcm2837-rpi-3-b.dts1 // 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 …]
Dbcm2837-rpi-zero-2-w.dts1 // 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 …]
Dbcm2836-rpi-2-b.dts1 // 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 …]
Dbcm2835-rpi-b-plus.dts1 // 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 …]
Dbcm2835-rpi-a-plus.dts1 // 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 …]
Dbcm2837-rpi-3-a-plus.dts1 // 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 …]
Dbcm2711-rpi-cm4-io.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "bcm2711-rpi-cm4.dtsi"
4 #include "bcm283x-rpi-led-deprecated.dtsi"
5 #include "bcm283x-rpi-usb-host.dtsi"
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",
105 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
109 led-pwr {
[all …]
Dbcm2711-rpi-4-b.dts1 // 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"
10 compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
15 stdout-path = "serial1:115200n8";
18 sd_io_1v8_reg: regulator-sd-io-1v8 {
19 compatible = "regulator-gpio";
[all …]
Dbcm2835-rpi-b.dts1 // 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 …]
Dbcm2835-rpi-zero.dts1 // 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 …]
Dbcm2835-rpi-b-rev2.dts1 // 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 …]
Dbcm2835-rpi-a.dts1 // 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 …]
Dbcm2837-rpi-cm3-io3.dts1 // 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 …]
Dbcm2835-rpi-cm1-io1.dts1 // 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-6.6/Documentation/devicetree/bindings/gpio/
Dgpio.txt4 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-6.6/Documentation/devicetree/bindings/clock/
Dmaxim,max9485.txt5 - 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-6.6/Documentation/driver-api/
Dpin-control.rst9 - 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-6.6/Documentation/devicetree/bindings/display/panel/
Dsamsung,s6d16d0.yaml1 # 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#
21 reset-gpios: true
23 vdd1-supply:
27 - compatible
28 - reg
29 - vdd1-supply
[all …]
Dsony,acx424akp.yaml1 # 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
26 reset-gpios: true
27 vddi-supply:
29 enforce-video-mode: true
[all …]
Dtpo,tpg110.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
11 - Thierry Reding <thierry.reding@gmail.com>
20 self-describing.
22 +--------+
23 SPI -> | TPO | -> physical display
24 RGB -> | TPG110 |
25 +--------+
[all …]
/linux-6.6/Documentation/devicetree/bindings/iio/amplifiers/
Dadi,hmc425a.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: HMC425A 6-bit Digital Step Attenuator
10 - Michael Hennerich <michael.hennerich@analog.com>
14 HMC425A 0.5 dB LSB GaAs MMIC 6-BIT DIGITAL POSITIVE CONTROL ATTENUATOR, 2.2 - 8.0 GHz
15 https://www.analog.com/media/en/technical-documentation/data-sheets/hmc425A.pdf
20 - adi,hmc425a
22 vcc-supply: true
24 ctrl-gpios:
[all …]
/linux-6.6/drivers/gpio/
Dgpiolib-of.c1 // 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.
50 * Number of gpios defined in property,
51 * -EINVAL for an incorrectly formed gpios property, or
[all …]

12