| /linux/Documentation/devicetree/bindings/sound/ |
| H A 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/drivers/input/keyboard/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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/Documentation/devicetree/bindings/input/ |
| H A 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@kernel.org> 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/sound/soc/codecs/ |
| H A 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 != -EINVA in cs42l43_find_index() [all...] |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| /linux/drivers/input/misc/ |
| H A 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/drivers/input/touchscreen/ |
| H A 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/drivers/gpu/drm/bridge/analogix/ |
| H A 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/drivers/extcon/ |
| H A 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/drivers/usb/core/ |
| H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 66 * The SET_ADDRESS request timeout will be 500 ms when 69 #define USB_SHORT_SET_ADDRESS_REQ_TIMEOUT 500 /* ms */ 72 * Give SS hubs 200ms time after wake to train downstream links before 75 #define USB_SS_PORT_U0_WAKE_TIME 200 /* ms */ 77 /* Protect struct usb_device->state and ->children members 78 * Note: Both are also protected by ->dev.sem, except that ->state can 86 /* synchronize hub-port add/remove and peering operations */ 96 * 10 seconds to send reply for the initial 64-byte descriptor request. 98 /* define initial 64-byte descriptor request timeout in milliseconds */ [all …]
|
| /linux/include/linux/greybus/ |
| H A 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/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 213 VDM_STATE_ERR_BUSY = -3, 214 VDM_STATE_ERR_SEND = -2, 215 VDM_STATE_ERR_TMOUT = -1, 244 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 329 * @sink_wait_cap_time: Deadline (in ms) for tTypeCSinkWaitCap timer 330 * @ps_src_wait_off_time: Deadline (in ms) for tPSSourceOff timer 331 * @cc_debounce_time: Deadline (in ms) for tCCDebounce timer 537 * SNK_READY for non-pd link. [all …]
|
| /linux/drivers/net/wan/ |
| H A 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/Documentation/admin-guide/ |
| H A D | kernel-parameters.txt | 16 force -- enable ACPI if default was off 17 on -- enable ACPI but allow fallback to DT [arm64,riscv64] 18 off -- disable ACPI if default was on 19 noirq -- do not use ACPI for IRQ routing 20 strict -- Be less tolerant of platforms that are not 22 rsdt -- prefer RSDT over (default) XSDT 23 copy_dsdt -- copy DSDT to memory 24 nocmcff -- Disable firmware first mode for corrected 28 nospcr -- disable console in ACPI SPCR table as 45 If set to vendor, prefer vendor-specific driver [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | chip.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2020 Intel Corporation. 32 MODULE_PARM_DESC(num_vls, "Set number of Virtual Lanes to use (1-8)"); 78 #define SEC_SC_HALTED 0x4 /* per-context only */ 79 #define SEC_SPC_FREEZE 0x8 /* per-HFI only */ 87 * 0 - User Fecn Handling 88 * 1 - Vnic 89 * 2 - AIP 90 * 3 - Verbs 101 #define emulator_rev(dd) ((dd)->irev >> 8) [all …]
|