Home
last modified time | relevance | path

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

12

/Linux-v5.4/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
9 gpio-legacy.txt (actually, there is no real mapping possible with the old
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
[all …]
/Linux-v5.4/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-v5.4/arch/arm/boot/dts/
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-usb-host.dtsi"
9 compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837";
14 stdout-path = "serial1:115200n8";
24 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
29 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
33 wifi_pwrseq: wifi-pwrseq {
[all …]
Dbcm2836-rpi-2-b.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2836-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9514.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
9 compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
19 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
24 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
25 default-state = "keep";
26 linux,default-trigger = "default-on";
[all …]
Dbcm2835-rpi-zero-w.dts1 // SPDX-License-Identifier: GPL-2.0+
6 /dts-v1/;
8 #include "bcm2835-rpi.dtsi"
9 #include "bcm283x-rpi-usb-otg.dtsi"
12 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
22 stdout-path = "serial1:115200n8";
27 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
31 wifi_pwrseq: wifi-pwrseq {
32 compatible = "mmc-pwrseq-simple";
33 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
[all …]
Dbcm2835-rpi-b-plus.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9514.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
9 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
19 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
24 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
25 default-state = "keep";
26 linux,default-trigger = "default-on";
[all …]
Dbcm2835-rpi-a-plus.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-usb-host.dtsi"
8 compatible = "raspberrypi,model-a-plus", "brcm,bcm2835";
18 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
23 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
24 default-state = "keep";
25 linux,default-trigger = "default-on";
36 * "FOO" = GPIO line named "FOO" on the schematic
[all …]
Dbcm2837-rpi-3-b.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2836-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9514.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
9 compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
14 stdout-path = "serial1:115200n8";
24 gpios = <&expgpio 2 GPIO_ACTIVE_HIGH>;
28 wifi_pwrseq: wifi-pwrseq {
29 compatible = "mmc-pwrseq-simple";
[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-usb-host.dtsi"
8 compatible = "raspberrypi,3-model-a-plus", "brcm,bcm2837";
13 stdout-path = "serial1:115200n8";
23 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
28 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
35 compatible = "raspberrypi,firmware-gpio";
36 gpio-controller;
[all …]
Dbcm2835-rpi-b.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9512.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
9 compatible = "raspberrypi,model-b", "brcm,bcm2835";
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
26 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
31 * "FOO" = GPIO line named "FOO" on the schematic
32 * "FOO_N" = GPIO line named "FOO" on schematic, active low
[all …]
Dbcm2835-rpi-zero.dts1 // SPDX-License-Identifier: GPL-2.0+
6 /dts-v1/;
8 #include "bcm2835-rpi.dtsi"
9 #include "bcm283x-rpi-usb-otg.dtsi"
12 compatible = "raspberrypi,model-zero", "brcm,bcm2835";
22 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
33 * "FOO" = GPIO line named "FOO" on the schematic
34 * "FOO_N" = GPIO line named "FOO" on schematic, active low
36 gpio-line-names = "ID_SDA",
93 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
[all …]
Dbcm2835-rpi-b-rev2.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9512.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
9 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835";
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
26 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf
31 * "FOO" = GPIO line named "FOO" on the schematic
32 * "FOO_N" = GPIO line named "FOO" on schematic, active low
[all …]
Dbcm2835-rpi-a.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-usb-host.dtsi"
8 compatible = "raspberrypi,model-a", "brcm,bcm2835";
18 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
25 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
30 * "FOO" = GPIO line named "FOO" on the schematic
31 * "FOO_N" = GPIO line named "FOO" on schematic, active low
33 gpio-line-names = "SDA0",
[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";
17 * "FOO" = GPIO line named "FOO" on the schematic
18 * "FOO_N" = GPIO line named "FOO" on schematic, active low
20 gpio-line-names = "GPIO0",
76 pinctrl-0 = <&gpioout &alt0>;
80 hpd-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
[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";
17 * "FOO" = GPIO line named "FOO" on the schematic
18 * "FOO_N" = GPIO line named "FOO" on schematic, active low
20 gpio-line-names = "GPIO0",
77 pinctrl-0 = <&gpioout &alt0>;
81 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
[all …]
/Linux-v5.4/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 provice 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-v5.4/Documentation/driver-api/
Dpinctl.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/down, open drain,
17 Top-level interface
22 - A pin controller is a piece of hardware, usually a set of registers, that
28 - PINS are equal to pads, fingers, balls or whatever packaging input or
32 be sparse - i.e. there may be gaps in the space with numbers where no
75 .name = "foo",
98 See for example arch/arm/mach-u300/Kconfig for an example.
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/display/panel/
Dsamsung,s6d16d0.txt4 - compatible: should be:
6 - reg: the virtual channel number of a DSI peripheral
7 - vdd1-supply: I/O voltage supply
8 - reset-gpios: a GPIO spec for the reset pin (active low)
12 media/video-interfaces.txt. This node should describe panel's video bus.
21 vdd1-supply = <&foo>;
22 reset-gpios = <&foo_gpio 0 GPIO_ACTIVE_LOW>;
26 remote-endpoint = <&dsi_out>;
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-v5.4/Documentation/devicetree/bindings/usb/
Dusb251xb.txt1 Microchip USB 2.0 Hi-Speed Hub Controller
4 Hi-Speed Controller.
7 - compatible : Should be "microchip,usb251xb" or one of the specific types:
11 - reg : I2C address on the selected bus (default is <0x2C>)
14 - reset-gpios : Should specify the gpio for hub reset
15 - skip-config : Skip Hub configuration, but only send the USB-Attach command
16 - vendor-id : Set USB Vendor ID of the hub (16 bit, default is 0x0424)
17 - product-id : Set USB Product ID of the hub (16 bit, default depends on type)
18 - device-id : Set USB Device ID of the hub (16 bit, default is 0x0bb3)
19 - language-id : Set USB Language ID (16 bit, default is 0x0000)
[all …]
/Linux-v5.4/drivers/gpio/
Dgpiolib-of.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2007-2008 MontaVista Software, Inc.
24 #include "gpiolib-of.h"
40 snprintf(propname, sizeof(propname), "%s-%s", in of_gpio_get_count()
46 ret = of_gpio_named_count(dev->of_node, propname); in of_gpio_get_count()
50 return ret ? ret : -ENOENT; in of_gpio_get_count()
57 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
58 chip->of_xlate && in of_gpiochip_match_node_and_xlate()
59 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
74 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/iio/pressure/
Dbmp085.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andreas Klinger <ak@it-klinger.de>
16 https://www.bosch-sensortec.com/bst/products/all_products/bmp180
17 https://www.bosch-sensortec.com/bst/products/all_products/bmp280
18 https://www.bosch-sensortec.com/bst/products/all_products/bme280
23 - bosch,bmp085
24 - bosch,bmp180
25 - bosch,bmp280
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/
Dexample-schema.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 # All the top-level keys are standard json-schema keywords except for
10 $id: "http://devicetree.org/schemas/example-schema.yaml#"
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
17 - Rob Herring <robh@kernel.org>
20 A more detailed multi-line description of the binding.
44 - items:
51 - enum:
[all …]
/Linux-v5.4/arch/arm64/boot/dts/hisilicon/
Dhi6220-hikey.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
11 #include "hikey-pinctrl.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
16 compatible = "hisilicon,hi6220-hikey", "hisilicon,hi6220";
26 stdout-path = "serial3:115200n8";
32 * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using
33 * 0x05f0,1000 - 0x05f0,1fff: Reboot reason
34 * 0x06df,f000 - 0x06df,ffff: Mailbox message data
35 * 0x0740,f000 - 0x0740,ffff: MCU firmware section
[all …]
Dhi3660-hikey960.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
12 #include "hikey960-pinctrl.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
19 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
34 stdout-path = "serial6:115200n8";
43 reserved-memory {
44 #address-cells = <2>;
[all …]

12