/linux-6.12.1/Documentation/devicetree/bindings/sound/ |
D | ti,ts3a227e.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Dylan Reid <dgreid@chromium.org> 14 The TS3A227E detect headsets of 3-ring and 4-ring standards and 22 - ti,ts3a227e 34 - 0 # 2.1 V 35 - 1 # 2.2 V 36 - 2 # 2.3 V 37 - 3 # 2.4 V [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/input/ |
D | gpio-matrix-keypad.txt | 6 keypad can sense a key-press and key-release by means of GPIO lines and 10 - compatible: Should be "gpio-matrix-keypad" 11 - row-gpios: List of gpios used as row lines. The gpio specifier 14 - col-gpios: List of gpios used as column lines. The gpio specifier 17 - linux,keymap: The definition can be found at 18 bindings/input/matrix-keymap.txt 21 - linux,no-autorepeat: do no enable autorepeat feature. 22 - wakeup-source: use any event on keypad as wakeup event. 24 - debounce-delay-ms: debounce interval in milliseconds 25 - col-scan-delay-us: delay, measured in microseconds, that is needed [all …]
|
D | mediatek,mt6779-keypad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mattijs Korpershoek <mkorpershoek@baylibre.com> 13 - $ref: /schemas/input/matrix-keymap.yaml# 16 Mediatek's Keypad controller is used to interface a SoC with a matrix-type 19 The keypad controller can sense a key-press and key-release and report the 25 - const: mediatek,mt6779-keypad 26 - items: [all …]
|
/linux-6.12.1/drivers/input/keyboard/ |
D | max7359_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max7359_keypad.c - MAX7359 Key Switch Controller Driver 10 * Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/5456 47 * Autosleep register values (ms) 69 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg() 79 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg() 84 /* runs in an IRQ thread -- can (and will!) sleep */ 88 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt() 89 int val, row, col, release, code; in max7359_interrupt() local 91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt() [all …]
|
D | omap4-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 54 * Errata i689: If a key is released for a time shorter than debounce time, 55 * the keyboard will idle and never detect the key release. The workaround 56 * is to use at least a 12ms debounce time. See omap5432 TRM chapter 61 ((((dbms) * 1000) / ((1 << ((ptv) + 1)) * (1000000 / 32768))) - 1) 92 return __raw_readl(keypad_data->base + in kbd_readl() 93 keypad_data->reg_offset + offset); in kbd_readl() 99 keypad_data->base + keypad_data->reg_offset + offset); in kbd_writel() 104 return __raw_readl(keypad_data->base + in kbd_read_irqreg() 105 keypad_data->irqreg_offset + offset); in kbd_read_irqreg() [all …]
|
D | twl4030_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * twl4030_keypad.c - driver for 8x8 keypad controller in twl4030 chips 8 * Code re-written for 2430SDP by: 27 * events, since it uses only the always-on 32KiHz oscillator, and has 29 * multi-key combinations. 59 /*----------------------------------------------------------------------*/ 100 #define KEYP_PERIOD_US(t, prescale) ((t) / (31 << ((prescale) + 1)) - 1) 123 /*----------------------------------------------------------------------*/ 131 dev_warn(kp->dbg_dev, in twl4030_kpread() 132 "Couldn't read TWL4030: %X - ret %d[%x]\n", in twl4030_kpread() [all …]
|
D | tegra-kbc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2009-2011, NVIDIA Corporation. 156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys() 165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys() 167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys() 178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys() 182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys() 190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys() 210 scancodes[i] += kbc->max_keys; in tegra_kbc_report_keys() 211 keycodes[i] = kbc->keycode[scancodes[i]]; in tegra_kbc_report_keys() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | ts3a227e.c | 1 // SPDX-License-Identifier: GPL-2.0-only 159 if (!ts3a227e->jack) in ts3a227e_jack_report() 162 if (ts3a227e->plugged) in ts3a227e_jack_report() 164 if (ts3a227e->mic_present) in ts3a227e_jack_report() 167 if (ts3a227e->buttons_held & (1 << i)) in ts3a227e_jack_report() 170 snd_soc_jack_report(ts3a227e->jack, report, TS3A227E_JACK_MASK); in ts3a227e_jack_report() 180 ts3a227e->plugged = plugged; in ts3a227e_new_jack_state() 182 if (mic_present != ts3a227e->mic_present) { in ts3a227e_new_jack_state() 183 ts3a227e->mic_present = mic_present; in ts3a227e_new_jack_state() 184 ts3a227e->buttons_held = 0; in ts3a227e_new_jack_state() [all …]
|
D | cs42l43-jack.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (C) 2022-2023 Cirrus Logic, Inc. and 15 #include <linux/mfd/cs42l43-regs.h> 26 #include <sound/soc-component.h> 27 #include <sound/soc-jack.h> 50 struct cs42l43 *cs42l43 = priv->core; in cs42l43_find_index() 53 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index() 54 if (ret != -EINVAL && ret < 0) { in cs42l43_find_index() 55 dev_err(priv->dev, "Property %s malformed: %d\n", prop, ret); in cs42l43_find_index() 66 dev_err(priv->dev, "Invalid value for property %s: %d\n", prop, defval); in cs42l43_find_index() [all …]
|
D | wcd-mbhc-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. 14 #include "wcd-mbhc-v2.h" 76 /* Holds type of Headset - Mono/Stereo */ 78 /* Holds mbhc detection method - ADC/Legacy */ 85 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 88 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() 89 mbhc->fields[field].reg, in wcd_mbhc_write_field() 90 mbhc->fields[field].mask, val); in wcd_mbhc_write_field() 95 if (!mbhc->fields[field].reg) in wcd_mbhc_read_field() [all …]
|
D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 35 #define NUVOTON_CODEC_DAI "nau8825-hifi" 223 * nau8825_sema_acquire - acquire the semaphore of nau88l25 226 * until release 233 * this function returns -ETIME. If the sleep is interrupted by a signal, 234 * this function will return -EINTR. It returns 0 if the semaphore was 246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire() 248 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire() 250 ret = down_trylock(&nau8825->xtalk_sem); in nau8825_sema_acquire() [all …]
|
D | max98388.c | 1 // SPDX-License-Identifier: GPL-2.0 75 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event() 80 regmap_write(max98388->regmap, in max98388_dac_event() 85 regmap_write(max98388->regmap, in max98388_dac_event() 88 max98388->tdm_mode = false; in max98388_dac_event() 131 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1); 132 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0); 135 "0dBFS", "-1dBFS", "-2dBFS", "-3dBFS", "-4dBFS", "-5dBFS", 136 "-6dBFS", "-7dBFS", "-8dBFS", "-9dBFS", "-10dBFS", "-11dBFS", 137 "-12dBFS", "-13dBFS", "-14dBFS", "-15dBFS" [all …]
|
D | nau8821.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // nau8821.c -- Nuvoton NAU88L21 audio codec driver 7 // Co-author: Seven Lee <wtli@nuvoton.com> 32 static int quirk_override = -1; 34 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 285 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_get() 287 if (!component->regmap) in nau8821_biq_coeff_get() 288 return -EINVAL; in nau8821_biq_coeff_get() 290 regmap_raw_read(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_get() 291 ucontrol->value.bytes.data, params->max); in nau8821_biq_coeff_get() [all …]
|
D | da7218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7218.c - DA7218 ALSA SoC Codec Driver 22 #include <sound/soc-dapm.h> 37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0); 38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0); 39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0); 40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0); 50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0); [all …]
|
D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 static int quirk_override = -1; 37 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 211 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire() 213 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire() 215 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire() 217 dev_warn(nau8824->dev, "Acquire semaphore fail\n"); in nau8824_sema_acquire() 225 up(&nau8824->jd_sem); in nau8824_sema_release() 304 "Off", "NC", "u-law", "A-law" }; 359 static const DECLARE_TLV_DB_MINMAX(hp_vol_tlv, -3000, 0); [all …]
|
D | wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8994.c -- WM8994 ALSA SoC Audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() 120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate() 124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate() 126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate() 128 if (control->pdata.micd_rates) { in wm8958_micd_set_rate() 129 rates = control->pdata.micd_rates; in wm8958_micd_set_rate() 130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() [all …]
|
/linux-6.12.1/drivers/input/misc/ |
D | iqs7222.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 116 [IQS7222_REG_GRP_CYCLE] = "cycle-%d", 117 [IQS7222_REG_GRP_CHAN] = "channel-%d", 118 [IQS7222_REG_GRP_SLDR] = "slider-%d", 120 [IQS7222_REG_GRP_GPIO] = "gpio-%d", 150 .name = "event-prox", 155 .name = "event-touch", 162 { .name = "event-press", }, 164 .name = "event-tap", 171 .name = "event-swipe-pos", [all …]
|
/linux-6.12.1/drivers/input/touchscreen/ |
D | iqs7211.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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", 173 .name = "event-swipe-y-neg", [all …]
|
/linux-6.12.1/drivers/gpu/drm/bridge/analogix/ |
D | anx7625.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 /* Loading OCM re-trying times */ 138 /* HPD debounce time 2ms for 27M clock */ 149 #define HFP_HBP_DEF ((HBLANKING_MIN - SYNC_LEN_DEF) / 2) 229 #define CLK_1MEG_RB 6 /* 1MHz clock reset; 0=reset, 0=reset release */ 251 #define DPCD_CMD(len, cmd) ((((len) - 1) << LENGTH_SHIFT) | (cmd)) 254 /* 0x01: frame packing, 0x02:Line alternative, 0x03:Side-by-side(full) */ 304 /* Bit[1:0]: test point output select - */ 312 /* Bit[5:4]: VCO metal capacitance - */ 313 /* 00: +20% fast, 01: +10% fast (default), 10: typical, 11: -10% slow */ [all …]
|
/linux-6.12.1/drivers/extcon/ |
D | extcon-rtk-type-c.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * * extcon-rtk-type-c.c - Realtek Extcon Type C driver 22 #include <linux/extcon-provider.h> 24 #include <linux/nvmem-consumer.h> 73 u32 debounce; /* 1b,1us 7f,4.7us */ member 221 #define DETECT_TIME 50 /* ms */ 243 void __iomem *reg = type_c->reg_base + USB_TYPEC_CTRL_CC1_0; in rtd129x_switch_type_c_plug_config() 263 dev_err(type_c->dev, "%s: Error cc setting cc=0x%x\n", __func__, cc); in rtd129x_switch_type_c_plug_config() 264 return -EINVAL; in rtd129x_switch_type_c_plug_config() 271 dev_dbg(type_c->dev, "%s: cc=0x%x val_cc=0x%x usb_typec_ctrl_cc1_0=0x%x\n", in rtd129x_switch_type_c_plug_config() [all …]
|
/linux-6.12.1/drivers/net/wwan/iosm/ |
D | iosm_ipc_imem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-21 Intel Corporation. 20 return chnl->ctype == IPC_CTYPE_WWAN && in ipc_imem_check_wwan_ips() 21 chnl->if_id == IPC_MEM_MUX_IP_CH_IF_ID; in ipc_imem_check_wwan_ips() 32 ipc_imem->device_sleep = state; in ipc_imem_msg_send_device_sleep() 34 return ipc_protocol_tq_msg_send(ipc_imem->ipc_protocol, in ipc_imem_msg_send_device_sleep() 42 if (pipe->nr_of_queued_entries >= pipe->max_nr_of_queued_entries) in ipc_imem_dl_skb_alloc() 45 return ipc_protocol_dl_td_prepare(ipc_imem->ipc_protocol, pipe); in ipc_imem_dl_skb_alloc() 59 struct ipc_pipe *pipe = &ipc_imem->channels[i].dl_pipe; in ipc_imem_tq_td_alloc_timer() 61 if (!pipe->is_open || pipe->nr_of_queued_entries > 0) in ipc_imem_tq_td_alloc_timer() [all …]
|
/linux-6.12.1/include/linux/greybus/ |
D | greybus_protocols.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 3 * Copyright(c) 2014 - 2015 Google Inc. All rights reserved. 4 * Copyright(c) 2014 - 2015 Linaro Ltd. All rights reserved. 14 /* SVC switch-port device ids */ 43 * endian. Any operation-specific data begins immediately after the 237 /* firmware download release firmware request */ 241 /* firmware download release firmware response has no payload */ 374 #define GB_BOOTROM_TYPE_AP_READY 0x05 /* Request with no-payload */ 375 #define GB_BOOTROM_TYPE_GET_VID_PID 0x06 /* Request with no-payload */ 663 * The data for each write (master -> slave) op in the array is sent [all …]
|
/linux-6.12.1/drivers/mmc/host/ |
D | mmc_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * (C) Copyright 2006-2007, David Brownell 9 * Hans-Peter Nilsson (hp@axis.com) 19 #include <linux/crc-itu-t.h> 24 #include <linux/mmc/slot-gpio.h> 34 * - For now, we won't try to interoperate with a real mmc/sd/sdio 36 * SPI protocol. The main reason for such configs would be mmc-ish 43 * - MMC depends on a different chipselect management policy than the 51 * - We tell the controller to keep the chipselect active from the 53 * of SPI controller drivers that mis-handle the cs_change flag! [all …]
|
/linux-6.12.1/drivers/net/wan/ |
D | farsync.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Actually sync driver for X.21, V.35 and V.24 on FarSync T-series cards 6 * Copyright (C) 2001-2004 FarSite Communications Ltd. 35 MODULE_DESCRIPTION("FarSync T-Series WAN driver. FarSite Communications Ltd."); 71 #define ARPHRD_MYTYPE ARPHRD_HDLC /* Cisco-HDLC (keepalives etc) */ 94 * file. Unfortunately various name clashes and the non-portability of the 163 #define cnv_bcnt(len) (-(len)) 320 * within 2mS (I guess NT has problems) 336 /* Adapter debounce timers. Don't touch */ 346 u16 cardMode; /* Bit-mask to enable features: [all …]
|
/linux-6.12.1/drivers/usb/typec/tcpm/ |
D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 210 VDM_STATE_ERR_BUSY = -3, 211 VDM_STATE_ERR_SEND = -2, 212 VDM_STATE_ERR_TMOUT = -1, 240 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 510 * SNK_READY for non-pd link. 583 (tcpm_cc_is_sink((port)->cc1) || tcpm_cc_is_sink((port)->cc2)) 590 ((tcpm_cc_is_source((port)->cc1) && \ 591 !tcpm_cc_is_source((port)->cc2)) || \ [all …]
|