gpio-ir-overlay: add parameter to configure signal polarity (#3490)
authorMatthias Reichl <hias@horus.com>
Fri, 6 Mar 2020 10:08:10 +0000 (11:08 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:28 +0000 (16:33 +0100)
commita582981bc5e745ed8db10a255e14a86bd20db588
tree4313f34a1b64c4236578e9145fce2f0452c38622
parentf587491afc02f5cef4434f1b1171786775a8f1a8
gpio-ir-overlay: add parameter to configure signal polarity (#3490)

Standard IR receivers use inverted / active-low signalling
and the gpio-ir overlay configures the GPIO appropriately
as GPIO_ACTIVE_LOW (1).

In order to support (rather rare) non-inverted / active-high
signalling the GPIO needs to be configured as GPIO_ACTIVE_HIGH (0).

Add an "invert" parameter to override this like in the gpio-ir-tx
overlay.

Signed-off-by: Matthias Reichl <hias@horus.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/gpio-ir-overlay.dts