Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/video/fbdev/via/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/gpio/
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/gpio/
H A 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 …]
/openbmc/linux/arch/arc/boot/dts/
H A 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 …]
/openbmc/linux/drivers/iio/adc/
H A 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 …]
/openbmc/linux/drivers/pcmcia/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/marvell/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/i2c/muxes/
H A Di2c-mux-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/i2c-mux.h>
11 #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()
48 i2c_mux_gpio_set(mux, mux->data.idle); in i2c_mux_gpio_deselect()
56 struct device *dev = &pdev->dev; in i2c_mux_gpio_probe_fw()
58 struct device_node *np = dev->of_node; in i2c_mux_gpio_probe_fw()
67 return -ENODEV; in i2c_mux_gpio_probe_fw()
69 adapter_np = of_parse_phandle(np, "i2c-parent", 0); in i2c_mux_gpio_probe_fw()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A 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 …]
H A 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;
26 pinctrl: pin-controller@10000 {
27 pmx_led_bluetooth: pmx-led-bluetooth {
31 pmx_led_wifi: pmx-led-wifi {
35 pmx_led_wifi_ap: pmx-led-wifi-ap {
48 #address-cells = <1>;
[all …]
H A 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 …]
H A 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 …]
H A 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 …]

123456