Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/video/fbdev/via/
Dvia-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/via-core.h>
14 #include "via-gpio.h"
17 * The ports we know about. Note that the port-25 gpios are not
30 .vg_name = "VGPIO0", /* Guess - not in datasheet */
70 * This structure controls the active GPIOs, which may be a subset
84 static void via_gpio_set(struct gpio_chip *chip, unsigned int nr, in via_gpio_set() argument
92 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_set()
93 gpio = cfg->active_gpios[nr]; in via_gpio_set()
94 reg = via_read_reg(VIASR, gpio->vg_port_index); in via_gpio_set()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/gpio/
Dsnps,dw-apb-gpio.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/snps,dw-apb-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
12 GPIO-controller properties as described in this bindings file.
15 - Hoan Tran <hoan@os.amperecomputing.com>
16 - Serge Semin <fancer.lancer@gmail.com>
20 pattern: "^gpio@[0-9a-f]+$"
23 const: snps,dw-apb-gpio
25 "#address-cells":
[all …]
Dgpio-xgene-sb.txt1 APM X-Gene Standby GPIO controller bindings
6 +-----------------+
7 | X-Gene standby |
8 | GPIO controller +------ GPIO_0
9 +------------+ | | ...
10 | Parent IRQ | EXT_INT_0 | +------ GPIO_8/EXT_INT_0
12 | (GICv2) +--------------+ +------ GPIO_[N+8]/EXT_INT_N
14 | | EXT_INT_N | +------ GPIO_[N+9]
16 | +--------------+ +------ GPIO_MAX
17 +------------+ +-----------------+
[all …]
Dgpio-adnp.txt1 Avionic Design N-bit GPIO expander bindings
4 - compatible: should be "ad,gpio-adnp"
5 - reg: The I2C slave address for this device.
6 - interrupts: Interrupt specifier for the controllers interrupt.
7 - #gpio-cells: Should be 2. The first cell is the GPIO number and the
9 - bit 0: polarity (0: normal, 1: inverted)
10 - gpio-controller: Marks the device as a GPIO controller
11 - nr-gpios: The number of pins supported by the controller.
15 Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
19 gpioext: gpio-controller@41 {
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-ich.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Intel ICH6-10, Series 5 and 6, Atom C2000 (Avoton/Rangeley) GPIO driver
19 * Each chunk of 32 GPIOs is manipulated via its own USE_SELx, IO_SELx, and
34 {0x00, 0x30, 0x40}, /* USE_SEL[1-3] offsets */
35 {0x04, 0x34, 0x44}, /* IO_SEL[1-3] offsets */
36 {0x0c, 0x38, 0x48}, /* LVL[1-3] offsets */
54 #define ICHX_WRITE(val, reg, base_res) outl(val, (reg) + (base_res)->start)
55 #define ICHX_READ(reg, base_res) inl((reg) + (base_res)->start)
91 struct ichx_desc *desc; /* Pointer to chipset-specific description */
97 static int modparam_gpiobase = -1; /* dynamic */
[all …]
Dgpio-bt8xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 (c) 1999-2002 Gerd Knorr
23 (c) 2005-2006 Nickolay V. Shmyrev
60 #define bgwrite(dat, adr) writel((dat), bg->mmio+(adr))
61 #define bgread(adr) readl(bg->mmio+(adr))
64 static int modparam_gpiobase = -1/* dynamic */;
66 MODULE_PARM_DESC(gpiobase, "The GPIO number base. -1 means dynamic, which is the default.");
69 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in bt8xxgpio_gpio_direction_input() argument
75 spin_lock_irqsave(&bg->lock, flags); in bt8xxgpio_gpio_direction_input()
78 data &= ~(1 << nr); in bt8xxgpio_gpio_direction_input()
[all …]
/linux-6.12.1/arch/arc/boot/dts/
Daxs10x_mb.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
14 compatible = "simple-bus";
15 #address-cells = <1>;
16 #size-cells = <1>;
18 interrupt-parent = <&mb_intc>;
20 creg_rst: reset-controller@11220 {
21 compatible = "snps,axs10x-reset";
22 #reset-cells = <1>;
27 compatible = "snps,axs10x-i2s-pll-clock";
[all …]
/linux-6.12.1/drivers/iio/adc/
Dad7266.c1 // SPDX-License-Identifier: GPL-2.0-only
38 struct gpio_desc *gpios[3]; member
55 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup()
61 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown()
84 struct iio_dev *indio_dev = pf->indio_dev; in ad7266_trigger_handler()
88 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler()
90 iio_push_to_buffers_with_timestamp(indio_dev, &st->data, in ad7266_trigger_handler()
91 pf->timestamp); in ad7266_trigger_handler()
94 iio_trigger_notify_done(indio_dev->trig); in ad7266_trigger_handler()
99 static void ad7266_select_input(struct ad7266_state *st, unsigned int nr) in ad7266_select_input() argument
[all …]
/linux-6.12.1/drivers/pcmcia/
Ddb1xxx_ss.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * The Db1000 is used as a reference: Per-socket card-, carddetect- and
14 * statuschange IRQs connected to SoC GPIOs, control and status register
15 * bits arranged in per-socket groups in an external PLD. All boards
19 * - Pb1100/Pb1500: single socket only; voltage key bits VS are
21 * - Au1200-based: additional card-eject irqs, irqs not gpios!
22 * - Db1300: Db1200-like, no pwr ctrl, single socket (#1).
37 #include <asm/mach-au1x00/au1000.h>
38 #include <asm/mach-db1x00/bcsr.h>
45 int nr; /* socket number */ member
[all …]
/linux-6.12.1/arch/arm/boot/dts/marvell/
Dkirkwood-sheevaplug-esata.dts1 // SPDX-License-Identifier: GPL-2.0
3 * kirkwood-sheevaplug-esata.dts - Device tree file for eSATA Sheevaplug
8 /dts-v1/;
10 #include "kirkwood-sheevaplug-common.dtsi"
14 …tible = "globalscale,sheevaplug-esata-rev13", "globalscale,sheevaplug-esata", "globalscale,sheevap…
19 nr-ports = <2>;
23 pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>;
24 pinctrl-names = "default";
26 cd-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
27 wp-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
[all …]
Dkirkwood-cloudbox.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
9 compatible = "lacie,cloudbox", "marvell,kirkwood-88f6702", "marvell,kirkwood";
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_cloudbox_sata0: pmx-cloudbox-sata0 {
34 pinctrl-0 = <&pmx_cloudbox_sata0>;
35 pinctrl-names = "default";
37 nr-ports = <1>;
[all …]
Dkirkwood-linkstation-duo-6281.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree common file for kirkwood-6281 based 2-Bay Buffalo Linkstation
10 #include "kirkwood-6281.dtsi"
11 #include "kirkwood-linkstation.dtsi"
15 pinctrl: pin-controller@10000 {
16 pmx_power_hdd0: pmx-power-hdd0 {
20 pmx_power_hdd1: pmx-power-hdd1 {
24 pmx_usb_vbus: pmx-usb-vbus {
28 pmx_led_alarm: pmx-led-alarm {
32 pmx_led_function_red: pmx-led-function-red {
[all …]
Dkirkwood-db.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Marvell DB-{88F6281,88F6282}-BP Development Board Setup
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
22 stdout-path = &uart0;
26 pin-controller@10000 {
27 pmx_sdio_gpios: pmx-sdio-gpios {
38 nr-ports = <2>;
47 pinctrl-0 = <&pmx_sdio_gpios>;
48 pinctrl-names = "default";
49 wp-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
[all …]
Dkirkwood-linkstation-lsqvl.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for Buffalo Linkstation LS-QVL
7 * Based on kirkwood-linkstation-lswvl.dts,
12 /dts-v1/;
13 #include "kirkwood-linkstation-6282.dtsi"
16 model = "Buffalo Linkstation LS-QVL";
17 compatible = "buffalo,lsqvl", "marvell,kirkwood-88f6282", "marvell,kirkwood";
25 pinctrl: pin-controller@10000 {
26 pmx_power_hdd1: pmx-power-hdd1 {
30 pmx_led_hdderr0: pmx-led-hdderr0 {
[all …]
Dkirkwood-ib62x0.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
8 model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
9 …raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220",…
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_led_os_red: pmx-led-os-red {
27 pmx_power_off: pmx-power-off {
31 pmx_led_os_green: pmx-led-os-green {
[all …]
Dkirkwood-dreamplug.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
9 …compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f628…
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_led_bluetooth: pmx-led-bluetooth {
27 pmx_led_wifi: pmx-led-wifi {
31 pmx_led_wifi_ap: pmx-led-wifi-ap {
44 #address-cells = <1>;
[all …]
Dkirkwood-goflexnet.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
9 compatible = "seagate,goflexnet", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_usb_power_enable: pmx-usb-power-enable {
27 pmx_led_right_cap_0: pmx-led_right_cap_0 {
31 pmx_led_right_cap_1: pmx-led_right_cap_1 {
35 pmx_led_right_cap_2: pmx-led_right_cap_2 {
[all …]
Dorion5x-linkstation-lswtgl.dts2 * Device Tree file for Buffalo Linkstation LS-WTGL
7 * This file is dual-licensed: you can use it either under the terms
46 /dts-v1/;
48 #include "orion5x-linkstation.dtsi"
49 #include "mvebu-linkstation-gpio-simple.dtsi"
50 #include "mvebu-linkstation-fan.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
54 model = "Buffalo Linkstation LS-WTGL";
55 compatible = "buffalo,lswtgl", "marvell,orion5x-88f5182", "marvell,orion5x";
63 power-on-switch {
[all …]
Dkirkwood-ns2max.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
9 compatible = "lacie,netspace_max_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 pinctrl-0 = <&pmx_ns2_sata0 &pmx_ns2_sata1>;
19 pinctrl-names = "default";
21 nr-ports = <2>;
26 compatible = "gpio-fan";
27 gpios = <&gpio0 22 GPIO_ACTIVE_LOW
[all …]
Dkirkwood-guruplug-server-plus.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
9 …compatible = "globalscale,guruplug-server-plus", "globalscale,guruplug", "marvell,kirkwood-88f6281…
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_led_health_r: pmx-led-health-r {
27 pmx_led_health_g: pmx-led-health-g {
31 pmx_led_wmode_r: pmx-led-wmode-r {
35 pmx_led_wmode_g: pmx-led-wmode-g {
[all …]
Dkirkwood-ns2mini.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
10 compatible = "lacie,netspace_mini_v2", "marvell,kirkwood-88f6192", "marvell,kirkwood";
19 pinctrl-0 = <&pmx_ns2_sata0>;
20 pinctrl-names = "default";
22 nr-ports = <1>;
27 compatible = "gpio-fan";
28 gpios = <&gpio0 22 GPIO_ACTIVE_LOW
[all …]
Dkirkwood-mplcec4.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
9 compatible = "mpl,cec4-10", "mpl,cec4", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pmx_led_health: pmx-led-health {
28 pmx_sata1: pmx-sata1 {
33 pmx_sata0: pmx-sata0 {
38 pmx_led_user1o: pmx-led-user1o {
[all …]
Dkirkwood-nsa3x0-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include "kirkwood-6281.dtsi"
9 pinctrl: pin-controller@10000 {
11 pmx_usb_power: pmx-usb-power {
16 pmx_pwr_off: pmx-pwr-off {
21 pmx_btn_reset: pmx-btn-reset {
26 pmx_btn_copy: pmx-btn-copy {
31 pmx_btn_power: pmx-btn-power {
36 pmx_led_copy_green: pmx-led-copy-green {
41 pmx_led_copy_red: pmx-led-copy-red {
[all …]
Dkirkwood-openrd.dtsi1 // SPDX-License-Identifier: GPL-2.0
12 #include "kirkwood-6281.dtsi"
22 stdout-path = &uart0;
26 pinctrl: pin-controller@10000 {
27 pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
28 pinctrl-names = "default";
30 pmx_select28: pmx-select-rs232-rs485 {
34 pmx_sdio_cd: pmx-sdio-cd {
38 pmx_select34: pmx-select-uart-sd {
49 nr-ports = <2>;
[all …]
/linux-6.12.1/drivers/i2c/muxes/
Di2c-mux-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/i2c-mux.h>
16 #include <linux/platform_data/i2c-mux-gpio.h>
23 struct gpio_desc **gpios; member
32 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set()
41 if (mux->data.settle_time) in i2c_mux_gpio_select()
42 fsleep(mux->data.settle_time); in i2c_mux_gpio_select()
51 i2c_mux_gpio_set(mux, mux->data.idle); in i2c_mux_gpio_deselect()
59 struct device *dev = &pdev->dev; in i2c_mux_gpio_probe_fw()
61 struct device_node *np = dev->of_node; in i2c_mux_gpio_probe_fw()
[all …]

12345