Home
last modified time | relevance | path

Searched full:debounce (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/linux/drivers/gpio/
H A Dgpio-menz127.c39 unsigned debounce) in men_z127_debounce() argument
46 if (!MEN_Z127_DB_IN_RANGE(debounce)) { in men_z127_debounce()
47 dev_err(dev, "debounce value %u out of range", debounce); in men_z127_debounce()
51 if (debounce > 0) { in men_z127_debounce()
53 rnd = fls(debounce) - 1; in men_z127_debounce()
55 if (rnd && (debounce & BIT(rnd - 1))) in men_z127_debounce()
56 debounce = roundup(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
58 debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
60 if (debounce > MEN_Z127_DB_MAX_US) in men_z127_debounce()
61 debounce = MEN_Z127_DB_MAX_US; in men_z127_debounce()
[all …]
H A Dgpio-bcm-kona.c255 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
264 /* debounce must be 1-128ms (or 0) */ in bcm_kona_gpio_set_debounce()
265 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
266 dev_err(chip->parent, "Debounce value %u not in range\n", in bcm_kona_gpio_set_debounce()
267 debounce); in bcm_kona_gpio_set_debounce()
271 /* calculate debounce bit value */ in bcm_kona_gpio_set_debounce()
272 if (debounce != 0) { in bcm_kona_gpio_set_debounce()
274 debounce /= 1000; in bcm_kona_gpio_set_debounce()
276 res = fls(debounce) - 1; in bcm_kona_gpio_set_debounce()
278 if (res > 0 && (debounce & BIT(res - 1))) in bcm_kona_gpio_set_debounce()
[all …]
H A Dgpio-twl4030.c453 static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) in gpio_twl4030_debounce() argument
460 message[0] = (debounce & 0xff) | (mmc_cd & 0x03); in gpio_twl4030_debounce()
461 debounce >>= 8; in gpio_twl4030_debounce()
462 message[1] = (debounce & 0xff); in gpio_twl4030_debounce()
463 debounce >>= 8; in gpio_twl4030_debounce()
464 message[2] = (debounce & 0x03); in gpio_twl4030_debounce()
481 of_property_read_u32(dev->of_node, "ti,debounce", in of_gpio_twl4030()
482 &omap_twl_info->debounce); in of_gpio_twl4030()
561 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
563 dev_dbg(&pdev->dev, "debounce %.03x %.01x --> %d\n", in gpio_twl4030_probe()
[all …]
H A Dgpio-rockchip.c49 .debounce = 0x48,
64 .debounce = 0x38,
205 unsigned int debounce) in rockchip_gpio_set_debounce() argument
218 if (debounce > max_debounce) in rockchip_gpio_set_debounce()
221 div = debounce * freq; in rockchip_gpio_set_debounce()
230 if (debounce) { in rockchip_gpio_set_debounce()
232 /* Configure the max debounce from consumers */ in rockchip_gpio_set_debounce()
242 rockchip_gpio_writel_bit(bank, offset, 1, reg->debounce); in rockchip_gpio_set_debounce()
248 rockchip_gpio_writel_bit(bank, offset, 0, reg->debounce); in rockchip_gpio_set_debounce()
255 if (debounce) in rockchip_gpio_set_debounce()
[all …]
H A Dgpio-aspeed.c122 * 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.
124 * Array Index: Corresponds to the debounce setting register.
125 * The debounce timers array follows this pattern for configuring the debounce setting registers:
126 * Array Index 0: No debounce timer is set;
128 * Array Index 1: Debounce setting #2 is set to 1, and debounce setting #1 is set to 0.
129 * Array Value: offset for configuring debounce timer 0 (g4: 0x50, g7: 0x00)
130 * Array Index 2: Debounce setting #2 is set to 0, and debounce setting #1 is set to 1.
131 * Array Value: offset for configuring debounce timer 1 (g4: 0x54, g7: 0x04)
132 * Array Index 3: Debounce setting #2 is set to 1, and debounce setting #1 is set to 1.
[all …]
/linux/Documentation/devicetree/bindings/gpio/
H A Dsprd,gpio-eic.yaml19 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-
23 The EIC-debounce sub-module provides up to 8 source input signal
24 connections. A debounce mechanism is used to capture the input signals'
28 automatically to reduce power dissipation. Moreover the debounce range
47 - sprd,sc9860-eic-debounce
54 - sprd,ums512-eic-debounce
55 - const: sprd,sc9860-eic-debounce
115 compatible = "sprd,sc9860-eic-debounce";
/linux/drivers/mmc/core/
H A Dslot-gpio.c31 /* Schedule a card detection after a debounce timeout */ in mmc_gpio_cd_irqt()
180 * @debounce: debounce time in microseconds
189 unsigned int debounce) in mmc_gpiod_request_cd() argument
203 if (debounce) { in mmc_gpiod_request_cd()
204 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd()
206 ctx->cd_debounce_delay_ms = debounce / 1000; in mmc_gpiod_request_cd()
256 * @debounce: debounce time in microseconds
261 unsigned int idx, unsigned int debounce) in mmc_gpiod_request_ro() argument
275 if (debounce) { in mmc_gpiod_request_ro()
276 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_ro()
/linux/Documentation/devicetree/bindings/sound/
H A Dnuvoton,nau8825.yaml145 nuvoton,short-key-debounce:
148 Button short key press debounce time.
156 nuvoton,jack-insert-debounce:
159 number from 0 to 7 that sets debounce time to 2^(n+2) ms.
163 nuvoton,jack-eject-debounce:
166 number from 0 to 7 that sets debounce time to 2^(n+2) ms
231 nuvoton,short-key-debounce = <2>;
232 nuvoton,jack-insert-debounce = <7>;
233 nuvoton,jack-eject-debounce = <7>;
H A Dti,ts3a227e.yaml44 ti,debounce-release-ms:
45 description: key release debounce time in ms (datasheet section 9.6.7).
51 ti,debounce-press-ms:
52 description: key press debounce time in ms (datasheet section 9.6.7).
60 ti,debounce-insertion-ms:
61 description: headset insertion debounce time in ms (datasheet section 9.6.5).
H A Dnuvoton,nau8821.yaml75 nuvoton,jack-insert-debounce:
76 description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
81 nuvoton,jack-eject-debounce:
82 description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
141 nuvoton,jack-insert-debounce = <7>;
142 nuvoton,jack-eject-debounce = <0>;
H A Dnuvoton,nau8824.yaml139 nuvoton,short-key-debounce:
142 Button short key press debounce time.
149 nuvoton,jack-eject-debounce:
152 Jack ejection debounce time.
187 nuvoton,short-key-debounce = <0>;
188 nuvoton,jack-eject-debounce = <1>;
H A Dcirrus,cs42l42.yaml77 Debounce the rising edge of TIP_SENSE_PLUG. With no
78 debounce, the tip sense pin might be noisy on a plug event.
96 Debounce the falling edge of TIP_SENSE_UNPLUG. With no
97 debounce, the tip sense pin might be noisy on an unplug event.
118 There may be erroneous button interrupts if this debounce time
/linux/arch/arm/boot/dts/samsung/
H A Ds3c6410-mini6410.dts71 debounce-interval = <20>;
78 debounce-interval = <20>;
85 debounce-interval = <20>;
92 debounce-interval = <20>;
99 debounce-interval = <20>;
106 debounce-interval = <20>;
113 debounce-interval = <20>;
120 debounce-interval = <20>;
/linux/drivers/input/keyboard/
H A Dmt6779-keypad.c116 u32 debounce; in mt6779_keypad_pdrv_probe() local
155 if (device_property_read_u32(&pdev->dev, "debounce-delay-ms", in mt6779_keypad_pdrv_probe()
156 &debounce)) in mt6779_keypad_pdrv_probe()
157 debounce = 16; in mt6779_keypad_pdrv_probe()
159 if (debounce > MTK_KPD_DEBOUNCE_MAX_MS) { in mt6779_keypad_pdrv_probe()
161 "Debounce time exceeds the maximum allowed time %dms\n", in mt6779_keypad_pdrv_probe()
185 dev_dbg(&pdev->dev, "n_row=%d n_col=%d debounce=%d\n", in mt6779_keypad_pdrv_probe()
186 keypad->n_rows, keypad->n_cols, debounce); in mt6779_keypad_pdrv_probe()
199 (debounce * (1 << 5)) & MTK_KPD_DEBOUNCE_MASK); in mt6779_keypad_pdrv_probe()
/linux/Documentation/userspace-api/gpio/
H A Dgpio-v2-get-line-ioctl.rst87 be applied to lines with ``GPIO_V2_LINE_FLAG_INPUT`` set. When set, debounce
91 kernel. Requesting debounce on a line that supports neither debounce in
118 Debounce emulate
129 Debounce is emulated by applying a filter to hardware interrupts on the line.
131 stable for the debounce period.
132 The event timestamp corresponds to the end of the debounce period.
/linux/Documentation/devicetree/bindings/input/
H A Dbrcm,bcm-keypad.txt29 - col-debounce-filter-period: The debounce period for the Column filter.
40 - status-debounce-filter-period: The debounce period for the Status filter.
102 col-debounce-filter-period = <5>;
H A Dpxa27x-keypad.txt7 - marvell,debounce-interval : How long time the key will be
9 is debounce interval for direct key and bit[15:0] is debounce
59 marvell,debounce-interval = <0x001e001e>;
H A Dlpc32xx-key.txt12 - nxp,debounce-delay-ms: Debounce delay in ms
31 nxp,debounce-delay-ms = <3>;
H A Dgpio-matrix-keypad.txt24 - debounce-delay-ms: debounce interval in milliseconds
33 debounce-delay-ms = <5>;
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dti,ads7843.yaml41 ti,debounce-max:
47 ti,debounce-rep:
52 ti,debounce-tol:
67 ti,pendown-gpio-debounce:
70 Platform specific debounce time for the pendown-gpio.
/linux/sound/soc/codecs/
H A Dmt6359-accdet.c59 unsigned int debounce);
143 /* set debounce to 1ms */ in mt6359_accdet_jd_setting()
269 unsigned int debounce) in accdet_set_debounce() argument
273 regmap_write(priv->regmap, ACCDET_DEBOUNCE0_ADDR, debounce); in accdet_set_debounce()
276 regmap_write(priv->regmap, ACCDET_DEBOUNCE1_ADDR, debounce); in accdet_set_debounce()
279 regmap_write(priv->regmap, ACCDET_DEBOUNCE2_ADDR, debounce); in accdet_set_debounce()
282 regmap_write(priv->regmap, ACCDET_DEBOUNCE3_ADDR, debounce); in accdet_set_debounce()
286 ACCDET_CONNECT_AUXADC_TIME_DIG_ADDR, debounce); in accdet_set_debounce()
291 debounce << ACCDET_EINT_DEBOUNCE0_SFT); in accdet_set_debounce()
296 debounce << ACCDET_EINT_DEBOUNCE1_SFT); in accdet_set_debounce()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-amd.c120 unsigned int debounce) in amd_gpio_set_debounce() argument
126 /* Use special handling for Pin0 debounce */ in amd_gpio_set_debounce()
130 debounce = 0; in amd_gpio_set_debounce()
135 if (debounce) { in amd_gpio_set_debounce()
139 Debounce Debounce Timer Max in amd_gpio_set_debounce()
140 TmrLarge TmrOutUnit Unit Debounce in amd_gpio_set_debounce()
148 if (debounce < 61) { in amd_gpio_set_debounce()
152 } else if (debounce < 976) { in amd_gpio_set_debounce()
153 time = debounce / 61; in amd_gpio_set_debounce()
157 } else if (debounce < 3900) { in amd_gpio_set_debounce()
[all …]
/linux/arch/arm/boot/dts/arm/
H A Dintegratorap-im-pd1.dts92 debounce-interval = <50>;
98 debounce-interval = <50>;
104 debounce-interval = <50>;
110 debounce-interval = <50>;
116 debounce-interval = <50>;
122 debounce-interval = <50>;
/linux/drivers/input/touchscreen/
H A Dmk712.c81 static int debounce = 1; in mk712_interrupt() local
90 debounce = 1; in mk712_interrupt()
95 debounce = 1; in mk712_interrupt()
100 if (debounce) { in mk712_interrupt()
101 debounce = 0; in mk712_interrupt()
H A Dts4800-ts.c45 int debounce; member
54 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_open()
84 if (ts->debounce) { in ts4800_ts_poll()
85 ts->debounce--; in ts4800_ts_poll()
102 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_poll()

12345678910>>...20