/linux/Documentation/devicetree/bindings/gpio/ |
H A D | sprd,gpio-eic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/gpio/sprd,gpio-eic.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Orson Zhai <orsonzhai@gmail.com> 12 - Baolin Wang <baolin.wang7@gmail.com> 13 - Chunyan Zhang <zhang.lyra@gmail.com> 17 be used only in input mode. The Spreadtrum platform has 2 EIC controllers, 19 controller contains 4 sub-modules, i.e. EIC-debounce, EIC-latch, EIC-async and 20 EIC-sync. But the PMIC EIC controller contains only one EIC-debounce sub- [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | nuvoton,nau8821.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Seven Lee <wtli@nuvoton.com> 13 - $ref: dai-common.yaml# 25 nuvoton,jkdet-enable: 29 nuvoton,jkdet-pull-enable: 30 description: Enable JKDET pin pull. If set - pin pull enabled, 34 nuvoton,jkdet-pull-up: 35 description: Pull-up JKDET pin. If set then JKDET pin is pull up, [all …]
|
H A D | cirrus,cs42l43.yaml | 1 # 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 loudspeakers, and two ADCs for wired headset microphone input or 18 stereo line input. PDM inputs are provided for digital microphones. 21 - $ref: dai-common.yaml# 26 - cirrus,cs42l43 31 vdd-p-supply: 35 vdd-a-supply: [all …]
|
H A D | nuvoton,nau8825.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - John Hsu <KCHSU0@nuvoton.com> 13 - $ref: dai-common.yaml# 18 - nuvoton,nau8825 26 nuvoton,jkdet-enable: 31 nuvoton,jkdet-pull-enable: 34 If set - pin pull enabled, otherwise pin in high impedance state. 37 nuvoton,jkdet-pull-up: [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A D | brcm,bcm-keypad.txt | 3 Broadcom Keypad controller is used to interface a SoC with a matrix-type 6 The keypad controller can sense a key-press and key-release and report the 9 This binding is based on the matrix-keymap binding with the following 12 keypad,num-rows and keypad,num-columns are required. 15 - compatible: should be "brcm,bcm-keypad" 17 - reg: physical base address of the controller and length of memory mapped 20 - interrupts: The interrupt number to the cpu. 23 - keypad,num-rows: Number of row lines connected to the keypad 26 - keypad,num-columns: Number of column lines connected to the 29 - col-debounce-filter-period: The debounce period for the Column filter. [all …]
|
H A D | qcom,pm8921-keypad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/qcom,pm8921-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 13 - $ref: input.yaml# 14 - $ref: matrix-keymap.yaml# 19 - qcom,pm8058-keypad 20 - qcom,pm8921-keypad 27 - description: key sense [all …]
|
H A D | lpc32xx-key.txt | 3 This binding is based on the matrix-keymap binding with the following 7 - compatible: Should be "nxp,lpc3220-key" 8 - reg: Physical base address of the controller and length of memory mapped 10 - interrupts: The interrupt number to the cpu. 11 - clocks: phandle to clock controller plus clock-specifier pair 12 - nxp,debounce-delay-ms: Debounce delay in ms 13 - nxp,scan-delay-ms: Repeated scan period in ms 14 - linux,keymap: the key-code to be reported when the key is pressed 16 Documentation/devicetree/bindings/input/matrix-keymap.txt 18 Note: keypad,num-rows and keypad,num-columns are required, and must be equal [all …]
|
H A D | qcom,pm8921-pwrkey.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/qcom,pm8921-pwrkey.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <andersson@kernel.org> 13 - $ref: input.yaml# 18 - enum: 19 - qcom,pm8921-pwrkey 20 - qcom,pm8058-pwrkey 21 - items: [all …]
|
/linux/drivers/input/keyboard/ |
H A D | mt6779-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/input.h> 9 #include <linux/input/matrix_keypad.h> 16 #define MTK_KPD_NAME "mt6779-keypad" 51 const unsigned short *keycode = keypad->input_dev->keycode; in mt6779_keypad_irq_handler() 57 unsigned int row_shift = get_count_order(keypad->n_cols); in mt6779_keypad_irq_handler() 60 regmap_bulk_read(keypad->regmap, MTK_KPD_MEM, in mt6779_keypad_irq_handler() 63 bitmap_xor(change, new_state, keypad->keymap_state, MTK_KPD_NUM_BITS); in mt6779_keypad_irq_handler() 74 keypad->calc_row_col(key, &row, &col); in mt6779_keypad_irq_handler() 79 dev_dbg(&keypad->input_dev->dev, "%s", in mt6779_keypad_irq_handler() [all …]
|
H A D | bcm-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/input.h> 9 #include <linux/input/matrix_keypad.h> 65 /* Structure representing various run-time entities */ 82 * Returns the keycode from the input device keymap given the row and 87 unsigned int row_shift = get_count_order(kp->n_cols); in bcm_kp_get_keycode() 88 unsigned short *keymap = kp->input_dev->keycode; in bcm_kp_get_keycode() 102 writel(0xFFFFFFFF, kp->base + KPICRN_OFFSET(reg_num)); in bcm_kp_report_keys() 104 state = readl(kp->base + KPSSRN_OFFSET(reg_num)); in bcm_kp_report_keys() 105 change = kp->last_state[reg_num] ^ state; in bcm_kp_report_keys() [all …]
|
H A D | lpc32xx-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include <linux/input.h> 25 #include <linux/input/matrix_keypad.h> 57 struct input_dev *input; member 62 u32 deb_clks; /* Debounce clocks (based on 32KHz clock) */ 73 struct input_dev *input = kscandat->input; in lpc32xx_mod_states() local 77 key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); in lpc32xx_mod_states() 78 changed = key ^ kscandat->lastkeystates[col]; in lpc32xx_mod_states() 79 kscandat->lastkeystates[col] = key; in lpc32xx_mod_states() 85 kscandat->row_shift); in lpc32xx_mod_states() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | ts4800-ts.c | 2 * Touchscreen driver for the TS-4800 board 4 * Copyright (c) 2015 - Savoir-faire Linux 12 #include <linux/input.h> 26 /* sensor values are 12-bit wide */ 27 #define MAX_12BIT ((1 << 12) - 1) 35 struct input_dev *input; member 45 int debounce; member 53 ts->pendown = false; in ts4800_ts_open() 54 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_open() 56 error = regmap_update_bits(ts->regmap, ts->reg, ts->bit, ts->bit); in ts4800_ts_open() [all …]
|
H A D | mk712.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Transmeta Corporation 16 * https://www.idt.com/general-parts/mk712-touch-screen-controller 20 * 1999-12-18: original version, Daniel Quinlan 21 * 1999-12-19: added anti-jitter code, report pen-up events, fixed mk712_poll 23 * 1999-12-20: improved random point rejection, Nathan Laredo 24 * 2000-01-05: checked in new anti-jitter code, changed mouse protocol, fixed 26 * 2002-03-15: Clean up for kernel merge <alan@redhat.com> 29 * 2005-01-18: Ported to 2.6 from 2.4.28, Rick Koch 30 * 2005-02-05: Rewritten for the input layer, Vojtech Pavlik [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8998-fxtec-pro1.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 20 chassis-type = "handset"; 21 qcom,board-id = <0x02000b 0x10>; 29 * Until we hook up type-c detection, we 32 extcon_usb: extcon-usb { 33 compatible = "linux,extcon-usb-gpio"; [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */ 34 #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) 35 #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) 56 u32 input; member 97 uint16_t val_regs; /* +0: Rd: read input value, Wr: set write latch 108 * Note: The "value" register returns the input value sampled on the 110 * that input goes through synchronizers, writing, then reading 122 * The debounce timers array is used to configure the debounce timer settings.Here’s how it works: 123 * Array Value: Indicates the offset for configuring the debounce timer. [all …]
|
H A D | gpio-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <linux/pinctrl/pinconf-generic.h> 27 #include "../pinctrl/pinctrl-rockchip.h" 31 * Bits [31:24] - Major Version 32 * Bits [23:16] - Minor Version 33 * Bits [15:0] - Revision Number 49 .debounce = 0x48, 64 .debounce = 0x38, 86 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_writel() 88 if (bank->gpio_type == GPIO_TYPE_V2) in rockchip_gpio_writel() [all …]
|
/linux/drivers/input/misc/ |
H A D | pm8941-pwrkey.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2010-2011, 2020-2021, The Linux Foundation. All rights reserved. 9 #include <linux/input.h> 73 struct input_dev *input; member 96 if (pwrkey->revision == 0) in pm8941_reboot_notify() 101 error = regmap_update_bits(pwrkey->regmap, in pm8941_reboot_notify() 102 pwrkey->baseaddr + enable_reg, in pm8941_reboot_notify() 106 dev_err(pwrkey->dev, in pm8941_reboot_notify() 130 error = regmap_update_bits(pwrkey->regmap, in pm8941_reboot_notify() 131 pwrkey->baseaddr + PON_PS_HOLD_RST_CTL, in pm8941_reboot_notify() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | tc3589x.txt | 1 * Toshiba TC3589x multi-purpose expander 3 The Toshiba TC3589x series are I2C-based MFD devices which may expose the 4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for 7 - TC35890 8 - TC35892 9 - TC35893 10 - TC35894 11 - TC35895 12 - TC35896 15 - compatible : must be "toshiba,tc35890", "toshiba,tc35892", "toshiba,tc35893", [all …]
|
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | atmel,sama5d2-shdwc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/atmel,sama5d2-shdw [all...] |
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | azoteq,iqs7211.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/azoteq,iqs7211.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS7210A, IQS7211A and IQS7211E trackpad and touchscreen control- 14 lers employ projected-capacitance sensing and can track two contacts. 21 - azoteq,iqs7210a 22 - azoteq,iqs7211a 23 - azoteq,iqs7211e [all …]
|
/linux/include/linux/platform_data/ |
H A D | adau17x1.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2011-2014 Analog Devices Inc. 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 13 * enum adau17x1_micbias_voltage - Microphone bias voltage 23 * enum adau1761_digmic_jackdet_pin_mode - Configuration of the JACKDET/MICIN pin 26 * digital microphone input. 37 * adau1761_jackdetect_debounce_time - Jack insertion detection debounce time 51 * enum adau1761_output_mode - Output mode configuration 63 * struct adau1761_platform_data - ADAU1761 Codec driver platform data 64 * @input_differential: If true the input pins will be configured in [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-var-dt6customboard.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Support for Variscite DART-MX6 Carrier-board 9 /dts-v1/; 12 #include "imx6qdl-var-dart.dtsi" 13 #include <dt-bindings/input/linux-event-codes.h> 16 model = "Variscite DART-MX6 Carrier-board"; 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 4 8 16 32 64 128 248>; 23 default-brightness-level = <7>; 27 gpio-keys { [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-ipq8064-v1.0.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-ipq8064.dtsi" 3 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/leds/common.h> 7 model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; 14 stdout-path = "serial0:115200n8"; 17 gpio-keys { 18 compatible = "gpio-keys"; 19 pinctrl-0 = <&buttons_pins>; 20 pinctrl-names = "default"; [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | pincfg-node.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 21 bias-disable: 25 bias-high-impedance: 27 description: high impedance mode ("third-state", "floating") 29 bias-bus-hold: 33 bias-pull-up: [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-370-seagate-personal-cloud.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree common file for the Seagate Personal Cloud NAS 1 and 2-Bay 15 #include "armada-370.dtsi" 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 21 stdout-path = "serial0:115200n8"; 33 internal-regs { 34 coherency-fabric@20200 { 35 broken-idle; 44 pinctrl-0 = <&ge1_rgmii_pins>; [all …]
|