Home
last modified time | relevance | path

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

123456

/Linux-v5.10/drivers/video/fbdev/via/
Dvia-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/via-core.h>
12 #include <linux/via-gpio.h>
16 * The ports we know about. Note that the port-25 gpios are not
29 .vg_name = "VGPIO0", /* Guess - not in datasheet */
69 * This structure controls the active GPIOs, which may be a subset
83 static void via_gpio_set(struct gpio_chip *chip, unsigned int nr, in via_gpio_set() argument
91 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_set()
92 gpio = cfg->active_gpios[nr]; in via_gpio_set()
93 reg = via_read_reg(VIASR, gpio->vg_port_index); in via_gpio_set()
[all …]
/Linux-v5.10/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 desribed 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 …]
Dgpio-xlp.txt10 -------------------
12 - compatible: Should be one of the following:
13 - "netlogic,xlp832-gpio": For Netlogic XLP832
14 - "netlogic,xlp316-gpio": For Netlogic XLP316
15 - "netlogic,xlp208-gpio": For Netlogic XLP208
16 - "netlogic,xlp980-gpio": For Netlogic XLP980
17 - "netlogic,xlp532-gpio": For Netlogic XLP532
18 - "brcm,vulcan-gpio": For Broadcom Vulcan ARM64
19 - reg: Physical base address and length of the controller's registers.
20 - #gpio-cells: Should be two. The first cell is the pin number and the second
[all …]
/Linux-v5.10/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
21 * Each chunk of 32 GPIOs is manipulated via its own USE_SELx, IO_SELx, and
36 {0x00, 0x30, 0x40}, /* USE_SEL[1-3] offsets */
37 {0x04, 0x34, 0x44}, /* IO_SEL[1-3] offsets */
38 {0x0c, 0x38, 0x48}, /* LVL[1-3] offsets */
56 #define ICHX_WRITE(val, reg, base_res) outl(val, (reg) + (base_res)->start)
57 #define ICHX_READ(reg, base_res) inl((reg) + (base_res)->start)
93 struct ichx_desc *desc; /* Pointer to chipset-specific description */
99 static int modparam_gpiobase = -1; /* dynamic */
[all …]
/Linux-v5.10/arch/arm64/boot/dts/synaptics/
Dberlin4ct.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 interrupt-parent = <&gic>;
13 #address-cells = <2>;
14 #size-cells = <2>;
21 compatible = "arm,psci-1.0", "arm,psci-0.2";
26 #address-cells = <1>;
27 #size-cells = <0>;
30 compatible = "arm,cortex-a53";
33 enable-method = "psci";
[all …]
/Linux-v5.10/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-v5.10/drivers/iio/adc/
Dad7266.c1 // SPDX-License-Identifier: GPL-2.0-only
37 struct gpio_desc *gpios[3]; member
54 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup()
60 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown()
83 struct iio_dev *indio_dev = pf->indio_dev; in ad7266_trigger_handler()
87 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler()
89 iio_push_to_buffers_with_timestamp(indio_dev, &st->data, in ad7266_trigger_handler()
90 pf->timestamp); in ad7266_trigger_handler()
93 iio_trigger_notify_done(indio_dev->trig); in ad7266_trigger_handler()
98 static void ad7266_select_input(struct ad7266_state *st, unsigned int nr) in ad7266_select_input() argument
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dberlin2.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
11 #include <dt-bindings/clock/berlin2.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
17 #address-cells = <1>;
18 #size-cells = <1>;
27 #address-cells = <1>;
28 #size-cells = <0>;
29 enable-method = "marvell,berlin-smp";
34 next-level-cache = <&l2>;
38 clock-latency = <100000>;
[all …]
Dberlin2cd.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Device Tree Include file for Marvell Armada 1500-mini (Berlin BG2CD) SoC
11 #include <dt-bindings/clock/berlin2.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
15 model = "Marvell Armada 1500-mini (BG2CD) SoC";
17 #address-cells = <1>;
18 #size-cells = <1>;
26 #address-cells = <1>;
27 #size-cells = <0>;
30 compatible = "arm,cortex-a9";
[all …]
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 …]
Dberlin2q.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
6 #include <dt-bindings/clock/berlin2q.h>
7 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 model = "Marvell Armada 1500 pro (BG2-Q) SoC";
12 #address-cells = <1>;
13 #size-cells = <1>;
21 #address-cells = <1>;
22 #size-cells = <0>;
23 enable-method = "marvell,berlin-smp";
[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-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-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-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 …]
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 …]
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 …]
/Linux-v5.10/drivers/i2c/muxes/
Di2c-mux-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/i2c-mux.h>
10 #include <linux/platform_data/i2c-mux-gpio.h>
22 struct gpio_desc **gpios; member
31 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set()
47 i2c_mux_gpio_set(mux, mux->data.idle); in i2c_mux_gpio_deselect()
56 struct device_node *np = pdev->dev.of_node; in i2c_mux_gpio_probe_dt()
63 return -ENODEV; in i2c_mux_gpio_probe_dt()
65 adapter_np = of_parse_phandle(np, "i2c-parent", 0); in i2c_mux_gpio_probe_dt()
67 dev_err(&pdev->dev, "Cannot parse i2c-parent\n"); in i2c_mux_gpio_probe_dt()
[all …]
/Linux-v5.10/arch/arm64/boot/dts/bitmain/
Dbm1880.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/clock/bm1880-clock.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/reset/bitmain,bm1880-reset.h>
13 interrupt-parent = <&gic>;
14 #address-cells = <2>;
15 #size-cells = <2>;
18 #address-cells = <1>;
19 #size-cells = <0>;
23 compatible = "arm,cortex-a53";
[all …]
/Linux-v5.10/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 …]
Dpxa2xx_hx4700.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <asm/mach-types.h>
17 static struct gpio gpios[] = { variable
26 ret = gpio_request_array(gpios, ARRAY_SIZE(gpios)); in hx4700_pcmcia_hw_init()
39 skt->stat[SOC_STAT_CD].gpio = GPIOD4_CF_nCD; in hx4700_pcmcia_hw_init()
40 skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; in hx4700_pcmcia_hw_init()
41 skt->stat[SOC_STAT_RDY].gpio = GPIO60_HX4700_CF_RNB; in hx4700_pcmcia_hw_init()
42 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; in hx4700_pcmcia_hw_init()
50 gpio_free_array(gpios, ARRAY_SIZE(gpios)); in hx4700_pcmcia_hw_shutdown()
56 state->vs_3v = 1; in hx4700_pcmcia_socket_state()
[all …]

123456