Skip to content

Commit 4b707c9

Browse files
committed
[LIRC]support IR receiver(TOSHIBA G83C0004D310)
Change-Id: I79fbd9a1db33522ee7677b18725f36609bfab82d Reviewed-on: https://tp-biosrd-v02/gerrit/81413 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent 1756c03 commit 4b707c9

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
1212
pitft35-resistive-tinker.dtbo \
1313
ds1307.dtbo \
1414
lirc-rpi.dtbo \
15+
lirc-toshiba.dtbo \
1516

1617
targets += dtbs dtbs_install
1718
targets += $(dtbo-y)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Definitions for lirc-toshiba module (G83C0004D310)
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
7+
8+
fragment@0 {
9+
target-path = "/";
10+
__overlay__ {
11+
lirc_rpi: lirc_rpi {
12+
compatible = "rpi,lirc-rpi";
13+
pinctrl-names = "default";
14+
pinctrl-0 = <&lirc_pins>;
15+
status = "okay";
16+
17+
// Override autodetection of IR receiver circuit
18+
// (0 = active high, 1 = active low, -1 = no override )
19+
rpi,sense = <0xffffffff>;
20+
21+
// Software carrier
22+
// (0 = off, 1 = on)
23+
rpi,softcarrier = <1>;
24+
25+
// Invert output
26+
// (0 = off, 1 = on)
27+
rpi,invert = <0>;
28+
29+
// Enable debugging messages
30+
// (0 = off, 1 = on)
31+
rpi,debug = <0>;
32+
};
33+
};
34+
};
35+
36+
fragment@1 {
37+
target = <&gpio5>;
38+
__overlay__ {
39+
lirc_pins: lirc_pins {
40+
rockchip,pins = <6 0 0 &pcfg_pull_up>,
41+
<6 0 0 &pcfg_pull_up>;
42+
};
43+
};
44+
};
45+
};

0 commit comments

Comments
 (0)