| /kernel/linux/linux-6.6/drivers/media/rc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 standalone IR receivers/transmitters, and RF receivers. 12 if you don't need IR, as otherwise, you may not be able to 15 Say Y when you have a TV or an IR device. 26 syscall command BPF_PROG_ATTACH. This is supported for raw IR 29 These eBPF programs can be used to decode IR into scancodes, for 30 IR protocols not supported by the kernel decoders. 37 passes raw IR to and from userspace, which is needed for 38 IR transmitting (aka "blasting") and for the lirc daemon. 48 tristate "Enable IR raw decoder for the iMON protocol" [all …]
|
| D | mceusb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010-2011, Jarod Wilson <jarod@redhat.com> 11 * support for the 1st-gen device added primarily by Patrick Calhoun, 13 * support for what appears to be 3rd-gen hardware added by Jarod. 14 * Initial port from lirc driver to ir-core drivery by Jarod, based 15 * partially on a port to an earlier proposed IR infrastructure by 17 * incoming IR buffer parsing routines. 22 * Windows-Media-Center-RC-IR-Collection-Green-Button-Specification-03-08-2011-V2.pdf 32 #include <media/rc-core.h> 45 #define MCE_IRBUF_SIZE 128 /* TX IR buffer length */ [all …]
|
| D | meson-ir.c | 1 // 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" 67 struct meson_ir *ir = dev_id; in meson_ir_irq() local 71 spin_lock(&ir->lock); in meson_ir_irq() 73 regmap_read(ir->reg, IR_DEC_REG1, &duration); in meson_ir_irq() 77 regmap_read(ir->reg, IR_DEC_STATUS, &status); in meson_ir_irq() 80 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq() 82 spin_unlock(&ir->lock); in meson_ir_irq() [all …]
|
| D | igorplugusb.c | 1 // 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 …]
|
| D | iguanair.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * IguanaWorks USB IR Transceiver support 15 #include <media/rc-core.h> 29 /* receiver support */ 79 static void process_ir_data(struct iguanair *ir, unsigned len) in process_ir_data() argument 81 if (len >= 4 && ir->buf_in[0] == 0 && ir->buf_in[1] == 0) { in process_ir_data() 82 switch (ir->buf_in[3]) { in process_ir_data() 85 ir->version = (ir->buf_in[5] << 8) | in process_ir_data() 86 ir->buf_in[4]; in process_ir_data() 87 complete(&ir->completion); in process_ir_data() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/rc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 standalone IR receivers/transmitters, and RF receivers. 12 if you don't need IR, as otherwise, you may not be able to 15 Say Y when you have a TV or an IR device. 26 passes raw IR to and from userspace, which is needed for 27 IR transmitting (aka "blasting") and for the lirc daemon. 36 syscall command BPF_PROG_ATTACH. This is supported for raw IR 39 These eBPF programs can be used to decode IR into scancodes, for 40 IR protocols not supported by the kernel decoders. 48 tristate "Enable IR raw decoder for the NEC protocol" [all …]
|
| D | mceusb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010-2011, Jarod Wilson <jarod@redhat.com> 11 * support for the 1st-gen device added primarily by Patrick Calhoun, 13 * support for what appears to be 3rd-gen hardware added by Jarod. 14 * Initial port from lirc driver to ir-core drivery by Jarod, based 15 * partially on a port to an earlier proposed IR infrastructure by 17 * incoming IR buffer parsing routines. 22 * Windows-Media-Center-RC-IR-Collection-Green-Button-Specification-03-08-2011-V2.pdf 32 #include <media/rc-core.h> 45 #define MCE_IRBUF_SIZE 128 /* TX IR buffer length */ [all …]
|
| D | meson-ir.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Amlogic Meson IR remote receiver 18 #include <media/rc-core.h> 20 #define DRIVER_NAME "meson-ir" 68 static void meson_ir_set_mask(struct meson_ir *ir, unsigned int reg, in meson_ir_set_mask() argument 73 data = readl(ir->reg + reg); in meson_ir_set_mask() 76 writel(data, ir->reg + reg); in meson_ir_set_mask() 81 struct meson_ir *ir = dev_id; in meson_ir_irq() local 85 spin_lock(&ir->lock); in meson_ir_irq() 87 duration = readl_relaxed(ir->reg + IR_DEC_REG1); in meson_ir_irq() [all …]
|
| D | igorplugusb.c | 1 // 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 …]
|
| D | iguanair.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * IguanaWorks USB IR Transceiver support 15 #include <media/rc-core.h> 29 /* receiver support */ 79 static void process_ir_data(struct iguanair *ir, unsigned len) in process_ir_data() argument 81 if (len >= 4 && ir->buf_in[0] == 0 && ir->buf_in[1] == 0) { in process_ir_data() 82 switch (ir->buf_in[3]) { in process_ir_data() 85 ir->version = (ir->buf_in[5] << 8) | in process_ir_data() 86 ir->buf_in[4]; in process_ir_data() 87 complete(&ir->completion); in process_ir_data() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/ |
| D | gpio-ir-receiver.yaml | 1 # 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 …]
|
| D | amlogic,meson6-ir.yaml | 1 # 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 …]
|
| D | allwinner,sun4i-a10-ir.yaml | 1 # 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
| D | gpio-ir-receiver.txt | 1 Device-Tree bindings for GPIO IR receiver 4 - compatible: should be "gpio-ir-receiver". 5 - gpios: specifies GPIO used for IR signal reception. 8 - linux,rc-map-name: see rc.txt file in the same 10 - linux,autosuspend-period: autosuspend delay time, 15 ir: ir-receiver { 16 compatible = "gpio-ir-receiver"; 18 linux,rc-map-name = "rc-rc6-mce"; 19 linux,autosuspend-period = <125>;
|
| D | meson-ir.txt | 1 * Amlogic Meson IR remote control receiver 4 - compatible : depending on the platform this should be one of: 5 - "amlogic,meson6-ir" 6 - "amlogic,meson8b-ir" 7 - "amlogic,meson-gxbb-ir" 8 - reg : physical base address and length of the device registers 9 - interrupts : a single specifier for the interrupt from the device 12 - linux,rc-map-name: see rc.txt file in the same directory. 16 ir-receiver@c8100480 { 17 compatible= "amlogic,meson6-ir";
|
| D | allwinner,sun4i-a10-ir.yaml | 1 # 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-i2c-core.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-i2c-core.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/media/ |
| D | rc-core.rst | 1 .. 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 …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/media/ |
| D | rc-core.rst | 1 .. 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 …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/ |
| D | rk3308-roc-cc.dts | 1 // 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"; 13 stdout-path = "serial2:1500000n8"; 16 ir-receiver { 17 compatible = "gpio-ir-receiver"; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&ir_recv_pin>; 24 compatible = "pwm-ir-tx"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/ |
| D | rk3308-roc-cc.dts | 1 // 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 …]
|
| D | rk3328-roc-pc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright (c) 2021 T-Chip Intelligent Technology Co., Ltd 4 /dts-v1/; 6 #include <dt-bindings/input/input.h> 8 #include "rk3328-roc-cc.dts" 11 model = "Firefly ROC-RK3328-PC"; 12 compatible = "firefly,roc-rk3328-pc", "rockchip,rk3328"; 14 adc-keys { 15 compatible = "adc-keys"; 16 io-channels = <&saradc 0>; [all …]
|
| D | rk3399-nanopc-t4.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * FriendlyElec NanoPC-T4 board device tree source 11 /dts-v1/; 12 #include "rk3399-nanopi4.dtsi" 15 model = "FriendlyElec NanoPC-T4"; 16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; 18 vcc12v0_sys: vcc12v0-sys { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-boot-on; [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/rc/ |
| D | lirc-dev-intro.rst | 1 .. 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 …]
|