| /linux/sound/soc/ |
| H A D | soc-jack.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-jack.c -- ALSA SoC jack handling 20 * snd_soc_jack_report - Report the current status for a jack 33 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() 37 unsigned int syn in snd_soc_jack_report() 206 struct snd_soc_jack_gpio *gpios; global() member 279 jack_free_gpios(struct snd_soc_jack * jack,int count,struct snd_soc_jack_gpio * gpios) jack_free_gpios() argument 311 snd_soc_jack_add_gpios(struct snd_soc_jack * jack,int count,struct snd_soc_jack_gpio * gpios) snd_soc_jack_add_gpios() argument 412 snd_soc_jack_add_gpiods(struct device * gpiod_dev,struct snd_soc_jack * jack,int count,struct snd_soc_jack_gpio * gpios) snd_soc_jack_add_gpiods() argument 433 snd_soc_jack_free_gpios(struct snd_soc_jack * jack,int count,struct snd_soc_jack_gpio * gpios) snd_soc_jack_free_gpios() argument [all...] |
| /linux/drivers/watchdog/ |
| H A D | mena21_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0+ 34 struct gpio_desc *gpios[NUM_GPIOS]; member 42 static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv) in a21_wdt_get_bootstatus() 44 int reset = 0; in a21_wdt_get_bootstatus() 46 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; in a21_wdt_get_bootstatus() 47 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; in a21_wdt_get_bootstatus() 48 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; in a21_wdt_get_bootstatus() 53 static int a21_wdt_start(struct watchdog_device *wdt) in a21_wdt_start() 57 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); in a21_wdt_start() 62 static int a21_wdt_stop(struct watchdog_device *wdt) in a21_wdt_stop() [all …]
|
| /linux/Documentation/driver-api/gpio/ |
| H A D | consumer.rst | 8 Guidelines for GPIOs consumers 13 obtain and use GPIOs are available by including the following file:: 21 - Simple compile coverage with e.g. COMPILE_TEST - it does not matter that 25 - Truly optional GPIOLIB support - where the driver does not really make use 26 of the GPIOs on certain compile-time configurations for certain systems, but 27 will use it under other compile-time configurations. In this case the 35 All the functions that work with the descriptor-based GPIO interface are 42 Obtaining and Disposing GPIOs 45 With the descriptor-based interface, GPIOs are identified with an opaque, 46 non-forgeable handler that must be obtained through a call to one of the [all …]
|
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-ronbo-rb070d30.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2018-2019, Bridge Systems BV 4 * Copyright (C) 2018-2019, Bootlin 7 * This file based on panel-ilitek-ili9881c.c 15 #include <linux/media-bus-format.h> 37 } gpios; member 45 static int rb070d30_panel_prepare(struct drm_panel *panel) in rb070d30_panel_prepare() 48 int ret; in rb070d30_panel_prepare() 50 ret = regulator_enable(ctx->supply); in rb070d30_panel_prepare() 52 dev_err(&ctx->dsi->dev, "Failed to enable supply: %d\n", ret); in rb070d30_panel_prepare() [all …]
|
| /linux/drivers/hsi/clients/ |
| H A D | nokia-modem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * nokia-modem.c 18 static unsigned int pm = 1; 19 module_param(pm, int, 0400); 30 int nokia_modem_rst_ind_irq; 32 struct nokia_modem_gpio *gpios; member 33 int gpio_amount; 45 dev_info(modem->device, "CMT rst line change detected\n"); in do_nokia_modem_rst_ind_tasklet() 47 if (modem->ssi_protocol) in do_nokia_modem_rst_ind_tasklet() 48 ssip_reset_event(modem->ssi_protocol); in do_nokia_modem_rst_ind_tasklet() [all …]
|
| /linux/arch/arm/boot/dts/intel/ixp/ |
| H A D | intel-ixp42x-actiontec-mi424wr.dtsi | 1 // SPDX-License-Identifier: ISC 3 * Device Tree file for the IXP425-based Actiontec MI424WR 7 #include "intel-ixp42x.dtsi" 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 12 #address-cells = <1>; 13 #size-cells = <1>; 22 stdout-path = "uart1:115200n8"; 26 compatible = "gpio-leds"; 28 led-wan-coax { [all …]
|
| H A D | intel-ixp42x-goramo-multilink.dts | 1 // SPDX-License-Identifier: ISC 5 * - MultiLink Basic (a box) 6 * - MultiLink Max (19" rack mount) 9 * This is one of the few devices supporting the IXP4xx High-Speed Serial 14 /dts-v1/; 16 #include "intel-ixp42x.dtsi" 17 #include <dt-bindings/input/input.h> 21 compatible = "goramo,multilink-router", "intel,ixp42x"; 22 #address-cells = <1>; 23 #size-cells = <1>; [all …]
|
| H A D | intel-ixp42x-linksys-nslu2.dts | 1 // SPDX-License-Identifier: ISC 6 /dts-v1/; 8 #include "intel-ixp42x.dtsi" 9 #include <dt-bindings/input/input.h> 14 #address-cells = <1>; 15 #size-cells = <1>; 25 stdout-path = "uart0:115200n8"; 33 compatible = "gpio-leds"; 34 led-status { 36 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; [all …]
|
| H A D | intel-ixp42x-iomega-nas100d.dts | 1 // SPDX-License-Identifier: ISC 6 /dts-v1/; 8 #include "intel-ixp42x.dtsi" 9 #include <dt-bindings/input/input.h> 13 compatible = "iom,nas-100d", "intel,ixp42x"; 14 #address-cells = <1>; 15 #size-cells = <1>; 25 stdout-path = "uart0:115200n8"; 33 compatible = "gpio-leds"; 34 led-wlan { [all …]
|
| H A D | intel-ixp42x-dlink-dsm-g600.dts | 1 // SPDX-License-Identifier: ISC 3 * Device Tree file for D-Link DSM-G600 revision A based on IXP420 11 /dts-v1/; 13 #include "intel-ixp42x.dtsi" 14 #include <dt-bindings/input/input.h> 17 model = "D-Link DSM-G600 rev A"; 18 compatible = "dlink,dsm-g600-a", "intel,ixp42x"; 19 #address-cells = <1>; 20 #size-cells = <1>; 30 stdout-path = "uart0:115200n8"; [all …]
|
| H A D | intel-ixp42x-linksys-wrv54g.dts | 1 // SPDX-License-Identifier: ISC 9 /dts-v1/; 11 #include "intel-ixp42x.dtsi" 12 #include <dt-bindings/input/input.h> 17 #address-cells = <1>; 18 #size-cells = <1>; 28 stdout-path = "uart1:115200n8"; 39 compatible = "gpio-leds"; 40 led-power { 42 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; [all …]
|
| /linux/drivers/hwmon/ |
| H A D | gpio-fan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * gpio-fan.c - Hwmon driver for fans connected to GPIO lines. 29 int rpm; 30 int ctrl_val; 38 struct mutex lock; /* lock GPIOs operations. */ 39 int num_gpios; 40 struct gpio_desc **gpios; member 41 int num_speed; 43 int speed_index; 44 int resume_speed; [all …]
|
| /linux/drivers/input/misc/ |
| H A D | rotary_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * See file:Documentation/input/devices/rotary-encoder.rst for more information 26 #define DRV_NAME "rotary-encoder" 44 unsigned int pos; 46 struct gpio_descs *gpios; member 48 unsigned int *irq; 51 signed char dir; /* 1 - clockwise, -1 - CCW */ 53 unsigned int last_stable; 56 static unsigned int rotary_encoder_get_state(struct rotary_encoder *encoder) in rotary_encoder_get_state() 58 int i; in rotary_encoder_get_state() [all …]
|
| /linux/drivers/net/mdio/ |
| H A D | mdio-mux-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/mdio-mux.h> 18 struct gpio_descs *gpios; member 22 static int mdio_mux_gpio_switch_fn(int current_child, int desired_child, in mdio_mux_gpio_switch_fn() 33 gpiod_multi_set_value_cansleep(s->gpios, values); in mdio_mux_gpio_switch_fn() 38 static int mdio_mux_gpio_probe(struct platform_device *pdev) in mdio_mux_gpio_probe() 41 struct gpio_descs *gpios; in mdio_mux_gpio_probe() local 42 int r; in mdio_mux_gpio_probe() 44 gpios = devm_gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); in mdio_mux_gpio_probe() 45 if (IS_ERR(gpios)) in mdio_mux_gpio_probe() [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mp-msc-sm2s-14N0600E.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 /dts-v1/; 7 #include "imx8mp-msc-sm2s.dtsi" 33 gbe0-int-hog { 34 gpio-hog; 36 gpios = <3 GPIO_ACTIVE_LOW>; 39 gbe1-int-hog { 40 gpio-hog; 42 gpios = <4 GPIO_ACTIVE_LOW>; 45 cam2-rst-hog { [all …]
|
| /linux/drivers/mux/ |
| H A D | gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * GPIO-controlled multiplexer driver 21 struct gpio_descs *gpios; member 24 static int mux_gpio_set(struct mux_control *mux, int state) in mux_gpio_set() 26 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); in mux_gpio_set() 32 gpiod_multi_set_value_cansleep(mux_gpio->gpios, values); in mux_gpio_set() 42 { .compatible = "gpio-mux", }, 47 static int mux_gpio_probe(struct platform_device *pdev) in mux_gpio_probe() 49 struct device *dev = &pdev->dev; in mux_gpio_probe() 52 int pins; in mux_gpio_probe() [all …]
|
| /linux/include/sound/ |
| H A D | soc-jack.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * soc-jack.h 12 * struct snd_soc_jack_pin - Describes a pin to update based on jack detection 16 * @invert: if non-zero then pin is enabled when status is not reported 22 int mask; 27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection 37 unsigned int min_mv; 38 unsigned int max_mv; 39 unsigned int jack_type; 40 unsigned int debounce_time; [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-ufispace-ncplite.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/i2c/i2c.h> 7 #include <dt-bindings/gpio/aspeed-gpio.h> 11 compatible = "ufispace,ncplite-bmc", "aspeed,ast2600"; 18 stdout-path = &uart5; 27 iio-hwmon { 28 compatible = "iio-hwmon"; 29 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-shared.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include "gpiolib-shared.h" 38 int dev_id; 53 unsigned int offset; 69 unsigned int offset) in gpio_shared_find_entry() 74 if (entry->fwnode == controller_node && entry->offset == offset) in gpio_shared_find_entry() 97 ref->dev_id = ida_alloc(&gpio_shared_ida, GFP_KERNEL); in gpio_shared_make_ref() 98 if (ref->dev_id < 0) in gpio_shared_make_ref() 101 ref->flags = flags; in gpio_shared_make_ref() 102 ref->con_id = no_free_ptr(con_id_cpy); in gpio_shared_make_ref() [all …]
|
| H A D | gpio-winbond.c | 1 // SPDX-License-Identifier: GPL-2.0+ 132 unsigned long gpios; member 142 static int winbond_sio_enter(unsigned long base) in winbond_sio_enter() 145 return -EBUSY; in winbond_sio_enter() 206 * struct winbond_gpio_port_conflict - possibly conflicting device information 209 * is located (or WB_SIO_DEV_NONE - don't select any 226 * struct winbond_gpio_info - information about a particular GPIO port (device) 232 * @outputppbit: index of a push-pull output driver mode bit 351 static bool winbond_gpio_get_info(unsigned int *gpio_num, in winbond_gpio_get_info() 357 for_each_set_bit(i, ¶ms.gpios, BITS_PER_LONG) { in winbond_gpio_get_info() [all …]
|
| H A D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2007 David Brownell 42 typedef struct irq_chip *(*gpio_get_irq_chip_cb_t)(unsigned int irq); 44 #define BINTEN 0x8 /* GPIO Interrupt Per-Bank Enable Register */ 47 static unsigned int offset_array[5] = {0x10, 0x38, 0x60, 0x88, 0xb0}; 52 int bank_num; 61 int gpio_unbanked; 62 int irqs[MAX_INT_PER_BANK]; 72 static int davinci_gpio_irq_setup(struct platform_device *pdev); 74 /*--------------------------------------------------------------------------*/ [all …]
|
| /linux/Documentation/devicetree/bindings/net/bluetooth/ |
| H A D | brcm,bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linusw@kernel.org> 13 This binding describes Broadcom UART-attached bluetooth chips. 18 - items: 19 - enum: 20 - infineon,cyw43439-bt 21 - const: brcm,bcm4329-bt 22 - enum: [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | msm8916-samsung-j5-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "msm8916-pm8916.dtsi" 4 #include "msm8916-modem-qdsp6.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 18 stdout-path = "serial0"; 21 reserved-memory { 23 tz-apps@85500000 { 25 no-map; [all …]
|
| /linux/arch/arm/mach-pxa/ |
| H A D | am300epd.c | 2 * am300epd.c -- Platform device for AM300 EPD kit 10 * This work was made possible by help and equipment support from E-Ink 14 * on the AM300 EPD prototype kit/development kit with an E-Ink 800x600 32 #include "mfp-pxa25x.h" 34 #include <linux/platform_data/video-pxafb.h> 40 static unsigned int panel_type = 6; 56 /* this is the 16-bit hdb bus 58-73 */ 94 static int gpios[] = { PWR_GPIO_PIN, CFG_GPIO_PIN, RDY_GPIO_PIN, DC_GPIO_PIN, variable 100 static int am300_wait_event(struct broadsheetfb_par *par) in am300_wait_event() 103 wait_event(par->waitq, gpio_get_value(RDY_GPIO_PIN)); in am300_wait_event() [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-orangepi-5-plus.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/rockchip.h> 10 #include <dt-bindings/soc/rockchip,vop2.h> 11 #include <dt-bindings/usb/pd.h> 12 #include "rk3588-orangepi-5.dtsi" 16 compatible = "xunlong,orangepi-5-plus", "rockchip,rk3588"; 18 hdmi0-con { 19 compatible = "hdmi-connector"; [all …]
|