Home
last modified time | relevance | path

Searched +full:cmd +full:- +full:gpio (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/linux/drivers/fsi/
H A Dfsi-master-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * A FSI master controller, using a simple GPIO bit-banging interface
10 #include <linux/gpio/consumer.h>
18 #include "fsi-master.h"
54 if (!master->no_delays) in clock_toggle()
56 gpiod_set_value(master->gpio_clk, 0); in clock_toggle()
57 if (!master->no_delays) in clock_toggle()
59 gpiod_set_value(master->gpio_clk, 1); in clock_toggle()
67 if (!master->no_delays) in sda_clock_in()
69 gpiod_set_value(master->gpio_clk, 0); in sda_clock_in()
[all …]
H A Dfsi-master-ast-cf.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <linux/gpio/consumer.h>
21 #include <linux/gpio/aspeed.h>
25 #include "fsi-master.h"
26 #include "cf-fsi-fw.h"
28 #define FW_FILE_NAME "cf-fsi-fw.bin"
132 msg->msg <<= bits; in msg_push_bits()
133 msg->msg |= data & ((1ull << bits) - 1); in msg_push_bits()
134 msg->bits += bits; in msg_push_bits()
142 top = msg->bits & 0x3; in msg_push_crc()
[all …]
H A Dfsi-master-aspeed.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <linux/gpio/consumer.h>
19 #include "fsi-master.h"
100 void __iomem *base = aspeed->base; in __opb_write()
129 return -EIO; in __opb_write()
152 void __iomem *base = aspeed->base; in __opb_read()
184 return -EIO; in __opb_read()
198 return -EINVAL; in __opb_read()
238 if (err == -EIO) { in check_errors()
262 return -EINVAL; in aspeed_master_read()
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dmotorola,mapphone-mdm6600.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/phy/motorola,mapphone-mdm6600.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Tony Lindgren <tony@atomide.com>
15 - const: motorola,mapphone-mdm6600
17 enable-gpios:
18 description: GPIO to enable the USB PHY
21 power-gpios:
22 description: GPIO to power on the device
[all …]
/linux/drivers/gpio/
H A Dgpio-max77759.c1 // SPDX-License-Identifier: GPL-2.0-only
6 // GPIO driver for Maxim MAX77759
11 #include <linux/gpio/driver.h>
60 DEFINE_FLEX(struct max77759_maxq_command, cmd, cmd, length, 1); in max77759_gpio_maxq_gpio_trigger_read()
64 cmd->cmd[0] = MAX77759_MAXQ_OPCODE_GPIO_TRIGGER_READ; in max77759_gpio_maxq_gpio_trigger_read()
66 ret = max77759_maxq_command(chip->max77759, cmd, rsp); in max77759_gpio_maxq_gpio_trigger_read()
70 return rsp->rsp[1]; in max77759_gpio_maxq_gpio_trigger_read()
76 DEFINE_FLEX(struct max77759_maxq_command, cmd, cmd, length, 2); in max77759_gpio_maxq_gpio_trigger_write()
78 cmd->cmd[0] = MAX77759_MAXQ_OPCODE_GPIO_TRIGGER_WRITE; in max77759_gpio_maxq_gpio_trigger_write()
79 cmd->cmd[1] = trigger; in max77759_gpio_maxq_gpio_trigger_write()
[all …]
H A Dgpio-dln2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for the Diolan DLN-2 USB-GPIO adapter
15 #include <linux/gpio/driver.h>
48 struct gpio_chip gpio; member
56 /* active IRQs - not synced to hardware */
58 /* active IRQS - synced to hardware */
83 return -EPROTO; in dln2_gpio_get_pin_count()
88 static int dln2_gpio_pin_cmd(struct dln2_gpio *dln2, int cmd, unsigned pin) in dln2_gpio_pin_cmd() argument
94 return dln2_transfer_tx(dln2->pdev, cmd, &req, sizeof(req)); in dln2_gpio_pin_cmd()
97 static int dln2_gpio_pin_val(struct dln2_gpio *dln2, int cmd, unsigned int pin) in dln2_gpio_pin_val() argument
[all …]
/linux/Documentation/devicetree/bindings/misc/
H A Dolpc,xo1.75-ec.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 ---
5 $id: http://devicetree.org/schemas/misc/olpc,xo1.75-ec.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: OLPC XO-1.75 Embedded Controller
12 on a OLPC XO-1.75 laptop computer.
17 "ready-gpios" property of the SSP binding as documented in:
18 <Documentation/devicetree/bindings/spi/marvell,mmp2-ssp.yaml>.
21 - Lubomir Rintel <lkundrak@v3.sk>
25 const: olpc,xo1.75-ec
[all …]
/linux/Documentation/admin-guide/
H A Dbtmrvl.rst14 bit 8:0 -- Gap
15 bit 16:8 -- GPIO
17 where GPIO is the pin number of GPIO used to wake up the host.
18 It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface
30 # Use GPIO pin #3 to wake up the host and set GAP to 0xff:
39 1 -- Enable auto sleep mode
40 0 -- Disable auto sleep mode
58 1 -- Enable host sleep
59 0 -- Wake up firmware
102 Hcitool cmd <ogf> <ocf> [Parameters]
[all …]
/linux/drivers/media/i2c/cvs/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/gpio/consumer.h>
23 #include <media/ipu-bridge.h>
24 #include <media/ipu6-pci-table.h>
37 * IPU7 PCI device IDs not covered by ipu6_pci_tbl in ipu6-pci-table.h.
52 { "wake-gpio", &gpio_wake, 1 },
53 { "rst-gpio", &gpio_rst, 1 },
54 { "req-gpio", &gpio_req, 1 },
55 { "resp-gpio", &gpio_resp, 1 },
62 { "req-gpio", &lgpio_req, 1 },
[all …]
/linux/drivers/hid/
H A Dhid-mcp2200.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * MCP2200 - Microchip USB to GPIO bridge
5 * Copyright (c) 2023, Johannes Roith <johannes@gnu-linux.rocks>
13 #include <linux/gpio/driver.h>
18 #include "hid-ids.h"
27 /* MCP GPIO direction encoding */
40 /* CMD to set or clear a GPIO output */
42 u8 cmd; member
49 /* CMD to configure the IOs */
51 u8 cmd; member
[all …]
/linux/drivers/macintosh/
H A Dsmu.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * - maybe add timeout to commands ?
12 * - blocking version of time functions
13 * - polling version of i2c commands (including timer that works with
15 * - maybe avoid some data copies with i2c by directly using the smu cmd
17 * - understand SMU -> CPU events and implement reception of them via
69 u8 cmd; member
78 int doorbell; /* doorbell gpio */
114 struct smu_cmd *cmd; in smu_start_cmd() local
116 if (list_empty(&smu->cmd_list)) in smu_start_cmd()
[all …]
/linux/drivers/auxdisplay/
H A Dhd44780.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
10 #include <linux/gpio/consumer.h>
20 /* Order does matter due to writing to GPIO array subsets! */
42 struct hd44780_common *hdc = lcd->drvdata; in hd44780_backlight()
43 struct hd44780 *hd = hdc->hd44780; in hd44780_backlight()
45 if (hd->pins[PIN_CTRL_BL]) in hd44780_backlight()
46 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on); in hd44780_backlight()
54 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1); in hd44780_strobe_gpio()
[all …]
/linux/arch/arm/boot/dts/st/
H A Dstm32f7-pinctrl.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
7 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
8 #include <dt-bindings/mfd/stm32f7-rcc.h>
13 #address-cells = <1>;
14 #size-cells = <1>;
16 interrupt-parent = <&exti>;
19 gpioa: gpio@40020000 {
20 gpio-controller;
21 #gpio-cells = <2>;
[all …]
/linux/drivers/media/usb/gspca/
H A Dsq930x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2010 Jean-François Moine <http://moinejf.free.fr>
6 * Copyright (C) 2006 -2008 Gerard Klaver <gerard at gkall dot hobby dot nl>
16 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>\n"
32 u8 gpio[2]; member
70 /* gpio 1 (8..15) */
76 /* gpio 3 (24..31) */
199 {0x30, 0x0040}, /* reserved - def 0x0005 */
200 {0x31, 0x0000}, /* reserved - def 0x002a */
201 {0x34, 0x0100}, /* reserved - def 0x0100 */
[all …]
/linux/drivers/leds/
H A Dleds-ns2.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED
9 * Based on leds-gpio.c by Raphael Assenat <raph@8d.com>
15 #include <linux/gpio/consumer.h>
39 * The Network Space v2 dual-GPIO LED is wired to a CPLD. Three different LED
47 struct gpio_desc *cmd; member
62 cmd_level = gpiod_get_value_cansleep(led->cmd); in ns2_led_get_mode()
63 slow_level = gpiod_get_value_cansleep(led->slow); in ns2_led_get_mode()
65 for (i = 0; i < led->num_modes; i++) { in ns2_led_get_mode()
66 if (cmd_level == led->modval[i].cmd_level && in ns2_led_get_mode()
[all …]
/linux/include/linux/usb/
H A Dljca.h1 /* SPDX-License-Identifier: GPL-2.0-only */
21 * typedef ljca_event_cb_t - event callback function signature
24 * @cmd: the command from device for this event
32 typedef void (*ljca_event_cb_t)(void *context, u8 cmd, const void *evt_data, int len);
35 * struct ljca_client - represent a ljca client device
61 * struct ljca_gpio_info - ljca gpio client device info
63 * @num: ljca gpio client device pin number
64 * @valid_pin_map: ljca gpio client device valid pin mapping
72 * struct ljca_i2c_info - ljca i2c client device info
85 * struct ljca_spi_info - ljca spi client device info
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Darmada-370-seagate-nas-4bay.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for Seagate NAS 4-Bay (Armada 370 SoC).
13 * Product name : Seagate NAS 4-Bay
14 * Code name (board/PCB) : Dart 4-Bay
19 /dts-v1/;
20 #include "armada-370-seagate-nas-xbay.dtsi"
21 #include <dt-bindings/leds/leds-ns2.h>
24 model = "Seagate NAS 4-Bay (Dart, SRPD40)";
25 compatible = "seagate,dart-4", "marvell,armada370", "marvell,armada-370-xp";
28 internal-regs {
[all …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6180-pinctrl",
8 "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl",
9 "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl",
10 "marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl"
11 - reg: register specifier of MPP registers
14 It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs.
24 mpp0 0 gpio, nand(io2), spi(cs)
28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk)
32 mpp8 8 gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
[all …]
H A Dmarvell,armada-370-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6710-pinctrl"
8 - reg: register specifier of MPP registers
16 mpp0 0 gpio, uart0(rxd)
18 mpp2 2 gpio, i2c0(sck), uart0(txd)
19 mpp3 3 gpio, i2c0(sda), uart0(rxd)
20 mpp4 4 gpio, vdd(cpu-pd)
22 mpp6 6 gpio, ge0(txd0), sata0(prsnt), tdm(rst), audio(sdo)
24 mpp8 8 gpio, ge0(txd2), uart0(rts), tdm(drx), audio(bclk)
26 mpp10 10 gpio, ge0(txctl), uart0(cts), tdm(fsync), audio(sdi)
[all …]
H A Dmarvell,armada-38x-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6810-pinctrl", "marvell,88f6820-pinctrl" or
8 "marvell,88f6828-pinctrl" depending on the specific variant of the
10 - reg: register specifier of MPP registers
18 mpp0 0 gpio, ua0(rxd)
19 mpp1 1 gpio, ua0(txd)
20 mpp2 2 gpio, i2c0(sck)
21 mpp3 3 gpio, i2c0(sda)
22 mpp4 4 gpio, ge(mdc), ua1(txd), ua0(rts)
23 mpp5 5 gpio, ge(mdio), ua1(rxd), ua0(cts)
[all …]
H A Dmarvell,armada-39x-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6920-pinctrl", "marvell,88f6925-pinctrl" or
8 "marvell,88f6928-pinctrl" depending on the specific variant of the
10 - reg: register specifier of MPP registers
18 mpp0 0 gpio, ua0(rxd)
19 mpp1 1 gpio, ua0(txd)
20 mpp2 2 gpio, i2c0(sck)
21 mpp3 3 gpio, i2c0(sda)
22 mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc)
23 mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio)
[all …]
/linux/drivers/usb/misc/
H A Dusbio.c1 // SPDX-License-Identifier: GPL-2.0
61 * struct usbio_device - the usb device exposing IOs
71 * @bulk_mutex: protects tx_buf, rx_buf and split bulk-transfers getting interrupted
82 * @nr_gpio_banks: Number of GPIO banks
83 * @gpios: GPIO bank descriptors
121 * struct usbio_client - represents a usbio client
137 static int usbio_ctrl_msg(struct usbio_device *usbio, u8 type, u8 cmd, in usbio_ctrl_msg() argument
146 lockdep_assert_held(&usbio->ctrl_mutex); in usbio_ctrl_msg()
148 if ((obuf_len > (usbio->ctrlbuf_len - sizeof(*cpkt))) || in usbio_ctrl_msg()
149 (ibuf_len > (usbio->ctrlbuf_len - sizeof(*cpkt)))) in usbio_ctrl_msg()
[all …]
H A Dusb-ljca.c1 // SPDX-License-Identifier: GPL-2.0-only
29 (LJCA_MAX_PACKET_SIZE - sizeof(struct ljca_msg))
61 /* ljca cmd message structure */
64 u8 cmd; member
96 /* 1 bit for each gpio, 1 means valid */
107 * struct ljca_adapter - represent a ljca adapter
171 * as the usb-ljca driver is probed based on the USB device's vendor and
178 { "INTC100B" }, /* RPL LJCA GPIO */
179 { "INTC1074" }, /* CVF LJCA GPIO */
180 { "INTC1096" }, /* ADL LJCA GPIO */
[all …]
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7622-bananapi-bpi-r64.dts5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
17 model = "Bananapi BPI-R64";
18 chassis-type = "embedded";
19 compatible = "bananapi,bpi-r64", "mediatek,mt7622";
26 stdout-path = "serial0:115200n8";
32 proc-supply = <&mt6380_vcpu_reg>;
[all …]
/linux/drivers/input/touchscreen/
H A Dzforce_ts.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2013 MundoReader S.L.
14 #include <linux/gpio/consumer.h>
128 static int zforce_command(struct zforce_ts *ts, u8 cmd) in zforce_command() argument
130 struct i2c_client *client = ts->client; in zforce_command()
134 dev_dbg(&client->dev, "%s: 0x%x\n", __func__, cmd); in zforce_command()
138 buf[2] = cmd; in zforce_command()
142 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_command()
151 struct i2c_client *client = ts->client; in zforce_send_wait()
154 dev_dbg(&client->dev, "sending %d bytes for command 0x%x\n", in zforce_send_wait()
[all …]

12345678910>>...16