Home
last modified time | relevance | path

Searched +full:dev +full:- +full:a +full:- +full:active +full:- +full:pins (Results 1 – 25 of 273) sorted by relevance

1234567891011

/openbmc/linux/Documentation/driver-api/gpio/
H A Dboard.rst7 Note that it only applies to the new descriptor-based interface. For a
8 description of the deprecated integer-based GPIO interface please refer to
20 -----------
25 GPIOs mappings are defined in the consumer device's node, in a property named
26 <function>-gpios, where <function> is the function the driver will request
32 led-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>, /* red */
36 power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
39 Properties named <function>-gpio are also considered valid and old bindings use
48 red = gpiod_get_index(dev, "led", 0, GPIOD_OUT_HIGH);
49 green = gpiod_get_index(dev, "led", 1, GPIOD_OUT_HIGH);
[all …]
/openbmc/linux/drivers/phy/motorola/
H A Dphy-cpcap-usb.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * board-mapphone-usb.c and cpcap-usb-det.c:
8 * Copyright (C) 2007 - 2011 Motorola, Inc.
26 #include <linux/mfd/motorola-cpcap.h>
116 struct device *dev; member
119 struct pinctrl *pins; member
127 atomic_t active; member
136 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
140 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
147 otg->host = host; in cpcap_usb_phy_set_host()
[all …]
/openbmc/u-boot/include/
H A Dvideo.h9 * AIRVENT SAM s.p.a - RIMINI(ITALY)
27 VIDEO_ACTIVE_HIGH, /* Pins are active high */
28 VIDEO_ACTIVE_LOW, /* Pins are active low */
32 * Bits per pixel selector. Each value n is such that the bits-per-pixel is
53 * struct video_priv - Device information used by the video uclass
61 * @font_size: Font size in pixels (0 to use a default value)
71 * @cmap: Colour map for 8-bit-per-pixel displays
72 * @fg_col_idx: Foreground color code (bit 3 = bold, bit 0-2 = color)
97 /* Placeholder - there are no video operations at present */
101 #define video_get_ops(dev) ((struct video_ops *)(dev)->driver->ops) argument
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dstm32f746-disco.dts2 * Copyright 2016 - Michael Kurz <michi.kurz@gmail.com>
3 * Copyright 2016 - Vikas MANOCHA <vikas.manocha@st.com>
6 * stm32f469-disco.dts from Linux
7 * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
9 * This file is dual-licensed: you can use it either under the terms
11 * licensing only applies to this file, and not this project as a
14 * a) This file is free software; you can redistribute it and/or
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * obtaining a copy of this software and associated documentation
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
[all …]
H A Dtegra20-seaboard.dts1 /dts-v1/;
3 #include <dt-bindings/input/input.h>
27 bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk1p3 rw rootwait";
31 stdout-path = &uartd;
47 display-timings {
50 clock-frequency = <70600000>;
53 hback-porch = <58>;
54 hfront-porch = <58>;
55 hsync-len = <58>;
56 vback-porch = <4>;
[all …]
/openbmc/linux/drivers/auxdisplay/
H A Dpanel.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
7 * This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
8 * connected to a parallel printer port.
10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit
11 * serial module compatible with Samsung's KS0074. The pins may be connected in
14 * The keypad consists in a matrix of push buttons connecting input pins to
15 * data output pins or to the ground. The combinations have to be hard-coded
22 * - the initialization/deinitialization process is very dirty and should
[all …]
/openbmc/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 * struct intel_pingroup - Description about group of pins
27 * @grp: Generic data of the pin group (name and pins)
28 * @mode: Native mode in which the group is muxed out @pins. Used if @modes is %NULL.
29 * @modes: If not %NULL this will hold mode for each pin in @pins
38 * struct intel_function - Description about a function
39 * @func: Generic data of the pin function (name and groups of pins)
48 * struct intel_padgroup - Hardware pad group information
55 * If pad groups of a community are not the same size, use this structure
67 * enum - Special treatment for GPIO base in pad group
[all …]
/openbmc/linux/drivers/media/pci/cx88/
H A Dcx88-mpeg.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
22 /* ------------------------------------------------------------------ */
44 struct cx8802_dev *dev = container_of(work, struct cx8802_dev, in request_module_async() local
47 if (dev->core->board.mpeg & CX88_MPEG_DVB) in request_module_async()
48 request_module("cx88-dvb"); in request_module_async()
49 if (dev->core->board.mpeg & CX88_MPEG_BLACKBIRD) in request_module_async()
50 request_module("cx88-blackbird"); in request_module_async()
53 static void request_modules(struct cx8802_dev *dev) in request_modules() argument
55 INIT_WORK(&dev->request_module_wk, request_module_async); in request_modules()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-winbond.c1 // SPDX-License-Identifier: GPL-2.0+
65 /* not an actual device number, just a value meaning 'no device' */
68 /* registers with offsets >= 0x30 are specific for a particular device */
127 * for a description what a particular field of this struct means please see
128 * a description of the relevant module parameter at the bottom of this file
145 return -EBUSY; in winbond_sio_enter()
157 static void winbond_sio_select_logical(unsigned long base, u8 dev) in winbond_sio_select_logical() argument
160 outb(dev, base + 1); in winbond_sio_select_logical()
206 * struct winbond_gpio_port_conflict - possibly conflicting device information
208 * @dev: Super I/O logical device number where the testreg register
[all …]
H A Dgpiolib.h1 /* SPDX-License-Identifier: GPL-2.0 */
24 * struct gpio_device - internal state container for GPIO devices
25 * @dev: the GPIO device struct
30 * @owner: helps prevent removal of modules exporting active GPIOs
38 * @label: a descriptive name for the GPIO device, such as the part number
39 * or name of the IP component in a System on Chip.
40 * @data: per-instance data assigned by the driver
46 * @sem: protects the structure from a NULL-pointer dereference of @chip by
47 * user-space operations when the device gets unregistered during
48 * a hot-unplug event
[all …]
/openbmc/linux/arch/arm/boot/dts/gemini/
H A Dgemini-dlink-dns-313.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for D-Link DNS-313 1-Bay Network Storage Enclosure
6 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/thermal/thermal.h>
13 model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
14 compatible = "dlink,dns-313", "cortina,gemini";
15 #address-cells = <1>;
16 #size-cells = <1>;
19 /* 64 MB SDRAM in a Nanya NT5DS32M16BS-6K package */
[all …]
H A Dgemini-dlink-dir-685.dts2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router
5 /dts-v1/;
8 #include <dt-bindings/input/input.h>
11 model = "D-Link DIR-685 Xtreme N Storage Router";
12 compatible = "dlink,dir-685", "cortina,gemini";
13 #address-cells = <1>;
14 #size-cells = <1>;
17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */
23 bootargs = "console=ttyS0,19200n8 root=/dev/sda1 rw rootwait consoleblank=300";
24 stdout-path = "uart0:19200n8";
[all …]
H A Dgemini-sq201.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
9 #include <dt-bindings/input/input.h>
14 #address-cells = <1>;
15 #size-cells = <1>;
23 bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 rootwait";
24 stdout-path = &uart0;
28 compatible = "gpio-keys";
30 button-setup {
31 debounce-interval = <100>;
[all …]
/openbmc/qemu/include/hw/
H A Dqdev-core.h16 * All modern devices should represented as a derived QOM class of
18 * @realize and @unrealize to represent additional stages in a device
22 * -----------
31 * information to the caller and must be re-entrant.
56 * Hiding a device
57 * ---------------
59 * To hide a device, a DeviceListener function hide_device() needs to
60 * be registered. It can be used to defer adding a device and
62 * DeviceListener can save the QOpts passed to it for re-using it
67 * adding the device. The guest will not see a "hidden" device until
[all …]
/openbmc/u-boot/include/dm/
H A Dpinctrl.h1 /* SPDX-License-Identifier: GPL-2.0+ */
13 * struct pinconf_param - pin config parameters
27 * struct pinctrl_ops - pin control operations, to be implemented by
36 * @get_pins_count: return number of selectable named pins available
37 * in this driver. (necessary to parse "pins" property in DTS)
40 * operations to. (necessary to parse "pins" property in DTS)
47 * in this driver. (necessary for pin-muxing)
49 * called by the core to figure out which mux setting it shall map a
50 * certain device to. (necessary for pin-muxing)
51 * @pinmux_set: enable a certain muxing function with a certain pin.
[all …]
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-gemini.c6 * This is a group-only pin controller.
19 #include <linux/pinctrl/pinconf-generic.h>
24 #include "pinctrl-utils.h"
26 #define DRIVER_NAME "pinctrl-gemini"
29 * struct gemini_pin_conf - information about configuring a pin
41 * struct gemini_pmx - state holder for the gemini pin controller
42 * @dev: a pointer back to containing device
47 * @flash_pin: whether the flash pin (extended pins for parallel
53 struct device *dev; member
64 * struct gemini_pin_group - describes a Gemini pin group
[all …]
H A Dpinmux.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2012 ST-Ericsson SA
6 * Written on behalf of Linaro for ST-Ericsson
24 #include <linux/radix-tree.h>
38 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops()
44 !ops->get_functions_count || in pinmux_check_ops()
45 !ops->get_function_name || in pinmux_check_ops()
46 !ops->get_function_groups || in pinmux_check_ops()
47 !ops->set_mux) { in pinmux_check_ops()
48 dev_err(pctldev->dev, "pinmux ops lacks necessary functions\n"); in pinmux_check_ops()
[all …]
/openbmc/linux/arch/arm/boot/dts/samsung/
H A Dexynos4210-universal_c210.dts1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
12 /dts-v1/;
14 #include <dt-bindings/gpio/gpio.h>
19 chassis-type = "handset";
34 bootargs = "root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
35 stdout-path = "serial2:115200n8";
39 fixed-rate-clocks {
41 compatible = "samsung,clock-xxti";
42 clock-frequency = <0>;
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Diqs7211.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Azoteq IQS7210A/7211A/E Trackpad/Touchscreen Controller
52 * The following delay is used during instances that must wait for the open-
124 .name = "event-prox",
131 .name = "event-touch",
138 .name = "event-tap",
145 .name = "event-hold",
152 .name = "event-swipe-x-neg",
159 .name = "event-swipe-x-pos",
166 .name = "event-swipe-y-pos",
[all …]
/openbmc/linux/drivers/hwmon/
H A Dnsa320-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/hwmon/nsa320-hwmon.c
8 * Copyright (C) 2016 Adam Baker <linux@baker-net.org.uk>
9 * based on a board file driver
18 #include <linux/hwmon-sysfs.h>
29 * The Zyxel hwmon MCU is a Holtek HT46R065 that is factory programmed
31 * the active pin low. The 32 bit output word is then clocked onto the
32 * data line. The MSB of the data word is a magic nuber to indicate it
34 * of RPM) and the last two bytes are the temperature (in tenths of a
59 * between the active (aka chip select) signal and the shorter
[all …]
/openbmc/linux/Documentation/admin-guide/media/
H A Dcec.rst1 .. SPDX-License-Identifier: GPL-2.0
12 - Exynos4
13 - Exynos5
14 - STIH4xx HDMI CEC
15 - V4L2 adv7511 (same HW, but a different driver from the drm adv7511)
16 - stm32
17 - Allwinner A10 (sun4i)
18 - Raspberry Pi
19 - dw-hdmi (Synopsis IP)
20 - amlogic (meson ao-cec and ao-cec-g12a)
[all …]
/openbmc/linux/drivers/input/misc/
H A Diqs626a.c1 // SPDX-License-Identifier: GPL-2.0+
8 * inductive keys as well as Hall-effect switches, and one for a trackpad that
227 .name = "event-prox",
233 .name = "event-prox-alt",
240 .name = "event-touch",
246 .name = "event-touch-alt",
253 .name = "event-deep",
259 .name = "event-deep-alt",
338 u8 active; member
361 u8 active; member
[all …]
/openbmc/u-boot/drivers/misc/
H A Dali512x.c1 // SPDX-License-Identifier: GPL-2.0+
9 *----------------------------------------------------------------------
11 * Sysgo Real-Time Solutions GmbH
12 * Klein-Winternheim, Germany
13 *----------------------------------------------------------------------
64 /* Select a logical device */
65 #define ALI_SELDEV(dev) \ argument
66 ali_write(0x07, dev)
77 ali_write(0x24, 0x00); /* IR 8 is active hi, pin26 is PDIR */ in ali512x_init()
116 /* mode: EPP 1.9, ECP FIFO threshold = 7, IRQ active low */ in ali512x_set_pp()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include <linux/iosys-map.h>
29 * This library provides &struct drm_gem_vram_object (GEM VRAM), a GEM
33 * The data structure &struct drm_vram_mm and its helpers implement a memory
39 * graphics buffers, such as an on-screen framebuffer. GEM does not provide
43 * library. Each active buffer object is stored in video RAM. Active
54 * .. code-block:: c
68 * struct drm_device *dev;
76 * ret = drmm_vram_helper_init(dev, vram_base, vram_size);
89 * drmm_vram_helper_init() is a managed interface that installs a
[all …]
/openbmc/linux/include/linux/usb/
H A Dtypec_altmode.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct typec_altmode - USB Type-C alternate mode device
16 * @dev: Driver model's view of this device
20 * @active: Tells has the mode been entered or not
25 struct device dev; member
29 unsigned int active:1; member
35 #define to_typec_altmode(d) container_of(d, struct typec_altmode, dev)
40 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
45 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
49 * struct typec_altmode_ops - Alternate mode specific operations vector
[all …]

1234567891011