Hello,
I want to provide support for IR infrared remote Shield V1.0 for orange pi zero and I need some help to know how to proceed.
http://www.ebay.com/itm/IR-infrared-remote-Shield-V1-0-expansion-Transceivers-Module-for-Raspberry-pi-B-/291205297766
Signal RPi_connector(P4)Button1 -> Pin13Button2 -> Pin15IR_IN -> Pin11IR_OUT -> Pin12
Hardware Details:
Hardware: Orange Pi Zero 512
IR Remote shield v1.0 connected to 2x13 Header
OS: Armbian Mainline (Ubuntu_xenial_dev_4.11.7), This is mandatory for me as I want docker support.
I have started reading Device Tree overlay documentation and I would say the best way to proceed would be to add a custom overlay, but I need some help in how to approach that and maybe better understanding how to make it work.
https://docs.armbian.com/User-Guide_Allwinner_overlays/#device-tree-overlays
Using custom overlays
Check here for some example overlays
Copy or create your overlay file (with .dts extension) on the device
Change I2C or SPI bus number, GPIO and pinctrl pins, compatible string to match your SoC if necessary
Compile and activate the overlay by running armbian-add-overlay <overlay_file.dts> as root, i.e. sudo armbian-add-overlay sht15.dts
Reboot
*** (note the IR remote shield has to be connected respecting the 180º flip) ***
http://linux-sunxi.org/Xunlong_Orange_Pi_Zero
The idea is to have lirc working and capture codes without using buttons, just using IR TX and IR RX.
There should be a /dev/lirc0 device so to run $ mode -d /dev/lirc0 Or $ irrecord... to capture and record remote control devices codes.
Am I in the right path?, Is there any other way to do it in mainline kernel?, How would you do it?
Cheers,