]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
Add support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / overlays / lirc-rpi-overlay.dts
CommitLineData
0a7ba7e9 1// Definitions for lirc-rpi module
2/dts-v1/;
3/plugin/;
4
5/ {
6 compatible = "brcm,bcm2708";
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 = <&gpio>;
38 __overlay__ {
39 lirc_pins: lirc_pins {
40 brcm,pins = <17 18>;
41 brcm,function = <1 0>; // out in
42 brcm,pull = <0 1>; // off down
43 };
44 };
45 };
46
47 __overrides__ {
48 gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
49 gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
50 gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
51
52 sense = <&lirc_rpi>,"rpi,sense:0";
53 softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
54 invert = <&lirc_rpi>,"rpi,invert:0";
55 debug = <&lirc_rpi>,"rpi,debug:0";
56 };
57};