Home
last modified time | relevance | path

Searched +full:dev +full:- +full:a +full:- +full:active +full:- +full:pins (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/Documentation/driver-api/gpio/
Dboard.rst7 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
20 -----------
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
32 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */
36 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
39 Properties named <function>-gpio are also considered valid and old bindings use
48 red = gpiod_get_index(dev, "led", 0, GPIOD_OUT_HIGH);
[all …]
/kernel/linux/linux-6.6/Documentation/driver-api/gpio/
Dboard.rst7 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
20 -----------
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
32 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */
36 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
39 Properties named <function>-gpio are also considered valid and old bindings use
48 red = gpiod_get_index(dev, "led", 0, GPIOD_OUT_HIGH);
49 green = gpiod_get_index(dev, "led", 1, GPIOD_OUT_HIGH);
[all …]
/kernel/linux/linux-5.10/drivers/phy/motorola/
Dphy-cpcap-usb.c6 * board-mapphone-usb.c and cpcap-usb-det.c:
7 * Copyright (C) 2007 - 2011 Motorola, Inc.
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 #include <linux/mfd/motorola-cpcap.h>
124 struct device *dev; member
127 struct pinctrl *pins; member
135 atomic_t active; member
144 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
148 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
155 otg->host = host; in cpcap_usb_phy_set_host()
[all …]
/kernel/linux/linux-6.6/drivers/phy/motorola/
Dphy-cpcap-usb.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * board-mapphone-usb.c and cpcap-usb-det.c:
8 * Copyright (C) 2007 - 2011 Motorola, Inc.
26 #include <linux/mfd/motorola-cpcap.h>
116 struct device *dev; member
119 struct pinctrl *pins; member
127 atomic_t active; member
136 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
140 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
147 otg->host = host; in cpcap_usb_phy_set_host()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dsamsung-pinctrl.txt3 Samsung's ARM based SoC's integrates a GPIO and Pin mux/config hardware
4 controller. It controls the input/output settings on the available pads/pins
6 on-chip controllers onto these pads.
9 - compatible: should be one of the following.
10 - "samsung,s3c2412-pinctrl": for S3C2412-compatible pin-controller,
11 - "samsung,s3c2416-pinctrl": for S3C2416-compatible pin-controller,
12 - "samsung,s3c2440-pinctrl": for S3C2440-compatible pin-controller,
13 - "samsung,s3c2450-pinctrl": for S3C2450-compatible pin-controller,
14 - "samsung,s3c64xx-pinctrl": for S3C64xx-compatible pin-controller,
15 - "samsung,s5pv210-pinctrl": for S5PV210-compatible pin-controller,
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
Dpinctrl-intel.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 * struct intel_pingroup - Description about group of pins
28 * @pins: All pins in this group
29 * @npins: Number of pins in this groups
30 * @mode: Native mode in which the group is muxed out @pins. Used if @modes
32 * @modes: If not %NULL this will hold mode for each pin in @pins
36 const unsigned int *pins; member
43 * struct intel_function - Description about a function
55 * struct intel_padgroup - Hardware pad group information
62 * If pad groups of a community are not the same size, use this structure
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dqcom-msm8974-sony-xperia-castor.dts1 #include "qcom-msm8974pro.dtsi"
2 #include "qcom-pm8841.dtsi"
3 #include "qcom-pm8941.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 compatible = "sony,xperia-castor", "qcom,msm8974";
17 stdout-path = "serial0:115200n8";
20 gpio-keys {
21 compatible = "gpio-keys";
[all …]
Dgemini-dlink-dns-313.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for D-Link DNS-313 1-Bay Network Storage Enclosure
6 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/thermal/thermal.h>
13 model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
14 compatible = "dlink,dns-313", "cortina,gemini";
15 #address-cells = <1>;
16 #size-cells = <1>;
19 /* 64 MB SDRAM in a Nanya NT5DS32M16BS-6K package */
[all …]
Dgemini-dlink-dir-685.dts2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router
5 /dts-v1/;
8 #include <dt-bindings/input/input.h>
11 model = "D-Link DIR-685 Xtreme N Storage Router";
12 compatible = "dlink,dir-685", "cortina,gemini";
13 #address-cells = <1>;
14 #size-cells = <1>;
17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */
23 bootargs = "console=ttyS0,19200n8 root=/dev/sda1 rw rootwait consoleblank=300";
24 stdout-path = "uart0:19200n8";
[all …]
/kernel/linux/linux-5.10/drivers/auxdisplay/
Dpanel.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
8 * connected to a parallel printer port.
10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit
11 * serial module compatible with Samsung's KS0074. The pins may be connected in
14 * The keypad consists in a matrix of push buttons connecting input pins to
15 * data output pins or to the ground. The combinations have to be hard-coded
22 * - the initialization/deinitialization process is very dirty and should
[all …]
/kernel/linux/linux-6.6/drivers/auxdisplay/
Dpanel.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
8 * connected to a parallel printer port.
10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit
11 * serial module compatible with Samsung's KS0074. The pins may be connected in
14 * The keypad consists in a matrix of push buttons connecting input pins to
15 * data output pins or to the ground. The combinations have to be hard-coded
22 * - the initialization/deinitialization process is very dirty and should
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-amd.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Contact Information: Nehal Shah <Nehal-bakulchandra.Shah@amd.com>
10 * Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
33 #include <linux/pinctrl/pinconf-generic.h>
36 #include "pinctrl-utils.h"
37 #include "pinctrl-amd.h"
45 raw_spin_lock_irqsave(&gpio_dev->lock, flags); in amd_gpio_get_direction()
46 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_get_direction()
47 raw_spin_unlock_irqrestore(&gpio_dev->lock, flags); in amd_gpio_get_direction()
61 raw_spin_lock_irqsave(&gpio_dev->lock, flags); in amd_gpio_direction_input()
[all …]
Dpinctrl-gemini.c6 * This is a group-only pin controller.
17 #include <linux/pinctrl/pinconf-generic.h>
22 #include "pinctrl-utils.h"
24 #define DRIVER_NAME "pinctrl-gemini"
27 * struct gemini_pin_conf - information about configuring a pin
39 * struct gemini_pmx - state holder for the gemini pin controller
40 * @dev: a pointer back to containing device
45 * @flash_pin: whether the flash pin (extended pins for parallel
51 struct device *dev; member
62 * struct gemini_pin_group - describes a Gemini pin group
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/intel/
Dpinctrl-intel.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 * struct intel_pingroup - Description about group of pins
27 * @grp: Generic data of the pin group (name and pins)
28 * @mode: Native mode in which the group is muxed out @pins. Used if @modes is %NULL.
29 * @modes: If not %NULL this will hold mode for each pin in @pins
38 * struct intel_function - Description about a function
39 * @func: Generic data of the pin function (name and groups of pins)
48 * struct intel_padgroup - Hardware pad group information
55 * If pad groups of a community are not the same size, use this structure
67 * enum - Special treatment for GPIO base in pad group
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/gemini/
Dgemini-dlink-dns-313.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for D-Link DNS-313 1-Bay Network Storage Enclosure
6 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/thermal/thermal.h>
13 model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
14 compatible = "dlink,dns-313", "cortina,gemini";
15 #address-cells = <1>;
16 #size-cells = <1>;
19 /* 64 MB SDRAM in a Nanya NT5DS32M16BS-6K package */
[all …]
Dgemini-dlink-dir-685.dts2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router
5 /dts-v1/;
8 #include <dt-bindings/input/input.h>
11 model = "D-Link DIR-685 Xtreme N Storage Router";
12 compatible = "dlink,dir-685", "cortina,gemini";
13 #address-cells = <1>;
14 #size-cells = <1>;
17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */
23 bootargs = "console=ttyS0,19200n8 root=/dev/sda1 rw rootwait consoleblank=300";
24 stdout-path = "uart0:19200n8";
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/cx88/
Dcx88-mpeg.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
22 /* ------------------------------------------------------------------ */
44 struct cx8802_dev *dev = container_of(work, struct cx8802_dev, in request_module_async() local
47 if (dev->core->board.mpeg & CX88_MPEG_DVB) in request_module_async()
48 request_module("cx88-dvb"); in request_module_async()
49 if (dev->core->board.mpeg & CX88_MPEG_BLACKBIRD) in request_module_async()
50 request_module("cx88-blackbird"); in request_module_async()
53 static void request_modules(struct cx8802_dev *dev) in request_modules() argument
55 INIT_WORK(&dev->request_module_wk, request_module_async); in request_modules()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/cx88/
Dcx88-mpeg.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
22 /* ------------------------------------------------------------------ */
44 struct cx8802_dev *dev = container_of(work, struct cx8802_dev, in request_module_async() local
47 if (dev->core->board.mpeg & CX88_MPEG_DVB) in request_module_async()
48 request_module("cx88-dvb"); in request_module_async()
49 if (dev->core->board.mpeg & CX88_MPEG_BLACKBIRD) in request_module_async()
50 request_module("cx88-blackbird"); in request_module_async()
53 static void request_modules(struct cx8802_dev *dev) in request_modules() argument
55 INIT_WORK(&dev->request_module_wk, request_module_async); in request_modules()
[all …]
/kernel/linux/linux-6.6/drivers/gpio/
Dgpio-winbond.c1 // SPDX-License-Identifier: GPL-2.0+
65 /* not an actual device number, just a value meaning 'no device' */
68 /* registers with offsets >= 0x30 are specific for a particular device */
127 * for a description what a particular field of this struct means please see
128 * a description of the relevant module parameter at the bottom of this file
145 return -EBUSY; in winbond_sio_enter()
157 static void winbond_sio_select_logical(unsigned long base, u8 dev) in winbond_sio_select_logical() argument
160 outb(dev, base + 1); in winbond_sio_select_logical()
206 * struct winbond_gpio_port_conflict - possibly conflicting device information
208 * @dev: Super I/O logical device number where the testreg register
[all …]
Dgpiolib.h1 /* SPDX-License-Identifier: GPL-2.0 */
24 * struct gpio_device - internal state container for GPIO devices
25 * @dev: the GPIO device struct
30 * @owner: helps prevent removal of modules exporting active GPIOs
38 * @label: a descriptive name for the GPIO device, such as the part number
39 * or name of the IP component in a System on Chip.
40 * @data: per-instance data assigned by the driver
46 * @sem: protects the structure from a NULL-pointer dereference of @chip by
47 * user-space operations when the device gets unregistered during
48 * a hot-unplug event
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-winbond.c1 // SPDX-License-Identifier: GPL-2.0+
65 /* not an actual device number, just a value meaning 'no device' */
68 /* registers with offsets >= 0x30 are specific for a particular device */
127 * for a description what a particular field of this struct means please see
128 * a description of the relevant module parameter at the bottom of this file
145 return -EBUSY; in winbond_sio_enter()
157 static void winbond_sio_select_logical(unsigned long base, u8 dev) in winbond_sio_select_logical() argument
160 outb(dev, base + 1); in winbond_sio_select_logical()
206 * struct winbond_gpio_port_conflict - possibly conflicting device information
208 * @dev: Super I/O logical device number where the testreg register
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/samsung/
Dexynos4210-universal_c210.dts1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
12 /dts-v1/;
14 #include <dt-bindings/gpio/gpio.h>
19 chassis-type = "handset";
34 bootargs = "root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
35 stdout-path = "serial2:115200n8";
39 fixed-rate-clocks {
41 compatible = "samsung,clock-xxti";
42 clock-frequency = <0>;
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/
Dpinctrl-gemini.c6 * This is a group-only pin controller.
19 #include <linux/pinctrl/pinconf-generic.h>
24 #include "pinctrl-utils.h"
26 #define DRIVER_NAME "pinctrl-gemini"
29 * struct gemini_pin_conf - information about configuring a pin
41 * struct gemini_pmx - state holder for the gemini pin controller
42 * @dev: a pointer back to containing device
47 * @flash_pin: whether the flash pin (extended pins for parallel
53 struct device *dev; member
64 * struct gemini_pin_group - describes a Gemini pin group
[all …]
/kernel/linux/linux-6.6/drivers/input/touchscreen/
Diqs7211.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Azoteq IQS7210A/7211A/E Trackpad/Touchscreen Controller
52 * The following delay is used during instances that must wait for the open-
124 .name = "event-prox",
131 .name = "event-touch",
138 .name = "event-tap",
145 .name = "event-hold",
152 .name = "event-swipe-x-neg",
159 .name = "event-swipe-x-pos",
166 .name = "event-swipe-y-pos",
[all …]
/kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/
Dgpio-properties.rst1 .. SPDX-License-Identifier: GPL-2.0
13 With _DSD we can now query GPIOs using a name instead of an integer
31 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
34 Package () {"reset-gpios", Package() {^BTH, 1, 1, 0 }},
35 Package () {"shutdown-gpios", Package() {^BTH, 0, 0, 0 }},
54 Since ACPI GpioIo() resource does not have a field saying whether it is
55 active low or high, the "active_low" argument can be used here. Setting
56 it to 1 marks the GPIO as active low.
61 In our Bluetooth example the "reset-gpios" refers to the second GpioIo()
75 assuming non-active (Polarity = !Pull Bias)
[all …]

12345678910>>...19