Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:out +full:- +full:pol (Results 1 – 23 of 23) sorted by relevance

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwmon/
H A Dadi,ltc2947.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf
20 - adi,ltc2947
33 adi,accumulator-ctl-pol:
41 $ref: /schemas/types.yaml#/definitions/uint32-array
48 adi,accumulation-deadband-microamp:
56 adi,gpio-out-pol:
[all …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-grgpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * This driver supports the GRGPIO GPIO core available in the GRLIB VHDL
13 * See "Documentation/devicetree/bindings/gpio/gpio-grgpio.txt" for
26 #include <linux/gpio/driver.h>
45 /* Structure for an irq of the core - called an underlying irq */
48 u8 uirq; /* Underlying irq of the gpio driver */
52 * Structure for an irq of a gpio line handed out by this driver. The index is
56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */
57 u8 irq; /* irq for the gpio line */
68 * The grgpio core can have multiple "underlying" irqs. The gpio lines
[all …]
H A Dgpio-dwapb.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/gpio/driver.h>
25 #include <linux/platform_data/gpio-dwapb.h>
29 #include "gpiolib-acpi.h"
51 #define DWAPB_DRIVER_NAME "gpio-dwapb"
71 /* Store GPIO context across system-wide suspend/resume transitions */
94 struct dwapb_gpio *gpio; member
101 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio)
131 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument
133 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dwm97xx-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712
15 * - supports WM9705, WM9712, WM9713
16 * - polling mode
17 * - continuous mode (arch-dependent)
18 * - adjustable rpu/dpp settings
19 * - adjustable pressure current
20 * - adjustable sample settle delay
21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only)
22 * - pen down detection
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/qcom/
H A Dpinctrl-msm.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/pinctrl/pinconf-generic.h>
19 #include <linux/gpio/driver.h>
31 #include "pinctrl-msm.h"
32 #include "../pinctrl-utils.h"
39 * struct msm_pinctrl - state for a pinctrl-msm device
87 return readl(pctrl->regs[g->tile] + g->name##_reg); \
92 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
104 u32 val = g->intr_ack_high ? BIT(g->intr_status_bit) : 0; in MSM_ACCESSOR()
113 return pctrl->soc->ngroups; in msm_get_groups_count()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Dwlf,arizona.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
17 - $ref: /schemas/sound/wlf,arizona.yaml#
18 - $ref: /schemas/regulator/wlf,arizona.yaml#
19 - $ref: /schemas/extcon/wlf,arizona.yaml#
20 - if:
25 - cirrus,cs47l24
26 - wlf,wm1831
[all …]
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dltc2947-core.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/hwmon-sysfs.h>
65 #define VOLTAGE_MIN -300
76 #define CURRENT_MIN -30000
85 #define POWER_MIN -450000000
97 #define TEMP_MIN -40000
107 #define LTC2947_ALERTS_SIZE (LTC2947_REG_STATVDVCC - LTC2947_REG_STATUS)
125 * complete sequence select_page->read/write needs to be protected.
138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16()
153 ret = regmap_bulk_read(st->map, reg, &__val, 3); in __ltc2947_val_read24()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Des8326.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8326.c -- es8326 ALSA SoC audio driver
8 * Author: David <zhuning@everset-semi.com>
9 * Author: Xing Zheng <zhengxing@rock-chips.com>
31 #include <sound/soc-dapm.h>
34 #include <linux/gpio.h>
100 static int es8326_set_gpio(struct es8326_priv *es8326, int gpio, bool level) in es8326_set_gpio() argument
105 if ((gpio & ES8326_CODEC_SET_SPK) && es8326->spk_ctl_gpio) in es8326_set_gpio()
106 gpiod_set_value(es8326->spk_ctl_gpio, level); in es8326_set_gpio()
108 if ((gpio & ES8326_CODEC_SET_HP) && es8326->hp_ctl_gpio) in es8326_set_gpio()
[all …]
H A Dwm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8903.c -- WM8903 ALSA SoC Audio driver
5 * Copyright 2008-12 Wolfson Microelectronics
6 * Copyright 2011-2012 NVIDIA, Inc.
11 * - TDM mode configuration.
12 * - Digital microphone support.
20 #include <linux/gpio/driver.h>
42 { 4, 0x0018 }, /* R4 - Bias Control 0 */
43 { 5, 0x0000 }, /* R5 - VMID Control 0 */
44 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
[all …]
H A Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
19 #include <linux/gpio/consumer.h>
27 #include <sound/soc-dapm.h>
28 #include <linux/gpio.h>
448 TLV_DB_MINMAX_ITEM(-10200, 1200));
465 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
477 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
480 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
482 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
[all …]
H A Dwm8962.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8962.c -- WM8962 ALSA SoC Audio driver
5 * Copyright 2010-2 Wolfson Microelectronics plc
17 #include <linux/gpio/driver.h>
98 regcache_mark_dirty(wm8962->regmap); \
113 { 0, 0x009F }, /* R0 - Left Input volume */
114 { 1, 0x049F }, /* R1 - Right Input volume */
115 { 2, 0x0000 }, /* R2 - HPOUTL volume */
116 { 3, 0x0000 }, /* R3 - HPOUTR volume */
118 { 5, 0x0018 }, /* R5 - ADC & DAC Control 1 */
[all …]
/OK3568_Linux_fs/kernel/drivers/extcon/
H A Dextcon-arizona.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
14 #include <linux/gpio/consumer.h>
15 #include <linux/gpio.h>
21 #include <linux/extcon-provider.h>
28 #include <dt-bindings/mfd/arizona.h>
143 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
148 switch (arizona->type) { in arizona_extcon_hp_clamp()
165 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
[all …]
/OK3568_Linux_fs/buildroot/output/OK3568/target/usr/lib/modules/5.10.160/
H A Dmodules.builtin.modinfo
/OK3568_Linux_fs/kernel/arch/mips/alchemy/devboards/
H A Ddb1200.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2008-2011 Manuel Lauss
9 #include <linux/dma-mapping.h>
10 #include <linux/gpio.h>
26 #include <asm/mach-au1x00/au1000.h>
27 #include <asm/mach-au1x00/au1100_mmc.h>
28 #include <asm/mach-au1x00/au1xxx_dbdma.h>
29 #include <asm/mach-au1x00/au1xxx_psc.h>
30 #include <asm/mach-au1x00/au1200fb.h>
31 #include <asm/mach-au1x00/au1550_spi.h>
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/analogix/
H A Danalogix_dp_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/extcon-provider.h>
13 #include <linux/gpio/consumer.h>
66 if (dp->plat_data->skip_connector) in analogix_dp_bandwidth_ok()
69 info = &dp->connector.display_info; in analogix_dp_bandwidth_ok()
70 if (info->bpc) in analogix_dp_bandwidth_ok()
71 bpp = 3 * info->bpc; in analogix_dp_bandwidth_ok()
73 req_bw = mode->clock * bpp / 8; in analogix_dp_bandwidth_ok()
109 mutex_lock(&dp->panel_lock); in analogix_dp_panel_prepare()
111 if (dp->panel_is_prepared) in analogix_dp_panel_prepare()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/rk628/
H A Drk628.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Wyon Bi <bivvy.bi@rock-chips.com>
13 #include <linux/gpio/consumer.h>
362 if (!rk628->display_enabled) in rk628_display_disable()
365 if (rk628->output_mode == OUTPUT_MODE_CSI) in rk628_display_disable()
368 if (rk628->output_mode == OUTPUT_MODE_GVI) in rk628_display_disable()
371 if (rk628->output_mode == OUTPUT_MODE_LVDS) in rk628_display_disable()
374 if (rk628->output_mode == OUTPUT_MODE_DSI) in rk628_display_disable()
379 if (rk628->input_mode == INPUT_MODE_HDMI) in rk628_display_disable()
382 rk628->display_enabled = false; in rk628_display_disable()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dlt8619c.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Dingxian Wen <shawn.wen@rock-chips.com>
21 #include <linux/gpio/consumer.h>
27 #include <linux/v4l2-dv-timings.h>
31 #include <linux/rk-camera-module.h>
32 #include <media/v4l2-dv-timings.h>
33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ctrls.h>
35 #include <media/v4l2-event.h>
36 #include <media/v4l2-fwnode.h>
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/panel/
H A Dpanel-ilitek-ili9322.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * - 8-bit serial RGB interface
7 * - 24-bit parallel RGB interface
8 * - 8-bit ITU-R BT.601 interface
9 * - 8-bit ITU-R BT.656 interface
10 * - Up to 320RGBx240 dots resolution TFT LCD displays
11 * - Scaling, brightness and contrast
15 * present to the system is something else than what comes out on the
19 * Derived from drivers/drm/gpu/panel/panel-samsung-ld9040.c
23 #include <linux/gpio/consumer.h>
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/nuvoton/
H A Dpinctrl-npcm7xx.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2016-2018 Nuvoton Technology corporation.
6 #include <linux/gpio/driver.h>
16 #include <linux/pinctrl/pinconf-generic.h>
39 /* GPIO registers */
43 #define NPCM7XX_GP_N_DOUT 0x0c /* Data OUT */
47 #define NPCM7XX_GP_N_PU 0x1c /* Pull-up */
48 #define NPCM7XX_GP_N_PD 0x20 /* Pull-down */
65 #define NPCM7XX_GP_N_DOS 0x68 /* Data OUT Set */
66 #define NPCM7XX_GP_N_DOC 0x6c /* Data OUT Clear */
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Drockchip_vop.c2 * (C) Copyright 2008-2017 Fuzhou Rockchip Electronics Co., Ltd
4 * SPDX-License-Identifier: GPL-2.0+
16 #include <linux/media-bus-format.h>
31 return us * mode->clock / mode->htotal / 1000; in us_to_vertical_line()
36 if (dm_gpio_is_valid(&vop->mcu_rs_gpio)) in set_vop_mcu_rs()
37 dm_gpio_set_value(&vop->mcu_rs_gpio, v); in set_vop_mcu_rs()
115 struct crtc_state *crtc_state = &state->crtc_state; in rockchip_vop_init_gamma()
116 struct connector_state *conn_state = &state->conn_state; in rockchip_vop_init_gamma()
117 u32 *lut = conn_state->gamma.lut; in rockchip_vop_init_gamma()
122 if (!conn_state->gamma.lut) in rockchip_vop_init_gamma()
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/zte/
H A Dpinctrl-zx296718.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include "pinctrl-zx.h"
434 TOP_MUX(0x0, "SPDIF"), /* out */
655 TOP_MUX(0x1, "GPIO")), /* gpio43 */
658 TOP_MUX(0x1, "GPIO")), /* gpio44 */
661 TOP_MUX(0x1, "GPIO")), /* gpio45 */
664 TOP_MUX(0x1, "GPIO")), /* gpio46 */
667 TOP_MUX(0x1, "GPIO")), /* gpio47 */
670 TOP_MUX(0x1, "GPIO")), /* gpio48 */
673 TOP_MUX(0x1, "GPIO")), /* gpio49 */
[all …]
/OK3568_Linux_fs/kernel/sound/pci/hda/
H A Dpatch_realtek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 /* extra amp-initialization sequence types */
84 /* GPIO bits */
139 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
142 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
147 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
149 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
201 if (val != -1) in __alc_update_coefex_idx()
221 struct alc_spec *spec = codec->spec; in alc_get_coef0()
223 if (!spec->coef0) in alc_get_coef0()
[all …]
/OK3568_Linux_fs/kernel/android/
H A Dabi_gki_aarch64.xml1 <abi-corpus-group version='2.0' architecture='elf-arm-aarch64'>
2 <abi-corpus version='2.0' path='vmlinux' architecture='elf-arm-aarch64'>
3 <elf-function-symbols>
4 …<elf-symbol name='PDE_DATA' type='func-type' binding='global-binding' visibility='default-visibili…
5 …<elf-symbol name='__ClearPageMovable' type='func-type' binding='global-binding' visibility='defaul…
6 …<elf-symbol name='__SetPageMovable' type='func-type' binding='global-binding' visibility='default-
7 …<elf-symbol name='___pskb_trim' type='func-type' binding='global-binding' visibility='default-visi…
8 …<elf-symbol name='___ratelimit' type='func-type' binding='global-binding' visibility='default-visi…
9 …<elf-symbol name='__alloc_disk_node' type='func-type' binding='global-binding' visibility='default
10 …<elf-symbol name='__alloc_pages_nodemask' type='func-type' binding='global-binding' visibility='de…
[all …]