Home
last modified time | relevance | path

Searched +full:i2c +full:- +full:polling (Results 1 – 25 of 268) sorted by relevance

1234567891011

/Linux-v5.10/Documentation/devicetree/bindings/i2c/
Di2c-pxa.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-pxa.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Marvell MMP I2C controller bindings
10 - Rob Herring <robh+dt@kernel.org>
13 - $ref: /schemas/i2c/i2c-controller.yaml#
14 - if:
17 - mrvl,i2c-polling
20 - interrupts
[all …]
Dbrcm,iproc-i2c.txt1 Broadcom iProc I2C controller
5 - compatible:
6 Must be "brcm,iproc-i2c" or "brcm,iproc-nic-i2c"
8 - reg:
10 I2C controller registers
12 - clock-frequency:
13 This is the I2C bus clock. Need to be either 100000 or 400000
15 - #address-cells:
16 Always 1 (for I2C addresses)
18 - #size-cells:
[all …]
/Linux-v5.10/arch/arm64/boot/dts/qcom/
Dmsm8998.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/clock/qcom,gcc-msm8998.h>
6 #include <dt-bindings/clock/qcom,gpucc-msm8998.h>
7 #include <dt-bindings/clock/qcom,rpmcc.h>
8 #include <dt-bindings/power/qcom-rpmpd.h>
9 #include <dt-bindings/gpio/gpio.h>
12 interrupt-parent = <&intc>;
14 qcom,msm-id = <292 0x0>;
16 #address-cells = <2>;
[all …]
Dsm8250.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/qcom,gcc-sm8250.h>
8 #include <dt-bindings/clock/qcom,gpucc-sm8250.h>
9 #include <dt-bindings/clock/qcom,rpmh.h>
10 #include <dt-bindings/interconnect/qcom,osm-l3.h>
11 #include <dt-bindings/mailbox/qcom-ipcc.h>
12 #include <dt-bindings/power/qcom-aoss-qmp.h>
13 #include <dt-bindings/power/qcom-rpmpd.h>
14 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
[all …]
Dqcs404.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/clock/qcom,gcc-qcs404.h>
6 #include <dt-bindings/clock/qcom,turingcc-qcs404.h>
7 #include <dt-bindings/clock/qcom,rpmcc.h>
8 #include <dt-bindings/power/qcom-rpmpd.h>
9 #include <dt-bindings/thermal/thermal.h>
12 interrupt-parent = <&intc>;
14 #address-cells = <2>;
15 #size-cells = <2>;
[all …]
Dsc7180.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
8 #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
9 #include <dt-bindings/clock/qcom,gcc-sc7180.h>
10 #include <dt-bindings/clock/qcom,gpucc-sc7180.h>
11 #include <dt-bindings/clock/qcom,lpasscorecc-sc7180.h>
12 #include <dt-bindings/clock/qcom,rpmh.h>
13 #include <dt-bindings/clock/qcom,videocc-sc7180.h>
14 #include <dt-bindings/interconnect/qcom,osm-l3.h>
15 #include <dt-bindings/interconnect/qcom,sc7180.h>
16 #include <dt-bindings/interrupt-controller/arm-gic.h>
[all …]
Dsdm845.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/clock/qcom,camcc-sdm845.h>
9 #include <dt-bindings/clock/qcom,dispcc-sdm845.h>
10 #include <dt-bindings/clock/qcom,gcc-sdm845.h>
11 #include <dt-bindings/clock/qcom,gpucc-sdm845.h>
12 #include <dt-bindings/clock/qcom,lpass-sdm845.h>
13 #include <dt-bindings/clock/qcom,rpmh.h>
14 #include <dt-bindings/clock/qcom,videocc-sdm845.h>
15 #include <dt-bindings/interconnect/qcom,osm-l3.h>
16 #include <dt-bindings/interconnect/qcom,sdm845.h>
[all …]
/Linux-v5.10/arch/arm64/boot/dts/allwinner/
Dsun50i-a100.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/sun50i-a100-ccu.h>
8 #include <dt-bindings/clock/sun50i-a100-r-ccu.h>
9 #include <dt-bindings/reset/sun50i-a100-ccu.h>
10 #include <dt-bindings/reset/sun50i-a100-r-ccu.h>
13 interrupt-parent = <&gic>;
14 #address-cells = <2>;
15 #size-cells = <2>;
18 #address-cells = <1>;
[all …]
/Linux-v5.10/drivers/i2c/busses/
Di2c-pca-platform.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Platform driver for the PCA9564 I2C controller.
17 #include <linux/i2c.h>
20 #include <linux/i2c-algo-pca.h>
21 #include <linux/platform_data/i2c-pca-platform.h>
31 int irq; /* if 0, use polling */
44 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte8() local
45 return ioread8(i2c->reg_base + reg); in i2c_pca_pf_readbyte8()
50 struct i2c_pca_pf_data *i2c = pd; in i2c_pca_pf_readbyte16() local
51 return ioread8(i2c->reg_base + reg * 2); in i2c_pca_pf_readbyte16()
[all …]
Di2c-ocores.c1 // SPDX-License-Identifier: GPL-2.0
3 * i2c-ocores.c: I2C bus driver for OpenCores I2C controller
4 * (https://opencores.org/project/i2c/overview)
19 #include <linux/i2c.h>
22 #include <linux/platform_data/i2c-ocores.h>
49 void (*setreg)(struct ocores_i2c *i2c, int reg, u8 value);
50 u8 (*getreg)(struct ocores_i2c *i2c, int reg);
88 #define OCORES_FLAG_BROKEN_IRQ BIT(1) /* Broken IRQ for FU540-C000 SoC */
90 static void oc_setreg_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_8() argument
92 iowrite8(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
[all …]
Di2c-pca-isa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * i2c-pca-isa.c driver for PCA9564 on ISA boards
18 #include <linux/i2c.h>
19 #include <linux/i2c-algo-pca.h>
24 #define DRIVER "i2c-pca-isa"
28 static int irq = -1;
64 if (irq > -1) { in pca_isa_waitforcompletion()
69 /* Do polling */ in pca_isa_waitforcompletion()
114 if (irq <= -1) in pca_isa_match()
115 dev_warn(dev, "Using polling mode (specify irq)\n"); in pca_isa_match()
[all …]
/Linux-v5.10/drivers/media/pci/saa7134/
Dsaa7134-input.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include "saa7134-reg.h"
36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \
43 /* -------------------- GPIO generic keycode builder -------------------- */
47 struct saa7134_card_ir *ir = dev->remote; in build_key()
51 switch (dev->board) { in build_key()
62 if (ir->polling) { in build_key()
63 if (ir->last_gpio == gpio) in build_key()
65 ir->last_gpio = gpio; in build_key()
68 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key()
[all …]
/Linux-v5.10/drivers/media/pci/bt8xx/
Dbttv-input.c1 // SPDX-License-Identifier: GPL-2.0-or-later
34 #define DEVNAME "bttv-input"
38 /* ---------------------------------------------------------------------- */
42 struct bttv_ir *ir = btv->remote; in ir_handle_key()
46 gpio = bttv_gpio_read(&btv->c); in ir_handle_key()
47 if (ir->polling) { in ir_handle_key()
48 if (ir->last_gpio == gpio) in ir_handle_key()
50 ir->last_gpio = gpio; in ir_handle_key()
54 data = ir_extract_bits(gpio, ir->mask_keycode); in ir_handle_key()
57 ir->polling ? "poll" : "irq", in ir_handle_key()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dqcom-msm8974.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/interconnect/qcom,msm8974.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
7 #include <dt-bindings/clock/qcom,mmcc-msm8974.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <1>;
[all …]
/Linux-v5.10/arch/arm64/boot/dts/freescale/
Dfsl-ls208xa.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Include file for Freescale Layerscape-2080A family SoC.
12 #include <dt-bindings/thermal/thermal.h>
13 #include <dt-bindings/interrupt-controller/arm-gic.h>
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
31 #address-cells = <1>;
32 #size-cells = <0>;
38 /* DRAM space - 1, size : 2 GB DRAM */
[all …]
Dfsl-lx2160a.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 // Device Tree Include file for Layerscape-LX2160A family SoC.
5 // Copyright 2018-2020 NXP
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/thermal/thermal.h>
15 interrupt-parent = <&gic>;
16 #address-cells = <2>;
17 #size-cells = <2>;
24 #address-cells = <1>;
[all …]
Dfsl-ls1043a.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Include file for NXP Layerscape-1043A family SoC.
5 * Copyright 2014-2015 Freescale Semiconductor, Inc.
11 #include <dt-bindings/thermal/thermal.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
16 interrupt-parent = <&gic>;
17 #address-cells = <2>;
18 #size-cells = <2>;
34 #address-cells = <1>;
35 #size-cells = <0>;
[all …]
Dfsl-ls1046a.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Include file for NXP Layerscape-1046A family SoC.
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/thermal/thermal.h>
16 interrupt-parent = <&gic>;
17 #address-cells = <2>;
18 #size-cells = <2>;
35 #address-cells = <1>;
36 #size-cells = <0>;
40 compatible = "arm,cortex-a72";
[all …]
Dimx8qxp-mek.dts1 // SPDX-License-Identifier: GPL-2.0+
6 /dts-v1/;
12 compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp";
15 stdout-path = &adma_lpuart0;
23 reg_usdhc2_vmmc: usdhc2-vmmc {
24 compatible = "regulator-fixed";
25 regulator-name = "SD1_SPWR";
26 regulator-min-microvolt = <3000000>;
27 regulator-max-microvolt = <3000000>;
29 enable-active-high;
[all …]
/Linux-v5.10/arch/arm64/boot/dts/nvidia/
Dtegra194-p3509-0000+p3668-0000.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
7 #include "tegra194-p3668-0000.dtsi"
11 compatible = "nvidia,p3509-0000+p3668-0000", "nvidia,tegra194";
17 dma-controller@2930000 {
21 interrupt-controller@2a40000 {
26 ddc: i2c@3190000 {
30 i2c@3160000 {
[all …]
Dtegra194-p2972-0000.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
7 #include "tegra194-p2888.dtsi"
11 compatible = "nvidia,p2972-0000", "nvidia,tegra194";
17 dma-controller@2930000 {
21 interrupt-controller@2a40000 {
26 i2c@3160000 {
32 vcc-supply = <&vdd_1v8ls>;
[all …]
/Linux-v5.10/arch/arm64/boot/dts/broadcom/stingray/
Dstingray.dtsi4 * Copyright(c) 2015-2017 Broadcom. All rights reserved.
33 #include <dt-bindings/interrupt-controller/arm-gic.h>
37 interrupt-parent = <&gic>;
38 #address-cells = <2>;
39 #size-cells = <2>;
42 #address-cells = <2>;
43 #size-cells = <0>;
47 compatible = "arm,cortex-a72";
49 enable-method = "psci";
50 next-level-cache = <&CLUSTER0_L2>;
[all …]
/Linux-v5.10/drivers/input/mouse/
Dsynaptics_i2c.c2 * Synaptics touchpad with I2C interface
14 #include <linux/i2c.h>
181 * When in Polling mode and no data received for NO_DATA_THRES msecs
182 * reduce the polling rate to NO_DATA_SLEEP_MSECS
207 /* Control IRQ / Polling option */
210 MODULE_PARM_DESC(polling_req, "Request Polling. Default = 0 (use irq)");
212 /* Control Polling Rate */
215 MODULE_PARM_DESC(scan_rate, "Polling rate in times/sec. Default = 80");
232 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate()
233 touch->scan_rate_param = scan_rate; in set_scan_rate()
[all …]
/Linux-v5.10/arch/arm64/boot/dts/rockchip/
Drk3399-gru-kevin.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-Kevin Rev 6+ board device tree source
5 * Copyright 2016-2017 Google, Inc
8 /dts-v1/;
9 #include "rk3399-gru-chromebook.dtsi"
10 #include <dt-bindings/input/linux-event-codes.h>
13 * Kevin-specific things
21 compatible = "google,kevin-rev15", "google,kevin-rev14",
22 "google,kevin-rev13", "google,kevin-rev12",
23 "google,kevin-rev11", "google,kevin-rev10",
[all …]
/Linux-v5.10/drivers/media/usb/em28xx/
Dem28xx-input.c1 // SPDX-License-Identifier: GPL-2.0+
43 dev_printk(KERN_DEBUG, &ir->dev->intf->dev, \
48 * Polling structure used by em28xx IR's
65 int polling; member
79 * I2C IR based get keycodes - should be used with ir-kbd-i2c
93 return -EIO; in em28xx_get_key_terratec()
123 return -EIO; in em28xx_get_key_em_haup()
152 return -EIO; in em28xx_get_key_pinnacle_usb_grey()
170 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
174 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
[all …]

1234567891011