I have tried to set up LIRC with Raspberry PI 2B for a couple of days now with no luck. The receiver works fine, but not the IR emitter. This is what I figured out, if I turned off device tree with "device_tree=" in config.txt, LIRC works fine with the right pin assignment.
sudo cat /sys/kernel/debug/gpio
[sudo] password for root:
GPIOs 0-53, bcm2708_gpio:
gpio-17 (lirc_rpi ir/out ) in lo
gpio-18 (lirc_rpi ir/in ) in lo
gpio-47 (led0 ) out lo
and following is when I leave the device tree on:
sudo cat /sys/kernel/debug/gpio
[sudo] password for root:
GPIOs 0-53, platform/3f200000.gpio, pinctrl-bcm2835:
gpio-35 (? ) in hi
gpio-47 (? ) out lo
Does anyone have any advice? I need the device tree on since it is required for the touch display to work.