Home
last modified time | relevance | path

Searched +full:ir +full:- +full:receiver (Results 1 – 25 of 82) sorted by relevance

1234

/linux/Documentation/devicetree/bindings/media/
H A Dgpio-ir-receiver.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO Based IR receiver
10 - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
13 - $ref: rc.yaml#
17 const: gpio-ir-receiver
22 linux,autosuspend-period:
26 wakeup-source:
[all …]
H A Damlogic,meson6-ir.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/media/amlogic,meson6-ir.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic Meson IR remote control receiver
10 - Neil Armstrong <neil.armstrong@linaro.org>
13 - $ref: rc.yaml#
18 - enum:
19 - amlogic,meson6-ir
20 - amlogic,meson8b-ir
[all …]
H A Dallwinner,sun4i-a10-ir.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-ir.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 - $ref: rc.yaml#
19 - const: allwinner,sun4i-a10-ir
20 - const: allwinner,sun5i-a13-ir
21 - const: allwinner,sun6i-a31-ir
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-i2c-core.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <media/i2c/ir-kbd-i2c.h>
10 #include "pvrusb2-i2c-core.h"
11 #include "pvrusb2-hdw-internal.h"
12 #include "pvrusb2-debug.h"
13 #include "pvrusb2-fx2-cmd.h"
29 static int ir_mode[PVR_NUM] = { [0 ... PVR_NUM-1] = 1 };
31 MODULE_PARM_DESC(ir_mode,"specify: 0=disable IR reception, 1=normal IR");
37 "1=do not try to autoload ir_video IR receiver");
44 /* Return value - default 0 means success */ in pvr2_i2c_write()
[all …]
/linux/drivers/media/rc/
H A Digorplugusb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IgorPlug-USB IR Receiver
7 * Supports the standard homebrew IgorPlugUSB receiver with Igor's firmware.
8 * See http://www.cesko.host.sk/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm
12 * <hochstein@algo.informatik.tu-darmstadt.de>
19 #include <media/rc-core.h>
21 #define DRIVER_DESC "IgorPlug-USB IR Receiver"
46 static void igorplugusb_cmd(struct igorplugusb *ir, int cmd);
48 static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len) in igorplugusb_irdata() argument
53 dev_dbg(ir->dev, "irdata: %*ph (len=%u)", len, ir->buf_in, len); in igorplugusb_irdata()
[all …]
H A Dmeson-ir.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for Amlogic Meson IR remote receiver
19 #include <media/rc-core.h>
21 #define DRIVER_NAME "meson-ir"
54 /* Meson 6b uses REG1 to configure IR mode */
64 /* Meson 8b / GXBB use REG2 to configure IR mode */
97 * struct meson_ir_protocol - describe IR Protocol parameter
99 * @hw_protocol: select IR Protocol from IR Controller
100 * @repeat_counter_enable: enable frame-to-frame time counter, it should work
104 * Some IR Protocol send the same data as repeat frame.
[all …]
H A Dwinbond-cir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * winbond-cir.c - Driver for the Consumer IR functionality of Winbond
12 * Copyright (C) 2009 - 2011 David Härdeman <david@hardeman.nu>
24 * o IR Receive
25 * o IR Transmit
26 * o Wake-On-CIR functionality
44 #include <media/rc-core.h>
46 #define DRVNAME "winbond-cir"
48 /* CEIR Wake-Up Registers, relative to data->wbase */
49 #define WBCIR_REG_WCEIR_CTL 0x03 /* CEIR Receiver Control */
[all …]
H A Dgpio-ir-recv.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <media/rc-core.h>
32 struct device *pmdev = gpio_dev->pmdev; in gpio_ir_recv_irq()
47 val = gpiod_get_value(gpio_dev->gpiod); in gpio_ir_recv_irq()
49 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); in gpio_ir_recv_irq()
59 struct device *dev = &pdev->dev; in gpio_ir_recv_probe()
60 struct device_node *np = dev->of_node; in gpio_ir_recv_probe()
67 return -ENODEV; in gpio_ir_recv_probe()
71 return -ENOMEM; in gpio_ir_recv_probe()
73 gpio_dev->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); in gpio_ir_recv_probe()
[all …]
H A Dite-cir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * skeleton provided by the nuvoton-cir driver.
10 * The lirc_it87 driver was originally written by Hans-Gunter Lutke Uphues
13 * <jimbo-lirc@edwardsclan.net>.
16 * <spmf2004-lirc@yahoo.fr> in 2008.
29 #include <media/rc-core.h>
32 #include "ite-cir.h"
42 static int model_number = -1;
47 /* HW-independent code functions */
79 freq = DIV_ROUND_CLOSEST(freq - ITE_LCF_MIN_CARRIER_FREQ, 1000); in ite_get_carrier_freq_bits()
[all …]
H A Dserial_ir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * serial_ir - Device driver that records pulse- and pause-lengths
6 * (space-lengths) between DDCD event on a serial port.
8 * Copyright (C) 1996,97 Ralph Metzler <rjkm@thp.uni-koeln.de>
13 * Copyright (C) 2016 Sean Young <sean@mess.org> (port to rc-core)
28 #include <media/rc-core.h>
56 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */
145 /* the register is memory-mapped */ in sinp()
155 /* the register is memory-mapped */ in soutp()
190 for (i = 0, output = 0x7f; rawbits > 0; rawbits -= 3) { in send_pulse_irdeo()
[all …]
/linux/Documentation/driver-api/media/
H A Drc-core.rst1 .. SPDX-License-Identifier: GPL-2.0
4 -------------------------
23 infrared-based remote controllers, there's no key release event. Instead,
26 However, most of the remote controllers use infrared (IR) to transmit signals.
32 carrier. The carrier can be switched on or off by the IR transmitter
36 In other words, a typical IR transmission can be viewed as a sequence of
48 At receiver, a simple low-pass filter can be used to convert the received
50 frequency. Due to that, the receiver doesn't care about the carrier's
53 So, a simple IR receiver hardware will just provide a sequence of timings
63 The RC core also supports devices that have just IR emitters,
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3308-roc-cc.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
10 model = "Firefly ROC-RK3308-CC board";
11 compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308";
19 stdout-path = "serial2:1500000n8";
22 ir-receiver {
23 compatible = "gpio-ir-receiver";
25 pinctrl-names = "default";
26 pinctrl-0 = <&ir_recv_pin>;
30 compatible = "pwm-ir-tx";
[all …]
H A Drk3588-orangepi-5-plus.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pinctrl/rockchip.h>
10 #include <dt-bindings/soc/rockchip,vop2.h>
11 #include <dt-bindings/usb/pd.h>
12 #include "rk3588-orangepi-5.dtsi"
16 compatible = "xunlong,orangepi-5-plus", "rockchip,rk3588";
18 hdmi0-con {
19 compatible = "hdmi-connector";
[all …]
/linux/Documentation/userspace-api/media/rc/
H A Dlirc-dev-intro.rst1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
10 a bi-directional interface for transporting raw IR and decoded scancodes
13 file_operations defined on it. With respect to transporting raw IR and
17 raw IR into scancodes.
21 .. code-block:: none
24 rc rc0: lirc_dev: driver mceusb registered at minor = 0, raw IR receiver, raw IR transmitter
28 .. code-block:: none
30 $ ls -l /dev/lirc*
31 crw-rw---- 1 root root 248, 0 Jul 2 22:20 /dev/lirc0
33 Note that the package `v4l-utils <https://git.linuxtv.org/v4l-utils.git/>`_
[all …]
H A Drc-intro.rst1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
19 device, as the IR receiver (and/or transmitter) can be used in
20 conjunction with a wide variety of different IR remotes.
23 controlling the RC-specific attributes via
H A Dlirc-set-rec-carrier-range.rst1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
13 LIRC_SET_REC_CARRIER_RANGE - Set lower bound of the carrier used to modulate
14 IR receive.
36 by the IR receiver.
47 On success 0 is returned, on error -1 and the ``errno`` variable is set
49 :ref:`Generic Error Codes <gen-errors>` chapter.
/linux/Documentation/driver-api/media/drivers/
H A Dcx88-devel.rst1 .. SPDX-License-Identifier: GPL-2.0
9 -------------------------------------------
13 .. code-block:: none
16 Digit 8: 31-28
19 Digit 7: 27-24 (0xc = 12 = b1100 )
24 Digits 6,5: 23-16
25 25-16: COMB_RANGE = 0x1f [default] (9 bits -> max 512)
27 Digit 4: 15-12
33 Digit 3: 11-8
39 Digit 2: 7-4
[all …]
/linux/drivers/media/pci/bt8xx/
H A 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() local
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/drivers/media/common/siano/
H A Dsmsir.c1 // SPDX-License-Identifier: GPL-2.0+
4 // MDTV receiver kernel modules.
5 // Copyright (C) 2006-2009, Uri Shkolnik
7 // Copyright (c) 2010 - Mauro Carvalho Chehab
8 // - Ported the driver to use rc-core
9 // - IR raw event decoding is now done at rc-core
10 // - Code almost re-written
19 #include "sms-cards.h"
34 ir_raw_event_store(coredev->ir.dev, &ev); in sms_ir_event()
36 ir_raw_event_handle(coredev->ir.dev); in sms_ir_event()
[all …]
/linux/drivers/media/i2c/cx25840/
H A Dcx25840-ir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <media/drv-intf/cx25840.h>
14 #include <media/rc-core.h>
16 #include "cx25840-core.h"
20 MODULE_PARM_DESC(ir_debug, "enable integrated IR debug messages");
117 return state ? state->ir_state : NULL; in to_ir_state()
135 d--; in count_to_clock_divider()
293 count--; in pulse_clocks_to_clock_divider()
298 * IR Control Register helpers
371 if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) { in control_rx_s_carrier_window()
[all …]
/linux/drivers/media/pci/cx23885/
H A Dcx23888-ir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include "cx23888-ir.h"
16 #include <media/v4l2-device.h>
17 #include <media/rc-core.h>
21 MODULE_PARM_DESC(ir_888_debug, "enable debug messages [CX23888 IR controller]");
139 * IR register block read and write functions
174 d--; in count_to_clock_divider()
306 count--; in pulse_clocks_to_clock_divider()
311 * IR Control Register helpers
384 if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) { in control_rx_s_carrier_window()
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Ddove-cubox.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
20 compatible = "gpio-leds";
21 pinctrl-0 = <&pmx_gpio_18>;
22 pinctrl-names = "default";
24 led-power {
27 default-state = "keep";
31 usb_power: regulator-1 {
32 compatible = "regulator-fixed";
33 regulator-name = "USB Power";
[all …]
/linux/arch/arm/boot/dts/rockchip/
H A Drv1109-relfor-saib.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/input/input.h>
16 gpio-keys {
17 compatible = "gpio-keys";
23 linux,input-type = <1>;
27 ir_receiver: ir-receiver {
28 compatible = "gpio-ir-receiver";
30 pinctrl-names = "default";
[all …]
/linux/include/media/
H A Dtveeprom.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * tveeprom - Contains structures and functions to work with Hauppauge
11 * enum tveeprom_audio_processor - Specifies the type of audio processor
28 * struct tveeprom - Contains the fields parsed from Hauppauge eeproms
32 * @has_ir: If has_ir == 0, then it is unknown what the IR
34 * bit 0) 1 (= IR capabilities are known);
35 * bit 1) IR receiver present;
36 * bit 2) IR transmitter (blaster) present.
94 * tveeprom_hauppauge_analog - Fill struct tveeprom using the contents
107 * tveeprom_read - Reads the contents of the eeprom found at the Hauppauge
/linux/drivers/net/ethernet/apple/
H A Dmace.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * mace.h - definitions for the registers in the Am79C940 MACE
20 REG(ir); /* interrupt register */
49 #define AUTO_PAD_XMIT 0x01 /* auto-pad short packets on transmission */
53 #define UFLO 0x40 /* underflow - xmit fifo ran dry */
63 #define RETRY_MASK 0x0f /* number of retries (0 - 15) */
68 #define AUTO_STRIP_RCV 0x01 /* auto-strip short LLC frames on recv */
91 * Bits in IR and IMR. The IR clears itself when read.
94 #define JABBER 0x80 /* jabber error - 10baseT xmission too long */
95 #define BABBLE 0x40 /* babble - xmitter xmitting for too long */
[all …]

1234