Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v5.10/drivers/gpio/
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 …]
Dgpio-omap.c42 u32 debounce; member
156 * Disable debounce before cutting it's clock. If debounce is in omap_gpio_dbck_disable()
168 * omap2_set_gpio_debounce - low level gpio debounce time
171 * @debounce: debounce time to use
173 * OMAP's debounce time is in 31us steps
174 * <debounce time> = (GPIO_DEBOUNCINGTIME[7:0].DEBOUNCETIME + 1) x 31
180 unsigned debounce) in omap2_set_gpio_debounce() argument
184 bool enable = !!debounce; in omap2_set_gpio_debounce()
190 debounce = DIV_ROUND_UP(debounce, 31) - 1; in omap2_set_gpio_debounce()
191 if ((debounce & OMAP4_GPIO_DEBOUNCINGTIME_MASK) != debounce) in omap2_set_gpio_debounce()
[all …]
Dgpio-bcm-kona.c262 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
271 /* debounce must be 1-128ms (or 0) */ in bcm_kona_gpio_set_debounce()
272 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
273 dev_err(chip->parent, "Debounce value %u not in range\n", in bcm_kona_gpio_set_debounce()
274 debounce); in bcm_kona_gpio_set_debounce()
278 /* calculate debounce bit value */ in bcm_kona_gpio_set_debounce()
279 if (debounce != 0) { in bcm_kona_gpio_set_debounce()
281 debounce /= 1000; in bcm_kona_gpio_set_debounce()
283 res = fls(debounce) - 1; in bcm_kona_gpio_set_debounce()
285 if (res > 0 && (debounce & BIT(res - 1))) in bcm_kona_gpio_set_debounce()
[all …]
Dgpio-ftgpio010.c172 * Debounce only works if interrupts are enabled. The manual in ftgpio_gpio_set_config()
174 * PCLK is divided down to 33 kHz for the debounce timer. 0x7D0 is in ftgpio_gpio_set_config()
178 * As we get a debounce setting in microseconds, we calculate the in ftgpio_gpio_set_config()
179 * desired period time and see if we can get a suitable debounce in ftgpio_gpio_set_config()
195 * The debounce timer happens to already be set to the in ftgpio_gpio_set_config()
197 * debounce on this GPIO line and return. This happens more in ftgpio_gpio_set_config()
199 * on a system are requesting the same debounce interval. in ftgpio_gpio_set_config()
210 * Oh no! Someone is already using the debounce with in ftgpio_gpio_set_config()
218 /* Enable debounce */ in ftgpio_gpio_set_config()
277 /* We need a silicon clock to do debounce */ in ftgpio_gpio_probe()
[all …]
Dgpio-twl4030.c451 static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) in gpio_twl4030_debounce() argument
458 message[0] = (debounce & 0xff) | (mmc_cd & 0x03); in gpio_twl4030_debounce()
459 debounce >>= 8; in gpio_twl4030_debounce()
460 message[1] = (debounce & 0xff); in gpio_twl4030_debounce()
461 debounce >>= 8; in gpio_twl4030_debounce()
462 message[2] = (debounce & 0x03); in gpio_twl4030_debounce()
485 of_property_read_u32(dev->of_node, "ti,debounce", in of_gpio_twl4030()
486 &omap_twl_info->debounce); in of_gpio_twl4030()
558 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
560 dev_dbg(&pdev->dev, "debounce %.03x %.01x --> %d\n", in gpio_twl4030_probe()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/sound/
Dnau8825.txt63 - nuvoton,short-key-debounce: Button short key press debounce time.
69 - nuvoton,jack-insert-debounce: number from 0 to 7 that sets debounce time to 2^(n+2) ms
70 - nuvoton,jack-eject-debounce: number from 0 to 7 that sets debounce time to 2^(n+2) ms
98 nuvoton,short-key-debounce = <2>;
99 nuvoton,jack-insert-debounce = <7>;
100 nuvoton,jack-eject-debounce = <7>;
Dnau8824.txt59 - nuvoton,short-key-debounce: Button short key press debounce time.
64 - nuvoton,jack-eject-debounce: Jack ejection debounce time.
86 nuvoton,short-key-debounce = <0>;
87 nuvoton,jack-eject-debounce = <1>;
Dcs42l42.txt30 - cirrus,ts-dbnc-rise : Debounce the rising edge of TIP_SENSE_PLUG. With no
31 debounce, the tip sense pin might be noisy on a plug event.
42 - cirrus,ts-dbnc-fall : Debounce the falling edge of TIP_SENSE_UNPLUG.
43 With no debounce, the tip sense pin might be noisy on an unplug event.
/Linux-v5.10/drivers/mmc/core/
Dslot-gpio.c30 /* Schedule a card detection after a debounce timeout */ in mmc_gpio_cd_irqt()
162 * @debounce: debounce time in microseconds
171 unsigned int debounce) in mmc_gpiod_request_cd() argument
181 if (debounce) { in mmc_gpiod_request_cd()
182 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd()
184 ctx->cd_debounce_delay_ms = debounce / 1000; in mmc_gpiod_request_cd()
214 * @debounce: debounce time in microseconds
219 unsigned int idx, unsigned int debounce) in mmc_gpiod_request_ro() argument
229 if (debounce) { in mmc_gpiod_request_ro()
230 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_ro()
/Linux-v5.10/Documentation/devicetree/bindings/gpio/
Dgpio-eic-sprd.txt6 controller contains 4 sub-modules: EIC-debounce, EIC-latch, EIC-async and
7 EIC-sync. But the PMIC EIC controller contains only one EIC-debounce sub-
10 The EIC-debounce sub-module provides up to 8 source input signal
11 connections. A debounce mechanism is used to capture the input signals'
15 automatically to reduce power dissipation. Moreover the debounce range
32 "sprd,sc9860-eic-debounce",
49 compatible = "sprd,sc9860-eic-debounce";
/Linux-v5.10/arch/arm/boot/dts/
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>;
Demev2-kzm9d.dts35 debounce-interval = <50>;
42 debounce-interval = <50>;
49 debounce-interval = <50>;
56 debounce-interval = <50>;
Dr8a7792-blanche.dts119 debounce-interval = <20>;
126 debounce-interval = <20>;
133 debounce-interval = <20>;
140 debounce-interval = <20>;
147 debounce-interval = <20>;
154 debounce-interval = <20>;
Dintegratorap-im-pd1.dts87 debounce-interval = <50>;
93 debounce-interval = <50>;
99 debounce-interval = <50>;
105 debounce-interval = <50>;
111 debounce-interval = <50>;
117 debounce-interval = <50>;
Dr8a7793-gose.dts72 debounce-interval = <20>;
79 debounce-interval = <20>;
86 debounce-interval = <20>;
93 debounce-interval = <20>;
100 debounce-interval = <20>;
107 debounce-interval = <20>;
114 debounce-interval = <20>;
121 debounce-interval = <20>;
128 debounce-interval = <20>;
135 debounce-interval = <20>;
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/input/
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>;
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>;
Dlpc32xx-key.txt12 - nxp,debounce-delay-ms: Debounce delay in ms
31 nxp,debounce-delay-ms = <3>;
Dgpio-matrix-keypad.txt24 - debounce-delay-ms: debounce interval in milliseconds
33 debounce-delay-ms = <5>;
/Linux-v5.10/drivers/pinctrl/
Dpinctrl-amd.c120 unsigned debounce) in amd_gpio_set_debounce() argument
131 if (debounce) { in amd_gpio_set_debounce()
135 Debounce Debounce Timer Max in amd_gpio_set_debounce()
136 TmrLarge TmrOutUnit Unit Debounce in amd_gpio_set_debounce()
144 if (debounce < 61) { in amd_gpio_set_debounce()
148 } else if (debounce < 976) { in amd_gpio_set_debounce()
149 time = debounce / 61; in amd_gpio_set_debounce()
153 } else if (debounce < 3900) { in amd_gpio_set_debounce()
154 time = debounce / 244; in amd_gpio_set_debounce()
158 } else if (debounce < 250000) { in amd_gpio_set_debounce()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/input/touchscreen/
Dads7846.txt53 ti,debounce-tol Tolerance used for filtering (u16).
54 ti,debounce-rep Additional consecutive good readings
56 ti,pendown-gpio-debounce Platform specific debounce time for the
82 ti,debounce-max Max number of additional readings per
/Linux-v5.10/include/linux/platform_data/
Dkeypad-ep93xx.h17 * @debounce: debounce start count; terminal count is 0xff
23 unsigned int debounce; member
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/
Dlp8727_charger.txt9 - debounce-ms: interrupt debounce time. (u32)
28 debounce-ms = <300>;
/Linux-v5.10/drivers/input/touchscreen/
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()
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>>...18